Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.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.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial") translateModel(PowerSystems.Examples.Introductory.ReferenceInertial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002454/0.002454, allocations: 194.6 kB / 7.808 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.924/1.924, allocations: 205.2 MB / 213.4 MB, free: 13.92 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.001234/0.001234, allocations: 91.02 kB / 261.4 MB, free: 13.62 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.27/0.27, allocations: 37.98 MB / 347.3 MB, free: 7.547 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.974e-06/8.195e-06, allocations: 0 / 409.3 MB, free: 47.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.105, allocations: 56.32 MB / 465.6 MB, free: 6.855 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3497/0.4548, allocations: 99.43 MB / 0.5518 GB, free: 11.44 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.4551, allocations: 79.95 kB / 0.5519 GB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.0536/0.5088, allocations: 11.8 MB / 0.5634 GB, free: 15.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.372e-05/0.5088, allocations: 12 kB / 0.5634 GB, free: 15.42 MB / 410.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.001524/0.5104, allocations: 0.6373 MB / 0.564 GB, free: 14.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.5104, allocations: 8.031 kB / 0.5641 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008883/0.5113, allocations: 87.28 kB / 0.5641 GB, free: 14.64 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003603/0.515, allocations: 0.8412 MB / 0.565 GB, free: 13.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.5151, allocations: 12 kB / 0.565 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.5152, allocations: 28.75 kB / 0.565 GB, free: 13.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001141/0.5163, allocations: 369.8 kB / 0.5654 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001241/0.5176, allocations: 0.5604 MB / 0.5659 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.5176, allocations: 0 / 0.5659 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.5177, allocations: 4 kB / 0.5659 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.199e-05/0.5178, allocations: 24.77 kB / 0.5659 GB, free: 12.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005038/0.5229, allocations: 2.791 MB / 0.5687 GB, free: 9.777 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005337/0.5235, allocations: 200.7 kB / 0.5688 GB, free: 9.562 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.5238, allocations: 153.8 kB / 0.569 GB, free: 9.406 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.861e-05/0.5239, allocations: 4 kB / 0.569 GB, free: 9.402 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.833e-05/0.524, allocations: 34.56 kB / 0.569 GB, free: 9.359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 3.817e-06/0.524, allocations: 0 / 0.569 GB, free: 9.359 MB / 410.7 MB Notification: Performance of matching and sorting (n=30): time 0.002333/0.5263, allocations: 0.8492 MB / 0.5699 GB, free: 8.457 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.5264, allocations: 77.11 kB / 0.5699 GB, free: 8.363 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004352/0.5269, allocations: 271.4 kB / 0.5702 GB, free: 8.094 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.5269, allocations: 29.69 kB / 0.5702 GB, free: 8.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5271, allocations: 301.7 kB / 0.5705 GB, free: 7.758 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.5272, allocations: 102.5 kB / 0.5706 GB, free: 7.656 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.492e-05/0.5273, allocations: 0 / 0.5706 GB, free: 7.656 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.5274, allocations: 334.8 kB / 0.5709 GB, free: 7.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003604/0.5278, allocations: 137 kB / 0.5711 GB, free: 7.188 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005232/0.5283, allocations: 338.1 kB / 0.5714 GB, free: 6.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006015/0.529, allocations: 215.7 kB / 0.5716 GB, free: 6.559 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.529, allocations: 0 / 0.5716 GB, free: 6.559 MB / 410.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001245/0.5302, allocations: 480.8 kB / 0.572 GB, free: 6.082 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.5303, allocations: 4.906 kB / 0.572 GB, free: 6.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.033e-05/0.5303, allocations: 11.91 kB / 0.5721 GB, free: 6.066 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.891e-05/0.5304, allocations: 12 kB / 0.5721 GB, free: 6.055 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007997/0.5312, allocations: 111.8 kB / 0.5722 GB, free: 5.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/0.5312, allocations: 12 kB / 0.5722 GB, free: 5.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003441/0.5316, allocations: 11.98 kB / 0.5722 GB, free: 5.922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.374e-05/0.5316, allocations: 24 kB / 0.5722 GB, free: 5.898 MB / 410.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.0001141/0.5318, allocations: 45.92 kB / 0.5723 GB, free: 5.848 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5319, allocations: 31.53 kB / 0.5723 GB, free: 5.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.533, allocations: 353.3 kB / 0.5726 GB, free: 5.465 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.566e-05/0.5331, allocations: 4 kB / 0.5726 GB, free: 5.461 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.5331, allocations: 4 kB / 0.5726 GB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.792e-06/0.5331, allocations: 0 / 0.5726 GB, free: 5.457 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.5353, allocations: 0.8177 MB / 0.5734 GB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.5354, allocations: 0 / 0.5734 GB, free: 4.586 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006389/0.536, allocations: 63.91 kB / 0.5735 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/0.5361, allocations: 4 kB / 0.5735 GB, free: 4.52 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.5361, allocations: 7.984 kB / 0.5735 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.488e-06/0.5361, allocations: 7.906 kB / 0.5735 GB, free: 4.504 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.987e-06/0.5362, allocations: 3.984 kB / 0.5735 GB, free: 4.5 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001385/0.5376, allocations: 0.634 MB / 0.5741 GB, free: 3.812 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.5377, allocations: 112.6 kB / 0.5742 GB, free: 3.684 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.769e-05/0.5378, allocations: 7.938 kB / 0.5743 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003425/0.5382, allocations: 11.98 kB / 0.5743 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.428e-05/0.5383, allocations: 15.98 kB / 0.5743 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.42e-05/0.5383, allocations: 8 kB / 0.5743 GB, free: 3.641 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0003181/0.5386, allocations: 199.1 kB / 0.5745 GB, free: 3.449 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006765/0.5393, allocations: 84 kB / 0.5746 GB, free: 3.367 MB / 410.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.0002303/0.5396, allocations: 119.1 kB / 0.5747 GB, free: 3.242 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009448/0.5405, allocations: 351.8 kB / 0.575 GB, free: 2.898 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.5406, allocations: 0 / 0.575 GB, free: 2.898 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.541, allocations: 147.8 kB / 0.5751 GB, free: 2.754 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006275/0.5416, allocations: 54.92 kB / 0.5752 GB, free: 2.699 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.5439, allocations: 0.8318 MB / 0.576 GB, free: 1.832 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008539/0.5448, allocations: 0.8971 MB / 0.5769 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of SimCode: time 1.193e-06/0.5449, allocations: 0 / 0.5769 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of Templates: time 0.01229/0.5572, allocations: 4.836 MB / 0.5816 GB, free: 12.07 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceInertial.pipe 2>&1)