Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001347/0.001346, allocations: 191.4 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.237/1.237, allocations: 194.2 MB / 202.8 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001697/0.001697, allocations: 121.3 kB / 247.8 MB, free: 6.402 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.157/0.157, allocations: 37.9 MB / 330.5 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.873e-06/6.893e-06, allocations: 4 kB / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 53.22 MB / 443 MB, free: 24.97 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.4356, allocations: 88.59 MB / 0.5191 GB, free: 10.69 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.436, allocations: 83.09 kB / 0.5192 GB, free: 10.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02545/0.4614, allocations: 9.363 MB / 0.5284 GB, free: 6.992 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.4615, allocations: 4.406 kB / 0.5284 GB, free: 6.992 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007975/0.4623, allocations: 475.5 kB / 0.5288 GB, free: 6.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4623, allocations: 12.5 kB / 0.5288 GB, free: 6.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008735/0.4632, allocations: 88.05 kB / 0.5289 GB, free: 6.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004506/0.4637, allocations: 261.2 kB / 0.5292 GB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.4637, allocations: 6.219 kB / 0.5292 GB, free: 6.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.4638, allocations: 21.66 kB / 0.5292 GB, free: 6.258 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003481/0.4641, allocations: 136.3 kB / 0.5293 GB, free: 6.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003984/0.4646, allocations: 245.9 kB / 0.5296 GB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.4646, allocations: 1.219 kB / 0.5296 GB, free: 6.121 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.379e-05/0.4646, allocations: 3.984 kB / 0.5296 GB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.382e-05/0.4647, allocations: 19 kB / 0.5296 GB, free: 6.113 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001814/0.4665, allocations: 1.211 MB / 0.5308 GB, free: 5.195 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.4669, allocations: 148.1 kB / 0.5309 GB, free: 5.133 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.883e-05/0.467, allocations: 49.48 kB / 0.531 GB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.467, allocations: 2.094 kB / 0.531 GB, free: 5.109 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.4671, allocations: 35.44 kB / 0.531 GB, free: 5.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 2.816e-06/0.4671, allocations: 0 / 0.531 GB, free: 5.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003794/0.4675, allocations: 130 kB / 0.5311 GB, free: 5.012 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.262e-05/0.4675, allocations: 78.42 kB / 0.5312 GB, free: 4.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001652/0.4677, allocations: 163.5 kB / 0.5314 GB, free: 4.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.838e-05/0.4677, allocations: 25.7 kB / 0.5314 GB, free: 4.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/0.4678, allocations: 140.5 kB / 0.5315 GB, free: 4.641 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.929e-05/0.4678, allocations: 45.52 kB / 0.5316 GB, free: 4.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.514e-06/0.4678, allocations: 0 / 0.5316 GB, free: 4.609 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.49e-05/0.4679, allocations: 324.7 kB / 0.5319 GB, free: 4.293 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.855e-05/0.468, allocations: 39.64 kB / 0.5319 GB, free: 4.289 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.4682, allocations: 116.6 kB / 0.532 GB, free: 4.184 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.4683, allocations: 59.31 kB / 0.5321 GB, free: 4.172 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.4683, allocations: 1.156 kB / 0.5321 GB, free: 4.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003361/0.4686, allocations: 176 kB / 0.5322 GB, free: 4.105 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.4687, allocations: 5.562 kB / 0.5322 GB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.4687, allocations: 10.59 kB / 0.5323 GB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.4687, allocations: 5.25 kB / 0.5323 GB, free: 4.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002307/0.4689, allocations: 53.47 kB / 0.5323 GB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.469, allocations: 9.125 kB / 0.5323 GB, free: 4.082 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001531/0.4691, allocations: 15.72 kB / 0.5323 GB, free: 4.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.102e-05/0.4692, allocations: 8.844 kB / 0.5323 GB, free: 4.07 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.669e-05/0.4692, allocations: 112.7 kB / 0.5324 GB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.927e-05/0.4693, allocations: 15.75 kB / 0.5325 GB, free: 3.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003024/0.4696, allocations: 142.5 kB / 0.5326 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.4696, allocations: 1.344 kB / 0.5326 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.4696, allocations: 1.312 kB / 0.5326 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.4697, allocations: 0 / 0.5326 GB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008082/0.4705, allocations: 0.6238 MB / 0.5332 GB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.4705, allocations: 2.656 kB / 0.5332 GB, free: 3.383 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/0.4707, allocations: 29.58 kB / 0.5332 GB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.4707, allocations: 11.83 kB / 0.5333 GB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.4707, allocations: 6.875 kB / 0.5333 GB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.4707, allocations: 6.594 kB / 0.5333 GB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.131e-06/0.4707, allocations: 2.625 kB / 0.5333 GB, free: 3.367 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004877/0.4712, allocations: 460.4 kB / 0.5337 GB, free: 2.973 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.4713, allocations: 104.9 kB / 0.5338 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.784e-05/0.4714, allocations: 2.594 kB / 0.5338 GB, free: 2.859 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001249/0.4715, allocations: 6.719 kB / 0.5338 GB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.4715, allocations: 17.08 kB / 0.5338 GB, free: 2.848 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.4716, allocations: 6 kB / 0.5338 GB, free: 2.848 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0001076/0.4717, allocations: 119.6 kB / 0.534 GB, free: 2.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004475/0.4721, allocations: 52.31 kB / 0.534 GB, free: 2.758 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001791/0.4723, allocations: 108.1 kB / 0.5341 GB, free: 2.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.4726, allocations: 116.7 kB / 0.5342 GB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.4726, allocations: 1.312 kB / 0.5342 GB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.4727, allocations: 60.08 kB / 0.5343 GB, free: 2.629 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.4731, allocations: 22.42 kB / 0.5343 GB, free: 2.625 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009796/0.4741, allocations: 419.1 kB / 0.5347 GB, free: 2.312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.4745, allocations: 0.7668 MB / 0.5354 GB, free: 1.582 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4745, allocations: 4 kB / 0.5354 GB, free: 1.578 MB / 346.7 MB Notification: Performance of Templates: time 0.005167/0.4797, allocations: 1.404 MB / 0.5368 GB, free: 0.9023 MB / 346.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)