Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration") translateModel(PowerSystems.Examples.AC3ph.Generation.LocalGeneration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001527/0.001528, allocations: 190.9 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.219/1.219, allocations: 194.2 MB / 202.8 MB, free: 8.75 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001706/0.001706, allocations: 112 kB / 247.7 MB, free: 6.367 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1599/0.16, allocations: 37.91 MB / 330.5 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.963e-06/6.993e-06, allocations: 0 / 389.8 MB, free: 78.14 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 53.23 MB / 443 MB, free: 24.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.313/0.4142, allocations: 115.5 MB / 0.5454 GB, free: 8.355 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002661/0.4145, allocations: 94.38 kB / 0.5455 GB, free: 8.309 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.09281/0.5073, allocations: 34.28 MB / 0.579 GB, free: 11.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000102/0.5075, allocations: 24 kB / 0.579 GB, free: 11.83 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: 267 * Number of variables: 267 Notification: Performance of Generate backend data structure: time 0.00355/0.5111, allocations: 1.315 MB / 0.5803 GB, free: 10.54 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.5111, allocations: 8.031 kB / 0.5803 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007893/0.5119, allocations: 162.3 kB / 0.5805 GB, free: 10.37 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003139/0.5151, allocations: 1.191 MB / 0.5816 GB, free: 9.402 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.616e-05/0.5151, allocations: 36 kB / 0.5817 GB, free: 9.367 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003564/0.5155, allocations: 87.88 kB / 0.5818 GB, free: 9.281 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001743/0.5172, allocations: 0.9327 MB / 0.5827 GB, free: 8.695 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.5191, allocations: 1.152 MB / 0.5838 GB, free: 7.789 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.249e-05/0.5191, allocations: 3.906 kB / 0.5838 GB, free: 7.785 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.477e-05/0.5192, allocations: 4 kB / 0.5838 GB, free: 7.781 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001151/0.5194, allocations: 68.28 kB / 0.5839 GB, free: 7.723 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007307/0.5267, allocations: 4.653 MB / 0.5884 GB, free: 3.613 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.5274, allocations: 424.6 kB / 0.5888 GB, free: 3.172 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005261/0.5279, allocations: 321.3 kB / 0.5891 GB, free: 2.852 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.949e-05/0.528, allocations: 16.44 kB / 0.5891 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.528, allocations: 43.06 kB / 0.5892 GB, free: 2.785 MB / 394.7 MB Notification: Performance of pre-optimization done (n=63): time 3.236e-06/0.528, allocations: 0 / 0.5892 GB, free: 2.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=71): time 0.005025/0.5331, allocations: 2.464 MB / 0.5916 GB, free: 204 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/0.5332, allocations: 115.5 kB / 0.5917 GB, free: 64 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00079/0.534, allocations: 0.5038 MB / 0.5922 GB, free: 15.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.534, allocations: 29.7 kB / 0.5922 GB, free: 15.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002838/0.5343, allocations: 458.4 kB / 0.5927 GB, free: 15.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.5345, allocations: 236.4 kB / 0.5929 GB, free: 14.83 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.733e-05/0.5346, allocations: 0 / 0.5929 GB, free: 14.83 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.5347, allocations: 398.6 kB / 0.5933 GB, free: 14.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004257/0.5352, allocations: 261.9 kB / 0.5935 GB, free: 14.17 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.5358, allocations: 0.4955 MB / 0.594 GB, free: 13.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005979/0.5364, allocations: 362.9 kB / 0.5943 GB, free: 13.21 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.226e-06/0.5364, allocations: 4 kB / 0.5943 GB, free: 13.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002602/0.539, allocations: 1.128 MB / 0.5954 GB, free: 12.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001107/0.5401, allocations: 3.045 MB / 0.5984 GB, free: 8.785 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.5401, allocations: 8 kB / 0.5984 GB, free: 8.777 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.5416, allocations: 384.5 kB / 0.5988 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006984/0.5423, allocations: 167.7 kB / 0.599 GB, free: 8.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.5441, allocations: 1.209 MB / 0.6001 GB, free: 6.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006958/0.5448, allocations: 19.89 kB / 0.6002 GB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.203e-05/0.5449, allocations: 39.98 kB / 0.6002 GB, free: 6.938 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.888e-06/0.5449, allocations: 4 kB / 0.6002 GB, free: 6.934 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002238/0.5471, allocations: 1.006 MB / 0.6012 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.5472, allocations: 8 kB / 0.6012 GB, free: 5.918 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001346/0.5485, allocations: 377.2 kB / 0.6015 GB, free: 5.547 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006656/0.5492, allocations: 159.7 kB / 0.6017 GB, free: 5.391 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006519/0.5557, allocations: 4.146 MB / 0.6057 GB, free: 1.117 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007005/0.5564, allocations: 23.84 kB / 0.6058 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.5565, allocations: 39.92 kB / 0.6058 GB, free: 1.055 MB / 410.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: PMgen.term.i[1]:VARIABLE(flow=true unit = "A" nominal = 1.0 ) "current vector" type: Real [2] PMgen.generator.psi_s[1]:DUMMY_STATE(unit = "Wb" protected = true ) "magnetic flux stator dq" type: Real [2] zLoadDC.i:VARIABLE(unit = "A" nominal = 1.0 ) type: Real PMgen.inverter.vDC1:VARIABLE(unit = "V" nominal = 1000.0 protected = true ) type: Real PMgen.generator.i_dq[2]:VARIABLE(unit = "A" nominal = 1.0 protected = true ) "current demand {i_d, i_q} pu" type: Real [2] $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: 35 * 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 (80): * Single equations (assignments): 79 * 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.000317/0.5569, allocations: 136 kB / 0.6059 GB, free: 0.918 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002449/0.5571, allocations: 82.97 kB / 0.606 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001354/0.5585, allocations: 0.7875 MB / 0.6068 GB, free: 20 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.099e-05/0.5585, allocations: 8 kB / 0.6068 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.5585, allocations: 4 kB / 0.6068 GB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.538e-06/0.5585, allocations: 3.984 kB / 0.6068 GB, free: 4 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002854/0.5614, allocations: 1.611 MB / 0.6084 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.5614, allocations: 0 / 0.6084 GB, free: 14.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/0.5624, allocations: 167.8 kB / 0.6085 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.464e-05/0.5624, allocations: 4 kB / 0.6085 GB, free: 14.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.934e-05/0.5625, allocations: 12 kB / 0.6085 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.5625, allocations: 4 kB / 0.6086 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5625, allocations: 0 / 0.6086 GB, free: 14.15 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001565/0.5641, allocations: 1.215 MB / 0.6097 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003314/0.5644, allocations: 208 kB / 0.6099 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001489/0.5646, allocations: 8 kB / 0.6099 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/0.5651, allocations: 11.84 kB / 0.61 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.144e-05/0.5652, allocations: 40.59 kB / 0.61 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.614e-05/0.5652, allocations: 19.98 kB / 0.61 GB, free: 12.59 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005113/0.5657, allocations: 391.2 kB / 0.6104 GB, free: 12.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001549/0.5673, allocations: 368 kB / 0.6107 GB, free: 11.85 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PMgen.generator.phi_el,PMgen.generator.w_el,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.0003434/0.5677, allocations: 182.4 kB / 0.6109 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003171/0.5708, allocations: 1.445 MB / 0.6123 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.5709, allocations: 0.5 kB / 0.6123 GB, free: 10.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004678/0.5713, allocations: 326.3 kB / 0.6126 GB, free: 9.891 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009577/0.5723, allocations: 159 kB / 0.6128 GB, free: 9.738 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.5764, allocations: 1.924 MB / 0.6147 GB, free: 7.766 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/0.5776, allocations: 1.25 MB / 0.6159 GB, free: 6.484 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5776, allocations: 0 / 0.6159 GB, free: 6.484 MB / 426.7 MB Notification: Performance of Templates: time 0.02941/0.607, allocations: 16.01 MB / 0.6315 GB, free: 6.496 MB / 442.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.LocalGeneration.pipe 2>&1)