Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.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.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") [: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.002426/0.00243, allocations: 192.6 kB / 7.807 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.721/1.721, 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.001204/0.001204, allocations: 101.1 kB / 261.4 MB, free: 13.6 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.2629/0.2629, allocations: 37.97 MB / 347.3 MB, free: 7.535 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.047e-05/1.063e-05, allocations: 0 / 409.3 MB, free: 47.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1104, allocations: 56.33 MB / 465.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5371, allocations: 121.6 MB / 0.5735 GB, free: 5.215 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004075/0.5376, allocations: 87.95 kB / 0.5736 GB, free: 5.129 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.1611/0.6987, allocations: 34.95 MB / 0.6077 GB, free: 1.816 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.6988, allocations: 27.94 kB / 0.6077 GB, free: 1.789 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 274 * Number of variables: 274 Notification: Performance of Generate backend data structure: time 0.004403/0.7033, allocations: 1.335 MB / 0.609 GB, free: 412 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.7033, allocations: 8.031 kB / 0.609 GB, free: 404 kB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009723/0.7043, allocations: 162.3 kB / 0.6092 GB, free: 240 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.7093, allocations: 1.226 MB / 0.6104 GB, free: 14.96 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.7094, allocations: 35.98 kB / 0.6104 GB, free: 14.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004675/0.7099, allocations: 83.91 kB / 0.6105 GB, free: 14.85 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002953/0.7128, allocations: 0.9452 MB / 0.6114 GB, free: 13.9 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003036/0.7159, allocations: 1.18 MB / 0.6126 GB, free: 12.63 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.983e-05/0.716, allocations: 11.83 kB / 0.6126 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.7161, allocations: 4 kB / 0.6126 GB, free: 12.62 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002202/0.7163, allocations: 69.97 kB / 0.6127 GB, free: 12.55 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01153/0.7279, allocations: 4.867 MB / 0.6174 GB, free: 7.465 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.7291, allocations: 436.6 kB / 0.6178 GB, free: 7.008 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008529/0.73, allocations: 328 kB / 0.6181 GB, free: 6.68 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.624e-05/0.73, allocations: 8.5 kB / 0.6181 GB, free: 6.672 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.744e-05/0.7301, allocations: 39.06 kB / 0.6182 GB, free: 6.625 MB / 458.7 MB Notification: Performance of pre-optimization done (n=64): time 4.058e-06/0.7301, allocations: 3.938 kB / 0.6182 GB, free: 6.621 MB / 458.7 MB Notification: Performance of matching and sorting (n=71): time 0.006185/0.7363, allocations: 2.057 MB / 0.6202 GB, free: 4.484 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.7364, allocations: 107.5 kB / 0.6203 GB, free: 4.355 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.7376, allocations: 0.5313 MB / 0.6208 GB, free: 3.816 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.7377, allocations: 25.7 kB / 0.6208 GB, free: 3.785 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003534/0.7381, allocations: 476.9 kB / 0.6213 GB, free: 3.312 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003161/0.7384, allocations: 248.3 kB / 0.6215 GB, free: 3.066 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.781e-05/0.7385, allocations: 0 / 0.6215 GB, free: 3.066 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001933/0.7387, allocations: 350.8 kB / 0.6219 GB, free: 2.715 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000771/0.7395, allocations: 261.9 kB / 0.6221 GB, free: 2.457 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009911/0.7405, allocations: 0.5128 MB / 0.6226 GB, free: 1.828 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.7415, allocations: 362.9 kB / 0.623 GB, free: 1.473 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.7415, allocations: 0 / 0.623 GB, free: 1.473 MB / 458.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.004429/0.746, allocations: 1.109 MB / 0.624 GB, free: 360 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001493/0.7475, allocations: 3.212 MB / 0.6272 GB, free: 12.89 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.7476, allocations: 8 kB / 0.6272 GB, free: 12.88 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002537/0.7501, allocations: 376.5 kB / 0.6275 GB, free: 12.51 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.7515, allocations: 167.7 kB / 0.6277 GB, free: 12.35 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002668/0.7542, allocations: 1.201 MB / 0.6289 GB, free: 11.12 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008147/0.755, allocations: 19.89 kB / 0.6289 GB, free: 11.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.7552, allocations: 43.98 kB / 0.6289 GB, free: 11.05 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.7552, allocations: 8 kB / 0.629 GB, free: 11.05 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004056/0.7592, allocations: 1.01 MB / 0.6299 GB, free: 10.03 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.7593, allocations: 11.94 kB / 0.6299 GB, free: 10.02 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002436/0.7618, allocations: 381.4 kB / 0.6303 GB, free: 9.645 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/0.7633, allocations: 175.8 kB / 0.6305 GB, free: 9.473 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.775, allocations: 4.126 MB / 0.6345 GB, free: 5.227 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007743/0.7758, allocations: 11.98 kB / 0.6345 GB, free: 5.215 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001111/0.776, allocations: 40 kB / 0.6346 GB, free: 5.176 MB / 474.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: 0.0 = 0.0 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PI_vDC.addFF.y:VARIABLE() "Connector of Real output signal" type: Real $DER.zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_vDC.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {7 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003528/0.7763, allocations: 67.84 kB / 0.6346 GB, free: 5.105 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002978/0.7766, allocations: 90.89 kB / 0.6347 GB, free: 5.016 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002336/0.779, allocations: 0.7918 MB / 0.6355 GB, free: 4.191 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.029e-05/0.779, allocations: 8 kB / 0.6355 GB, free: 4.184 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.7791, allocations: 0 / 0.6355 GB, free: 4.184 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.7791, allocations: 3.984 kB / 0.6355 GB, free: 4.18 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.7838, allocations: 1.63 MB / 0.6371 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.7838, allocations: 0 / 0.6371 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001814/0.7857, allocations: 159.8 kB / 0.6372 GB, free: 2.348 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.598e-05/0.7857, allocations: 4 kB / 0.6372 GB, free: 2.344 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.452e-05/0.7858, allocations: 8 kB / 0.6372 GB, free: 2.336 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.297e-06/0.7858, allocations: 4 kB / 0.6373 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.7858, allocations: 0 / 0.6373 GB, free: 2.332 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002835/0.7887, allocations: 1.216 MB / 0.6384 GB, free: 1.078 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005805/0.7893, allocations: 211.9 kB / 0.6386 GB, free: 0.8516 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/0.7895, allocations: 8 kB / 0.6387 GB, free: 0.8438 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/0.7903, allocations: 7.984 kB / 0.6387 GB, free: 0.8359 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.7904, allocations: 44.44 kB / 0.6387 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.957e-05/0.7905, allocations: 20 kB / 0.6387 GB, free: 0.7734 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0008338/0.7913, allocations: 403.1 kB / 0.6391 GB, free: 392 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.001977/0.7933, allocations: 371.9 kB / 0.6395 GB, free: 20 kB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.rotor.phi,PMgen.rotor.w,PMgen.generator.i_s[1],PMgen.generator.i_s[2],capSym.capSym.cap1.v,capSym.capSym.cap2.v,zLoadDC.i,PI_vDC.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 76 * 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.1694/0.9627, allocations: 180.8 kB / 0.6396 GB, free: 185.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005985/0.9687, allocations: 1.42 MB / 0.641 GB, free: 185 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.9688, allocations: 3.781 kB / 0.641 GB, free: 185 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001021/0.9698, allocations: 328.5 kB / 0.6413 GB, free: 185 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002113/0.9719, allocations: 167.6 kB / 0.6415 GB, free: 185 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007706/0.9797, allocations: 1.992 MB / 0.6434 GB, free: 184.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/0.9817, allocations: 1.283 MB / 0.6447 GB, free: 183.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.363e-06/0.9817, allocations: 0 / 0.6447 GB, free: 183.8 MB / 474.7 MB Notification: Performance of Templates: time 0.02871/1.01, allocations: 15.41 MB / 0.6597 GB, free: 183.2 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)