Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Source,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1480,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001675/0.001675, allocations: 187.3 kB / 7.808 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.647/1.647, allocations: 205.2 MB / 213.4 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001318/0.001318, allocations: 94.77 kB / 261.4 MB, free: 13.59 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3349/0.3349, allocations: 37.97 MB / 347.3 MB, free: 7.512 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.486e-06/8.626e-06, allocations: 0 / 409.3 MB, free: 47.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09761/0.09765, allocations: 56.32 MB / 465.6 MB, free: 6.824 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3318/0.4295, allocations: 93.43 MB / 0.546 GB, free: 1.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/0.4298, allocations: 87.95 kB / 0.5461 GB, free: 1.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.02717/0.457, allocations: 5.79 MB / 0.5517 GB, free: 11.48 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.4571, allocations: 4 kB / 0.5517 GB, free: 11.48 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009566/0.4581, allocations: 0.5 MB / 0.5522 GB, free: 10.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4581, allocations: 12.02 kB / 0.5522 GB, free: 10.92 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.4582, allocations: 35.62 kB / 0.5522 GB, free: 10.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00315/0.4614, allocations: 0.7441 MB / 0.553 GB, free: 10.1 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.679e-05/0.4615, allocations: 8 kB / 0.553 GB, free: 10.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.815e-05/0.4616, allocations: 15.98 kB / 0.553 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000473/0.4621, allocations: 144.8 kB / 0.5531 GB, free: 9.934 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005176/0.4626, allocations: 237.2 kB / 0.5534 GB, free: 9.676 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.4626, allocations: 0 / 0.5534 GB, free: 9.676 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.241e-05/0.4627, allocations: 3.984 kB / 0.5534 GB, free: 9.672 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.4627, allocations: 8 kB / 0.5534 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.4645, allocations: 1.123 MB / 0.5545 GB, free: 8.465 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.4647, allocations: 69.17 kB / 0.5545 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.323e-05/0.4648, allocations: 25.91 kB / 0.5546 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.4649, allocations: 0 / 0.5546 GB, free: 8.348 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.4649, allocations: 42.5 kB / 0.5546 GB, free: 8.297 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 2.024e-06/0.4649, allocations: 3.938 kB / 0.5546 GB, free: 8.293 MB / 394.7 MB Notification: Performance of matching and sorting (n=8): time 0.000849/0.4658, allocations: 376.8 kB / 0.555 GB, free: 7.871 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.4659, allocations: 77.11 kB / 0.555 GB, free: 7.777 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.4662, allocations: 196.1 kB / 0.5552 GB, free: 7.578 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.4662, allocations: 25.7 kB / 0.5552 GB, free: 7.547 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001287/0.4663, allocations: 226 kB / 0.5555 GB, free: 7.32 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.4664, allocations: 32.11 kB / 0.5555 GB, free: 7.289 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.935e-06/0.4664, allocations: 0 / 0.5555 GB, free: 7.289 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.4665, allocations: 322.9 kB / 0.5558 GB, free: 6.965 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.492e-05/0.4666, allocations: 24.38 kB / 0.5558 GB, free: 6.941 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.4668, allocations: 115.9 kB / 0.5559 GB, free: 6.785 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001247/0.4669, allocations: 43.92 kB / 0.556 GB, free: 6.742 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.4669, allocations: 3.938 kB / 0.556 GB, free: 6.738 MB / 394.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003515/0.4673, allocations: 133.3 kB / 0.5561 GB, free: 6.602 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.4673, allocations: 8.438 kB / 0.5561 GB, free: 6.594 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4674, allocations: 7.984 kB / 0.5561 GB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.4674, allocations: 8.25 kB / 0.5561 GB, free: 6.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003028/0.4677, allocations: 43.92 kB / 0.5562 GB, free: 6.535 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.4677, allocations: 8 kB / 0.5562 GB, free: 6.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00013/0.4679, allocations: 7.906 kB / 0.5562 GB, free: 6.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.917e-05/0.4679, allocations: 11.94 kB / 0.5562 GB, free: 6.508 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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 6.618e-05/0.468, allocations: 29.64 kB / 0.5562 GB, free: 6.473 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.468, allocations: 19.81 kB / 0.5562 GB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002567/0.4683, allocations: 103.4 kB / 0.5563 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.4683, allocations: 0 / 0.5563 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.4683, allocations: 0 / 0.5563 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.4684, allocations: 0 / 0.5563 GB, free: 6.348 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005994/0.469, allocations: 375.8 kB / 0.5567 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.469, allocations: 0 / 0.5567 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001808/0.4692, allocations: 23.98 kB / 0.5567 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/0.4692, allocations: 0 / 0.5567 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.4692, allocations: 0 / 0.5567 GB, free: 5.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4692, allocations: 8.031 kB / 0.5567 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.858e-06/0.4692, allocations: 0 / 0.5567 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003494/0.4696, allocations: 232.4 kB / 0.557 GB, free: 5.641 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.225e-05/0.4697, allocations: 96.81 kB / 0.5571 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.325e-05/0.4698, allocations: 8 kB / 0.5571 GB, free: 5.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.4699, allocations: 8 kB / 0.5571 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.826e-05/0.47, allocations: 0 / 0.5571 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.47, allocations: 4 kB / 0.5571 GB, free: 5.508 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.000193/0.4702, allocations: 152.4 kB / 0.5572 GB, free: 5.355 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004081/0.4706, allocations: 39.98 kB / 0.5573 GB, free: 5.316 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * 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.0001949/0.4708, allocations: 103.3 kB / 0.5574 GB, free: 5.207 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002296/0.4711, allocations: 71.88 kB / 0.5574 GB, free: 5.137 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4711, allocations: 96 / 0.5574 GB, free: 5.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.741e-05/0.4712, allocations: 39.84 kB / 0.5575 GB, free: 5.098 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.4718, allocations: 37.47 kB / 0.5575 GB, free: 5.062 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.4728, allocations: 363.8 kB / 0.5578 GB, free: 4.664 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004684/0.4733, allocations: 0.7863 MB / 0.5586 GB, free: 3.852 MB / 394.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4733, allocations: 0 / 0.5586 GB, free: 3.852 MB / 394.7 MB Notification: Performance of Templates: time 0.006922/0.4802, allocations: 2.577 MB / 0.5611 GB, free: 1.273 MB / 394.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Elementary.Source.pipe 2>&1)