Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle") [: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.0026/0.002599, allocations: 190.8 kB / 7.803 MB, free: 2.484 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.813/1.813, 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.001393/0.001393, allocations: 97.75 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.2744/0.2744, allocations: 37.97 MB / 347.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.556e-06/8.577e-06, allocations: 0 / 409.3 MB, free: 47.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09728/0.09731, allocations: 56.32 MB / 465.6 MB, free: 6.832 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3637/0.4611, allocations: 111.4 MB / 0.5635 GB, free: 15.4 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003324/0.4615, allocations: 91.94 kB / 0.5636 GB, free: 15.31 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1367/0.5982, allocations: 29.2 MB / 0.5921 GB, free: 1.758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.575e-05/0.5983, allocations: 20 kB / 0.5922 GB, free: 1.738 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003512/0.6019, allocations: 1.041 MB / 0.5932 GB, free: 0.6445 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.6019, allocations: 8.031 kB / 0.5932 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002171/0.6041, allocations: 194.6 kB / 0.5934 GB, free: 456 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005406/0.6096, allocations: 1.173 MB / 0.5945 GB, free: 15.23 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.137e-05/0.6097, allocations: 24 kB / 0.5945 GB, free: 15.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003753/0.6101, allocations: 59.89 kB / 0.5946 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002594/0.6127, allocations: 0.7536 MB / 0.5953 GB, free: 14.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003038/0.6158, allocations: 0.9951 MB / 0.5963 GB, free: 13.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.696e-05/0.6159, allocations: 0 / 0.5963 GB, free: 13.35 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.616, allocations: 4 kB / 0.5963 GB, free: 13.35 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001813/0.6162, allocations: 69.95 kB / 0.5964 GB, free: 13.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.6263, allocations: 3.932 MB / 0.6002 GB, free: 9.148 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/0.6272, allocations: 300.8 kB / 0.6005 GB, free: 8.844 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000673/0.6279, allocations: 266.4 kB / 0.6008 GB, free: 8.578 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.095e-05/0.628, allocations: 8.375 kB / 0.6008 GB, free: 8.57 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.427e-05/0.6281, allocations: 38.94 kB / 0.6008 GB, free: 8.523 MB / 442.7 MB Notification: Performance of pre-optimization done (n=47): time 3.848e-06/0.6281, allocations: 0 / 0.6008 GB, free: 8.523 MB / 442.7 MB Notification: Performance of matching and sorting (n=54): time 0.005951/0.634, allocations: 1.657 MB / 0.6024 GB, free: 6.812 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.6341, allocations: 81.55 kB / 0.6025 GB, free: 6.715 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008309/0.635, allocations: 429.9 kB / 0.6029 GB, free: 6.289 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001083/0.6351, allocations: 25.7 kB / 0.6029 GB, free: 6.258 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/0.6354, allocations: 444.8 kB / 0.6034 GB, free: 5.816 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.6358, allocations: 189.2 kB / 0.6035 GB, free: 5.629 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.062e-05/0.6358, allocations: 0 / 0.6035 GB, free: 5.629 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001678/0.636, allocations: 346.7 kB / 0.6039 GB, free: 5.281 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007412/0.6368, allocations: 261.5 kB / 0.6041 GB, free: 5.027 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000931/0.6377, allocations: 492.8 kB / 0.6046 GB, free: 4.441 MB / 442.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.004562/0.6423, allocations: 0.7106 MB / 0.6053 GB, free: 3.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.6423, allocations: 4 kB / 0.6053 GB, free: 3.727 MB / 442.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004202/0.6466, allocations: 1.054 MB / 0.6063 GB, free: 2.637 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.627e-05/0.6466, allocations: 8 kB / 0.6063 GB, free: 2.629 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00318/0.6498, allocations: 0.8053 MB / 0.6071 GB, free: 1.789 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001059/0.6509, allocations: 203.3 kB / 0.6073 GB, free: 1.578 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00125/0.6522, allocations: 159.7 kB / 0.6075 GB, free: 1.422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009474/0.6617, allocations: 5.955 MB / 0.6133 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007622/0.6625, allocations: 15.98 kB / 0.6133 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.6627, allocations: 36 kB / 0.6133 GB, free: 10.95 MB / 458.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: infBus.V = 20000.0 * infBus.v0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: infBus.V:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) = 20000.0 * infBus.v0 type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * 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 (87): * Single equations (assignments): 83 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 2} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002818/0.663, allocations: 57.5 kB / 0.6134 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.6632, allocations: 67.16 kB / 0.6134 GB, free: 10.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001946/0.6652, allocations: 0.5988 MB / 0.614 GB, free: 10.21 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.697e-05/0.6652, allocations: 12 kB / 0.614 GB, free: 10.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.6652, allocations: 0 / 0.614 GB, free: 10.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.6653, allocations: 0 / 0.614 GB, free: 10.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00534/0.6706, allocations: 1.638 MB / 0.6156 GB, free: 8.457 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/0.6707, allocations: 4 kB / 0.6156 GB, free: 8.453 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001345/0.672, allocations: 128.4 kB / 0.6158 GB, free: 8.328 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.666e-05/0.6721, allocations: 19.98 kB / 0.6158 GB, free: 8.309 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.61e-05/0.6722, allocations: 15.91 kB / 0.6158 GB, free: 8.293 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.449e-05/0.6722, allocations: 8 kB / 0.6158 GB, free: 8.285 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.7e-05/0.6723, allocations: 7.938 kB / 0.6158 GB, free: 8.277 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002685/0.6749, allocations: 1.282 MB / 0.6171 GB, free: 6.781 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005558/0.6756, allocations: 184.2 kB / 0.6172 GB, free: 6.582 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.6758, allocations: 19.92 kB / 0.6173 GB, free: 6.562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007363/0.6765, allocations: 19.92 kB / 0.6173 GB, free: 6.543 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001135/0.6767, allocations: 35.92 kB / 0.6173 GB, free: 6.508 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/0.6767, allocations: 27.97 kB / 0.6173 GB, free: 6.48 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0006656/0.6774, allocations: 322.9 kB / 0.6176 GB, free: 6.168 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001436/0.6789, allocations: 203.9 kB / 0.6178 GB, free: 5.969 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * 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.0003597/0.6793, allocations: 139 kB / 0.618 GB, free: 5.824 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00323/0.6825, allocations: 1.088 MB / 0.619 GB, free: 4.703 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/0.6826, allocations: 320 / 0.619 GB, free: 4.703 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007796/0.6834, allocations: 267.7 kB / 0.6193 GB, free: 4.441 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.6847, allocations: 120.9 kB / 0.6194 GB, free: 4.324 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005425/0.6902, allocations: 1.734 MB / 0.6211 GB, free: 2.488 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001497/0.6917, allocations: 1.163 MB / 0.6222 GB, free: 1.297 MB / 458.7 MB Notification: Performance of SimCode: time 1.613e-06/0.6918, allocations: 0 / 0.6222 GB, free: 1.297 MB / 458.7 MB Notification: Performance of Templates: time 0.03404/0.7258, allocations: 15.94 MB / 0.6378 GB, free: 1.336 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)