Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.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/Complex 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/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001267, allocations: 200 kB / 18.01 MB, free: 5.055 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.396/1.396, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1783/0.1783, allocations: 38.04 MB / 329.9 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 68.09 kB / 458.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4255/0.427, allocations: 58.05 MB / 0.5041 GB, free: 7.859 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.00825/0.4353, allocations: 4.537 MB / 0.5085 GB, free: 4.727 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003188/0.4385, allocations: 1.493 MB / 0.51 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003024/0.4388, allocations: 13.72 kB / 0.51 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006136/0.4395, allocations: 118.7 kB / 0.5101 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001046/0.4405, allocations: 285.5 kB / 0.5104 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004378/0.441, allocations: 107.4 kB / 0.5105 GB, free: 3.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009373/0.442, allocations: 0.5031 MB / 0.511 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.4424, allocations: 161.1 kB / 0.5111 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004013/0.4428, allocations: 206.7 kB / 0.5113 GB, free: 2.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004621/0.4433, allocations: 215.9 kB / 0.5115 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.876e-05/0.4433, allocations: 25.19 kB / 0.5116 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.788e-05/0.4434, allocations: 26.97 kB / 0.5116 GB, free: 2.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001788/0.4436, allocations: 100.9 kB / 0.5117 GB, free: 2.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002579/0.4439, allocations: 188.9 kB / 0.5119 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006167/0.4445, allocations: 376.3 kB / 0.5122 GB, free: 2.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.4446, allocations: 0 / 0.5122 GB, free: 2.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4446, allocations: 4 kB / 0.5122 GB, free: 2.574 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.347e-06/0.4446, allocations: 0 / 0.5122 GB, free: 2.574 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001365/0.446, allocations: 0.659 MB / 0.5129 GB, free: 2.039 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.446, allocations: 14.19 kB / 0.5129 GB, free: 2.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.4462, allocations: 40.59 kB / 0.5129 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008543/0.447, allocations: 404.5 kB / 0.5133 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.929e-05/0.4471, allocations: 27.16 kB / 0.5133 GB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.939e-05/0.4472, allocations: 30.28 kB / 0.5134 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006952/0.4479, allocations: 331.5 kB / 0.5137 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.4479, allocations: 1 kB / 0.5137 GB, free: 1.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.17e-05/0.448, allocations: 11.16 kB / 0.5137 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.292e-05/0.448, allocations: 8.344 kB / 0.5137 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005416/0.4485, allocations: 207 kB / 0.5139 GB, free: 1.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001866/0.4504, allocations: 1.491 MB / 0.5153 GB, free: 164 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.4509, allocations: 195 kB / 0.5155 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.4512, allocations: 81.16 kB / 0.5156 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.4512, allocations: 3.969 kB / 0.5156 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.4513, allocations: 33.55 kB / 0.5156 GB, free: 15.92 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.355e-06/0.4513, allocations: 0 / 0.5156 GB, free: 15.92 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.00174/0.453, allocations: 0.6811 MB / 0.5163 GB, free: 15.4 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.4531, allocations: 135.7 kB / 0.5164 GB, free: 15.24 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005346/0.4537, allocations: 315.8 kB / 0.5167 GB, free: 15.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.458e-05/0.4537, allocations: 31.7 kB / 0.5168 GB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.454, allocations: 215.7 kB / 0.517 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.529e-05/0.4541, allocations: 65.44 kB / 0.517 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.4542, allocations: 55.53 kB / 0.5171 GB, free: 14.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.4544, allocations: 344.4 kB / 0.5174 GB, free: 14.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.4546, allocations: 49.16 kB / 0.5175 GB, free: 14.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002524/0.4549, allocations: 157 kB / 0.5176 GB, free: 14.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004634/0.4553, allocations: 219.8 kB / 0.5178 GB, free: 14.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.938e-06/0.4554, allocations: 1.062 kB / 0.5178 GB, free: 14.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000802/0.4562, allocations: 253.8 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.4562, allocations: 6.5 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.203e-05/0.4562, allocations: 4.953 kB / 0.5181 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.639e-05/0.4563, allocations: 13.16 kB / 0.5181 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006531/0.4569, allocations: 76.89 kB / 0.5182 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001479/0.4584, allocations: 1.378 MB / 0.5195 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.4588, allocations: 8.719 kB / 0.5195 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.4588, allocations: 15.17 kB / 0.5195 GB, free: 12.5 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003191/0.4592, allocations: 169.8 kB / 0.5197 GB, free: 12.36 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001756/0.4594, allocations: 38.91 kB / 0.5197 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006215/0.46, allocations: 184 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.46, allocations: 3.25 kB / 0.5199 GB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.46, allocations: 6.719 kB / 0.5199 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.4601, allocations: 1.688 kB / 0.5199 GB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001576/0.4616, allocations: 0.5349 MB / 0.5204 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/0.4617, allocations: 0 / 0.5204 GB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000418/0.4621, allocations: 47.62 kB / 0.5205 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.4621, allocations: 2.469 kB / 0.5205 GB, free: 11.83 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.4622, allocations: 5.938 kB / 0.5205 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.4622, allocations: 6.344 kB / 0.5205 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.4622, allocations: 1.844 kB / 0.5205 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008204/0.463, allocations: 0.4899 MB / 0.521 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.4632, allocations: 109.8 kB / 0.5211 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.084e-05/0.4633, allocations: 7.141 kB / 0.5211 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003889/0.4637, allocations: 10.78 kB / 0.5211 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.439e-05/0.4638, allocations: 14.83 kB / 0.5211 GB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.159e-05/0.4638, allocations: 5.188 kB / 0.5211 GB, free: 11.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004004/0.4642, allocations: 223.8 kB / 0.5213 GB, free: 11.18 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4642, allocations: 0 / 0.5213 GB, free: 11.18 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008402/0.4651, allocations: 60.84 kB / 0.5214 GB, free: 11.18 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001523/0.4652, allocations: 99.97 kB / 0.5215 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006039/0.4659, allocations: 164.8 kB / 0.5216 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4659, allocations: 0.875 kB / 0.5216 GB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002101/0.4661, allocations: 73.81 kB / 0.5217 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.4674, allocations: 93.05 kB / 0.5218 GB, free: 10.97 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.4699, allocations: 0.8288 MB / 0.5226 GB, free: 10.45 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005607/0.4705, allocations: 0.8015 MB / 0.5234 GB, free: 9.738 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000307/0.4708, allocations: 54.09 kB / 0.5234 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.4709, allocations: 30.89 kB / 0.5235 GB, free: 9.711 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.4709, allocations: 0 / 0.5235 GB, free: 9.711 MB / 398.1 MB Notification: Performance of Templates: time 0.01238/0.4833, allocations: 3.25 MB / 0.5267 GB, free: 9.457 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)