Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial") [: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.001705/0.001705, allocations: 189 kB / 8.138 MB, free: 2.184 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.291/1.291, allocations: 194.2 MB / 202.8 MB, free: 8.719 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.001694/0.001695, allocations: 117.5 kB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1799/0.1799, allocations: 37.91 MB / 330.5 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.971e-06/6.011e-06, allocations: 0 / 389.8 MB, free: 78.11 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09853/0.09855, allocations: 53.23 MB / 443 MB, free: 24.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3144/0.4131, allocations: 94.53 MB / 0.5249 GB, free: 9.535 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.4134, allocations: 84.08 kB / 0.525 GB, free: 9.523 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.03552/0.4489, allocations: 11.81 MB / 0.5366 GB, free: 2.871 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.406e-05/0.449, allocations: 8 kB / 0.5366 GB, free: 2.863 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: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001436/0.4505, allocations: 0.6299 MB / 0.5372 GB, free: 2.211 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/0.4505, allocations: 12.03 kB / 0.5372 GB, free: 2.199 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006999/0.4512, allocations: 87.28 kB / 0.5373 GB, free: 2.113 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.4535, allocations: 0.835 MB / 0.5381 GB, free: 1.391 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.7e-05/0.4536, allocations: 15.98 kB / 0.5381 GB, free: 1.375 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.873e-05/0.4537, allocations: 27.98 kB / 0.5381 GB, free: 1.348 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006874/0.4544, allocations: 379.6 kB / 0.5385 GB, free: 1.094 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00073/0.4551, allocations: 0.5533 MB / 0.539 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.4552, allocations: 0 / 0.539 GB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.319e-05/0.4552, allocations: 7.938 kB / 0.539 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.258e-05/0.4553, allocations: 32.33 kB / 0.5391 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003606/0.4589, allocations: 2.778 MB / 0.5418 GB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003352/0.4593, allocations: 196.5 kB / 0.542 GB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002151/0.4595, allocations: 141.1 kB / 0.5421 GB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.4595, allocations: 7.938 kB / 0.5421 GB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.4596, allocations: 37.75 kB / 0.5422 GB, free: 13.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.666e-06/0.4596, allocations: 0 / 0.5422 GB, free: 13.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001905/0.4615, allocations: 0.8465 MB / 0.543 GB, free: 12.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.403e-05/0.4616, allocations: 81.11 kB / 0.5431 GB, free: 12.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.462, allocations: 261.1 kB / 0.5433 GB, free: 12.53 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.462, allocations: 25.7 kB / 0.5433 GB, free: 12.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001673/0.4622, allocations: 248.7 kB / 0.5436 GB, free: 12.27 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001093/0.4623, allocations: 105.2 kB / 0.5437 GB, free: 12.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.4623, allocations: 32 / 0.5437 GB, free: 12.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4625, allocations: 353.8 kB / 0.544 GB, free: 11.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002156/0.4628, allocations: 145.6 kB / 0.5441 GB, free: 11.73 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003413/0.4631, allocations: 336 kB / 0.5445 GB, free: 11.37 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.4635, allocations: 209.2 kB / 0.5447 GB, free: 11.21 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.4635, allocations: 8 kB / 0.5447 GB, free: 11.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0008615/0.4644, allocations: 493 kB / 0.5451 GB, free: 10.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.4644, allocations: 4 kB / 0.5451 GB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.97e-05/0.4645, allocations: 8 kB / 0.5452 GB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.884e-05/0.4645, allocations: 11.94 kB / 0.5452 GB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004644/0.465, allocations: 111.4 kB / 0.5453 GB, free: 10.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.113e-05/0.465, allocations: 11.94 kB / 0.5453 GB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003158/0.4653, allocations: 19.89 kB / 0.5453 GB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-05/0.4654, allocations: 20.09 kB / 0.5453 GB, free: 10.62 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (57): * Single equations (assignments): 56 * Array equations: 1 * 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 0.0001373/0.4655, allocations: 124.9 kB / 0.5454 GB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.195e-05/0.4656, allocations: 31.62 kB / 0.5455 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.4663, allocations: 348.4 kB / 0.5458 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.757e-05/0.4664, allocations: 4 kB / 0.5458 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.4664, allocations: 0 / 0.5458 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.4664, allocations: 4 kB / 0.5458 GB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001572/0.468, allocations: 0.8097 MB / 0.5466 GB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.468, allocations: 0 / 0.5466 GB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003503/0.4683, allocations: 63.66 kB / 0.5467 GB, free: 9.426 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.066e-05/0.4684, allocations: 3.984 kB / 0.5467 GB, free: 9.422 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.4684, allocations: 4 kB / 0.5467 GB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.72e-06/0.4684, allocations: 4.094 kB / 0.5467 GB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.4684, allocations: 7.938 kB / 0.5467 GB, free: 9.406 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009404/0.4694, allocations: 0.6375 MB / 0.5473 GB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.4695, allocations: 100.7 kB / 0.5474 GB, free: 8.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.955e-05/0.4696, allocations: 4 kB / 0.5474 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002088/0.4698, allocations: 11.89 kB / 0.5474 GB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.126e-05/0.4699, allocations: 15.36 kB / 0.5474 GB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.269e-05/0.4699, allocations: 15.98 kB / 0.5474 GB, free: 8.684 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002489/0.4702, allocations: 195.6 kB / 0.5476 GB, free: 8.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006303/0.4708, allocations: 99.92 kB / 0.5477 GB, free: 8.434 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (load_dq0.i[1],load_dq0.i[2],load_dq0.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 27 * Array equations: 1 * 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.0002787/0.4711, allocations: 111.3 kB / 0.5478 GB, free: 8.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006372/0.4717, allocations: 357.4 kB / 0.5482 GB, free: 8.051 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.4718, allocations: 3.75 kB / 0.5482 GB, free: 8.051 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.472, allocations: 145.1 kB / 0.5483 GB, free: 7.945 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004636/0.4725, allocations: 55.81 kB / 0.5484 GB, free: 7.902 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002012/0.4745, allocations: 0.7798 MB / 0.5491 GB, free: 7.164 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008386/0.4754, allocations: 0.902 MB / 0.55 GB, free: 6.254 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4754, allocations: 0 / 0.55 GB, free: 6.254 MB / 362.7 MB Notification: Performance of Templates: time 0.0101/0.4855, allocations: 3.524 MB / 0.5535 GB, free: 2.789 MB / 362.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)