Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.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.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001609, allocations: 186.8 kB / 7.803 MB, free: 2.488 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.828/1.828, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.001279/0.001278, allocations: 88.27 kB / 261.4 MB, free: 13.61 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.2725/0.2725, allocations: 37.98 MB / 347.3 MB, free: 7.543 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.133e-05/1.153e-05, allocations: 0 / 409.3 MB, free: 47.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 56.32 MB / 465.6 MB, free: 6.863 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4588, allocations: 93.63 MB / 0.5462 GB, free: 1.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000274/0.4592, allocations: 85.08 kB / 0.5462 GB, free: 1.188 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.03952/0.4987, allocations: 9.413 MB / 0.5554 GB, free: 7.672 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.985e-05/0.4988, allocations: 0 / 0.5554 GB, free: 7.672 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008119/0.4996, allocations: 476.5 kB / 0.5559 GB, free: 7.156 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.4997, allocations: 12.03 kB / 0.5559 GB, free: 7.145 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001157/0.5008, allocations: 91.61 kB / 0.556 GB, free: 7.055 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000646/0.5015, allocations: 258.9 kB / 0.5562 GB, free: 6.762 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.157e-05/0.5016, allocations: 4 kB / 0.5562 GB, free: 6.758 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.915e-05/0.5016, allocations: 15.91 kB / 0.5562 GB, free: 6.742 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004451/0.5021, allocations: 140.2 kB / 0.5564 GB, free: 6.605 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005471/0.5027, allocations: 231.7 kB / 0.5566 GB, free: 6.355 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.272e-05/0.5027, allocations: 3.938 kB / 0.5566 GB, free: 6.352 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.997e-05/0.5027, allocations: 4 kB / 0.5566 GB, free: 6.348 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.034e-05/0.5028, allocations: 16.31 kB / 0.5566 GB, free: 6.332 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.5054, allocations: 1.215 MB / 0.5578 GB, free: 5.027 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005452/0.506, allocations: 150.5 kB / 0.558 GB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001279/0.5062, allocations: 45.72 kB / 0.558 GB, free: 4.812 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.5062, allocations: 4 kB / 0.558 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.801e-05/0.5062, allocations: 30.81 kB / 0.558 GB, free: 4.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 5.41e-06/0.5062, allocations: 3.984 kB / 0.558 GB, free: 4.766 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004541/0.5067, allocations: 132.6 kB / 0.5582 GB, free: 4.633 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/0.5068, allocations: 85.05 kB / 0.5582 GB, free: 4.531 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002144/0.507, allocations: 151.5 kB / 0.5584 GB, free: 4.375 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.378e-05/0.507, allocations: 25.7 kB / 0.5584 GB, free: 4.344 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.5072, allocations: 206.3 kB / 0.5586 GB, free: 4.141 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.781e-05/0.5072, allocations: 51.3 kB / 0.5587 GB, free: 4.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.5073, allocations: 0 / 0.5587 GB, free: 4.09 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5074, allocations: 318.8 kB / 0.559 GB, free: 3.77 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/0.5075, allocations: 43.97 kB / 0.559 GB, free: 3.727 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.5077, allocations: 115.1 kB / 0.5591 GB, free: 3.578 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.5079, allocations: 63.91 kB / 0.5592 GB, free: 3.516 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.5079, allocations: 0 / 0.5592 GB, free: 3.516 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004658/0.5084, allocations: 173.4 kB / 0.5593 GB, free: 3.34 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.5084, allocations: 4 kB / 0.5593 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.5085, allocations: 4 kB / 0.5593 GB, free: 3.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.5085, allocations: 7.984 kB / 0.5594 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003731/0.5089, allocations: 47.92 kB / 0.5594 GB, free: 3.277 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.5089, allocations: 4 kB / 0.5594 GB, free: 3.273 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.5091, allocations: 7.906 kB / 0.5594 GB, free: 3.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.5091, allocations: 15.98 kB / 0.5594 GB, free: 3.25 MB / 394.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 8.125e-05/0.5092, allocations: 45.78 kB / 0.5595 GB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.5093, allocations: 15.81 kB / 0.5595 GB, free: 3.184 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004062/0.5097, allocations: 135 kB / 0.5596 GB, free: 3.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.11e-05/0.5097, allocations: 7.906 kB / 0.5596 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.5098, allocations: 0 / 0.5596 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.5098, allocations: 0 / 0.5596 GB, free: 3.039 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.511, allocations: 0.6158 MB / 0.5602 GB, free: 2.336 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.885e-06/0.511, allocations: 4 kB / 0.5602 GB, free: 2.332 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.5114, allocations: 43.81 kB / 0.5603 GB, free: 2.289 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-06/0.5114, allocations: 4 kB / 0.5603 GB, free: 2.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.5114, allocations: 4.25 kB / 0.5603 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.548e-06/0.5114, allocations: 12.06 kB / 0.5603 GB, free: 2.27 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.387e-06/0.5115, allocations: 7.938 kB / 0.5603 GB, free: 2.262 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006745/0.5121, allocations: 443.6 kB / 0.5607 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.201e-05/0.5122, allocations: 104.9 kB / 0.5608 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.5123, allocations: 4 kB / 0.5608 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.5125, allocations: 0 / 0.5608 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.5126, allocations: 19.89 kB / 0.5608 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.641e-05/0.5126, allocations: 8.062 kB / 0.5609 GB, free: 1.578 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001498/0.5127, allocations: 128.3 kB / 0.561 GB, free: 1.453 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0005003/0.5133, allocations: 55.83 kB / 0.561 GB, free: 1.398 MB / 394.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.0001666/0.5134, allocations: 103.1 kB / 0.5611 GB, free: 1.289 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0003558/0.5138, allocations: 115.8 kB / 0.5612 GB, free: 1.176 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.5138, allocations: 0 / 0.5612 GB, free: 1.176 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.514, allocations: 61.05 kB / 0.5613 GB, free: 1.117 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004511/0.5144, allocations: 27.92 kB / 0.5613 GB, free: 1.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/0.5157, allocations: 466 kB / 0.5618 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005242/0.5162, allocations: 0.7704 MB / 0.5625 GB, free: 15.78 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5162, allocations: 0 / 0.5625 GB, free: 15.78 MB / 410.7 MB Notification: Performance of Templates: time 0.006151/0.5224, allocations: 2.176 MB / 0.5646 GB, free: 13.6 MB / 410.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & ./PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1)