Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 110.9 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 222.9 MB / 240.1 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001663/0.001664, allocations: 192.5 kB / 290.4 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.797 MB / 349.3 MB, free: 4.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001737/0.001737, allocations: 79.88 kB / 464.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1037, allocations: 51.56 MB / 0.5041 GB, free: 9.684 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2777/0.3815, allocations: 28.73 MB / 0.5321 GB, free: 4.859 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01874/0.4003, allocations: 8.45 MB / 0.5404 GB, free: 4.734 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007894/0.4082, allocations: 220 kB / 0.5406 GB, free: 4.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01964/0.4279, allocations: 8.12 MB / 0.5485 GB, free: 3.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01192/0.4398, allocations: 2.81 MB / 0.5513 GB, free: 2.531 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006534/0.4464, allocations: 1.859 MB / 0.5531 GB, free: 2.344 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01592/0.4623, allocations: 10 MB / 0.5628 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03466/0.497, allocations: 21.35 MB / 0.5837 GB, free: 15.12 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009928/0.507, allocations: 5.381 MB / 0.5889 GB, free: 9.836 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01066/0.5177, allocations: 6.036 MB / 0.5948 GB, free: 3.953 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004627/0.5224, allocations: 1.539 MB / 0.5963 GB, free: 2.414 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007022/0.5294, allocations: 1.891 MB / 0.5982 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005151/0.5346, allocations: 2.989 MB / 0.6011 GB, free: 13.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01175/0.5464, allocations: 5.851 MB / 0.6068 GB, free: 7.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02553/0.572, allocations: 20.63 MB / 0.627 GB, free: 3.449 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.572, allocations: 4 kB / 0.627 GB, free: 3.445 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.572, allocations: 0 / 0.627 GB, free: 3.445 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005008/0.5725, allocations: 0 / 0.627 GB, free: 3.445 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03721/0.6097, allocations: 11.85 MB / 0.6385 GB, free: 7.582 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.6098, allocations: 8.031 kB / 0.6385 GB, free: 7.574 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03038/0.6402, allocations: 5.633 MB / 0.644 GB, free: 1.988 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01427/0.6545, allocations: 6.313 MB / 0.6502 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007787/0.6553, allocations: 0.7055 MB / 0.6509 GB, free: 10.94 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003973/0.6593, allocations: 0.918 MB / 0.6518 GB, free: 10.03 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04137/0.7007, allocations: 15.08 MB / 0.6665 GB, free: 10.9 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005517/0.7013, allocations: 15.81 kB / 0.6665 GB, free: 10.88 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003654/0.705, allocations: 394.6 kB / 0.6669 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006394/0.7057, allocations: 0.5194 MB / 0.6674 GB, free: 9.984 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03162/0.7373, allocations: 13.74 MB / 0.6808 GB, free: 12.22 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5318/1.269, allocations: 47.31 MB / 0.727 GB, free: 132.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01998/1.289, allocations: 28.78 MB / 0.7551 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005792/1.295, allocations: 2.895 MB / 0.758 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004099/1.296, allocations: 238.9 kB / 0.7582 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.688e-05/1.296, allocations: 73.45 kB / 0.7583 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.36e-06/1.296, allocations: 0 / 0.7583 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.03244/1.328, allocations: 14.77 MB / 0.7727 GB, free: 105 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/1.328, allocations: 92.23 kB / 0.7728 GB, free: 104.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005277/1.333, allocations: 3.761 MB / 0.7765 GB, free: 104.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006269/1.334, allocations: 86.5 kB / 0.7765 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002138/1.336, allocations: 4.076 MB / 0.7805 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001402/1.338, allocations: 1.309 MB / 0.7818 GB, free: 101.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001795/1.339, allocations: 1.164 MB / 0.7829 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.006e-05/1.34, allocations: 301.1 kB / 0.7832 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003296/1.343, allocations: 2.576 MB / 0.7857 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004496/1.347, allocations: 5.06 MB / 0.7907 GB, free: 96.31 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008886/1.356, allocations: 8.254 MB / 0.7987 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.125e-05/1.356, allocations: 30.66 kB / 0.7988 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01484/1.371, allocations: 8.615 MB / 0.8072 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.124e-05/1.371, allocations: 41.75 kB / 0.8072 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001676/1.372, allocations: 81.56 kB / 0.8073 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002355/1.374, allocations: 0.8729 MB / 0.8082 GB, free: 86.67 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004842/1.379, allocations: 1.362 MB / 0.8095 GB, free: 86.33 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00965/1.388, allocations: 9.021 MB / 0.8183 GB, free: 78.07 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004698/1.393, allocations: 333.1 kB / 0.8186 GB, free: 77.75 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/1.394, allocations: 308 kB / 0.8189 GB, free: 77.45 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006011/1.4, allocations: 3.517 MB / 0.8223 GB, free: 73.92 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.401, allocations: 414.9 kB / 0.8227 GB, free: 73.51 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008408/1.41, allocations: 5.855 MB / 0.8285 GB, free: 67.62 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.821e-05/1.41, allocations: 43.98 kB / 0.8285 GB, free: 67.57 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/1.41, allocations: 8 kB / 0.8285 GB, free: 67.57 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.4e-05/1.41, allocations: 15.94 kB / 0.8285 GB, free: 67.55 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02262/1.433, allocations: 14.48 MB / 0.8427 GB, free: 53.05 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/1.433, allocations: 4 kB / 0.8427 GB, free: 53.05 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002347/1.435, allocations: 0.6593 MB / 0.8433 GB, free: 52.39 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001877/1.437, allocations: 0.7333 MB / 0.844 GB, free: 51.66 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002848/1.437, allocations: 79.98 kB / 0.8441 GB, free: 51.58 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008009/1.445, allocations: 8.053 MB / 0.852 GB, free: 43.25 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/1.445, allocations: 4 kB / 0.852 GB, free: 43.25 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01079/1.456, allocations: 8.51 MB / 0.8603 GB, free: 34.63 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00252/1.459, allocations: 0.8746 MB / 0.8611 GB, free: 33.73 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006612/1.459, allocations: 75.84 kB / 0.8612 GB, free: 33.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001804/1.461, allocations: 179.9 kB / 0.8614 GB, free: 33.48 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004393/1.462, allocations: 254.6 kB / 0.8616 GB, free: 33.23 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.462, allocations: 112 kB / 0.8617 GB, free: 33.12 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003328/1.465, allocations: 2.522 MB / 0.8642 GB, free: 30.62 MB / 0.5138 GB Notification: Performance of sort global known variables: time 3e-07/1.465, allocations: 0 / 0.8642 GB, free: 30.62 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005676/1.471, allocations: 1.557 MB / 0.8657 GB, free: 29.07 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006179/1.471, allocations: 246.2 kB / 0.8659 GB, free: 28.82 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008582/1.48, allocations: 6.562 MB / 0.8723 GB, free: 22.25 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.074e-06/1.48, allocations: 4.062 kB / 0.8724 GB, free: 22.24 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003767/1.484, allocations: 2.956 MB / 0.8752 GB, free: 19.26 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004277/1.488, allocations: 0.9627 MB / 0.8762 GB, free: 18.33 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02409/1.512, allocations: 15.39 MB / 0.8912 GB, free: 2.871 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005794/1.518, allocations: 5.794 MB / 0.8969 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001689/1.52, allocations: 383.4 kB / 0.8972 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of SimCode: time 1.203e-06/1.52, allocations: 3.172 kB / 0.8972 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of Templates: time 0.473/1.993, allocations: 206 MB / 1.098 GB, free: 50.49 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)