Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.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.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") translateModel(PowerSystems.Examples.Introductory.ReferenceSynchron,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron") [: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.00162/0.001619, allocations: 189.4 kB / 7.805 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.859/1.859, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.00127/0.00127, allocations: 94.92 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.277/0.277, allocations: 37.97 MB / 347.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.02e-05/1.033e-05, allocations: 4 kB / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1025, allocations: 56.32 MB / 465.6 MB, free: 6.84 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.362/0.4645, allocations: 99.42 MB / 0.5518 GB, free: 11.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.4649, allocations: 75.97 kB / 0.5519 GB, free: 11.36 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.06163/0.5266, allocations: 12.74 MB / 0.5643 GB, free: 14.49 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.657e-05/0.5267, allocations: 12 kB / 0.5643 GB, free: 14.48 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.001996/0.5287, allocations: 0.668 MB / 0.565 GB, free: 13.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/0.5287, allocations: 12.03 kB / 0.565 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009897/0.5297, allocations: 87.28 kB / 0.5651 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004044/0.5338, allocations: 0.845 MB / 0.5659 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.5339, allocations: 12 kB / 0.5659 GB, free: 12.76 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001342/0.5341, allocations: 28 kB / 0.5659 GB, free: 12.73 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001494/0.5356, allocations: 477.6 kB / 0.5664 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001526/0.5371, allocations: 0.6186 MB / 0.567 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/0.5372, allocations: 7.844 kB / 0.567 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.998e-05/0.5373, allocations: 3.984 kB / 0.567 GB, free: 11.6 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002044/0.5375, allocations: 44.75 kB / 0.567 GB, free: 11.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00665/0.5442, allocations: 2.399 MB / 0.5694 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008555/0.5451, allocations: 324.9 kB / 0.5697 GB, free: 8.711 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.5457, allocations: 266.5 kB / 0.57 GB, free: 8.445 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.5458, allocations: 7.938 kB / 0.57 GB, free: 8.438 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/0.5458, allocations: 42.55 kB / 0.57 GB, free: 8.387 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 4.088e-06/0.5458, allocations: 0 / 0.57 GB, free: 8.387 MB / 410.7 MB Notification: Performance of matching and sorting (n=47): time 0.005247/0.5511, allocations: 1.54 MB / 0.5715 GB, free: 6.797 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.5512, allocations: 81.39 kB / 0.5716 GB, free: 6.699 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.5516, allocations: 231.4 kB / 0.5718 GB, free: 6.465 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.5517, allocations: 25.7 kB / 0.5718 GB, free: 6.434 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001746/0.5519, allocations: 282.7 kB / 0.5721 GB, free: 6.156 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001888/0.5521, allocations: 157.7 kB / 0.5723 GB, free: 6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.5521, allocations: 0 / 0.5723 GB, free: 6 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.5523, allocations: 334.8 kB / 0.5726 GB, free: 5.664 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005469/0.5528, allocations: 221.1 kB / 0.5728 GB, free: 5.449 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007025/0.5536, allocations: 381.9 kB / 0.5731 GB, free: 5.02 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.555, allocations: 376.1 kB / 0.5735 GB, free: 4.648 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.5551, allocations: 0 / 0.5735 GB, free: 4.648 MB / 410.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002253/0.5573, allocations: 0.7157 MB / 0.5742 GB, free: 3.93 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.5574, allocations: 8 kB / 0.5742 GB, free: 3.922 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.5574, allocations: 4 kB / 0.5742 GB, free: 3.918 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.173e-05/0.5575, allocations: 8 kB / 0.5742 GB, free: 3.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00091/0.5584, allocations: 107.8 kB / 0.5743 GB, free: 3.805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.182e-05/0.5584, allocations: 7.938 kB / 0.5743 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004054/0.5588, allocations: 15.98 kB / 0.5743 GB, free: 3.781 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.918e-05/0.5589, allocations: 27.98 kB / 0.5744 GB, free: 3.754 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (55): * Single equations (assignments): 52 * Array equations: 3 * 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.0001526/0.5591, allocations: 49.64 kB / 0.5744 GB, free: 3.699 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.5592, allocations: 35.62 kB / 0.5745 GB, free: 3.664 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002169/0.5614, allocations: 0.649 MB / 0.5751 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001057/0.5615, allocations: 19.98 kB / 0.5751 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.5616, allocations: 0 / 0.5751 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.5616, allocations: 0 / 0.5751 GB, free: 2.988 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/0.5658, allocations: 1.39 MB / 0.5765 GB, free: 1.504 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.5659, allocations: 3.984 kB / 0.5765 GB, free: 1.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/0.5667, allocations: 75.81 kB / 0.5765 GB, free: 1.426 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.365e-05/0.5667, allocations: 7.938 kB / 0.5766 GB, free: 1.418 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.194e-05/0.5667, allocations: 11.98 kB / 0.5766 GB, free: 1.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.245e-06/0.5668, allocations: 4.312 kB / 0.5766 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.5668, allocations: 7.938 kB / 0.5766 GB, free: 1.395 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002817/0.5696, allocations: 1.213 MB / 0.5778 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/0.5699, allocations: 112.6 kB / 0.5779 GB, free: 15.93 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.57, allocations: 8 kB / 0.5779 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004571/0.5704, allocations: 11.98 kB / 0.5779 GB, free: 15.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.5705, allocations: 19.97 kB / 0.5779 GB, free: 15.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.5706, allocations: 20 kB / 0.5779 GB, free: 15.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002933/0.5709, allocations: 179.1 kB / 0.5781 GB, free: 15.69 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007823/0.5717, allocations: 123.9 kB / 0.5782 GB, free: 15.57 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 30 * Array equations: 3 * 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.0002933/0.572, allocations: 127.1 kB / 0.5783 GB, free: 15.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.5735, allocations: 0.5448 MB / 0.5789 GB, free: 14.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.5736, allocations: 4.438 kB / 0.5789 GB, free: 14.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.5744, allocations: 279.7 kB / 0.5791 GB, free: 14.62 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007246/0.5751, allocations: 52.86 kB / 0.5792 GB, free: 14.56 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.5779, allocations: 1.04 MB / 0.5802 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001089/0.5791, allocations: 0.9136 MB / 0.5811 GB, free: 12.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5791, allocations: 4 kB / 0.5811 GB, free: 12.52 MB / 426.7 MB Notification: Performance of Templates: time 0.01317/0.5923, allocations: 5.617 MB / 0.5866 GB, free: 6.906 MB / 426.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.ReferenceSynchron.pipe 2>&1)