Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter",fmuType="me",version="2.0",platforms={"static"}) [: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.001619/0.001619, allocations: 192.2 kB / 8.138 MB, free: 2.066 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.052/1.052, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001659/0.001659, allocations: 119.5 kB / 247.7 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1567/0.1567, allocations: 37.92 MB / 330.5 MB, free: 6.914 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1726/0.3294, allocations: 59.34 MB / 389.9 MB, free: 78.03 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06674/0.3962, allocations: 53.23 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2365/0.6328, allocations: 96.36 MB / 0.5268 GB, free: 9.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001934/0.633, allocations: 84.8 kB / 0.5269 GB, free: 9.059 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.03598/0.669, allocations: 14.9 MB / 0.5415 GB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.669, allocations: 12 kB / 0.5415 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002101/0.6693, allocations: 86.95 kB / 0.5416 GB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003025/0.6723, allocations: 1.188 MB / 0.5427 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.6724, allocations: 92.45 kB / 0.5428 GB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.6725, allocations: 40 kB / 0.5429 GB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008716/0.6734, allocations: 0.5238 MB / 0.5434 GB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.6745, allocations: 0.7447 MB / 0.5441 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.688e-05/0.6745, allocations: 0 / 0.5441 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.814e-05/0.6746, allocations: 3.688 kB / 0.5441 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.6746, allocations: 19.98 kB / 0.5441 GB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003506/0.6781, allocations: 2.616 MB / 0.5467 GB, free: 9.938 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000497/0.6786, allocations: 391.2 kB / 0.547 GB, free: 9.648 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.679, allocations: 244.5 kB / 0.5473 GB, free: 9.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.679, allocations: 7.766 kB / 0.5473 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003964/0.6794, allocations: 298.2 kB / 0.5476 GB, free: 9.234 MB / 362.7 MB Notification: Performance of pre-optimization done (n=41): time 2.324e-06/0.6794, allocations: 0 / 0.5476 GB, free: 9.234 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.002042/0.6815, allocations: 1.302 MB / 0.5488 GB, free: 8.039 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.6816, allocations: 114.3 kB / 0.5489 GB, free: 7.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004192/0.682, allocations: 376.2 kB / 0.5493 GB, free: 7.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.682, allocations: 31.27 kB / 0.5493 GB, free: 7.574 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.6823, allocations: 312 kB / 0.5496 GB, free: 7.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.6824, allocations: 137.5 kB / 0.5498 GB, free: 7.176 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.342e-05/0.6824, allocations: 0 / 0.5498 GB, free: 7.176 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.6826, allocations: 362 kB / 0.5501 GB, free: 6.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002908/0.6829, allocations: 201.5 kB / 0.5503 GB, free: 6.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003841/0.6833, allocations: 364 kB / 0.5506 GB, free: 6.363 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003459/0.6836, allocations: 249.4 kB / 0.5509 GB, free: 6.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.6836, allocations: 0 / 0.5509 GB, free: 6.195 MB / 362.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001388/0.685, allocations: 0.745 MB / 0.5516 GB, free: 5.562 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.6851, allocations: 4 kB / 0.5516 GB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.6851, allocations: 4 kB / 0.5516 GB, free: 5.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.6853, allocations: 69.55 kB / 0.5517 GB, free: 5.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.6857, allocations: 107.8 kB / 0.5518 GB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.6877, allocations: 2.708 MB / 0.5544 GB, free: 2.551 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003382/0.688, allocations: 24.14 kB / 0.5545 GB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.29e-05/0.6881, allocations: 43.59 kB / 0.5545 GB, free: 2.492 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001418/0.6883, allocations: 136.5 kB / 0.5546 GB, free: 2.355 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.969e-05/0.6884, allocations: 51.34 kB / 0.5547 GB, free: 2.305 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000792/0.6892, allocations: 0.5503 MB / 0.5552 GB, free: 1.848 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.6892, allocations: 8 kB / 0.5552 GB, free: 1.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.6892, allocations: 3.906 kB / 0.5552 GB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/0.6892, allocations: 7.922 kB / 0.5552 GB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001593/0.6908, allocations: 1.285 MB / 0.5565 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.6908, allocations: 0 / 0.5565 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003371/0.6912, allocations: 59.91 kB / 0.5565 GB, free: 0.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001717/0.6914, allocations: 61.42 kB / 0.5566 GB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.8e-05/0.6914, allocations: 15.42 kB / 0.5566 GB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001931/0.6933, allocations: 2.706 MB / 0.5593 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.6934, allocations: 4.031 kB / 0.5593 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001029/0.6944, allocations: 0.9221 MB / 0.5602 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001437/0.6958, allocations: 1.54 MB / 0.5617 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.6961, allocations: 163.5 kB / 0.5618 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001226/0.6962, allocations: 23.3 kB / 0.5618 GB, free: 11.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004328/0.6967, allocations: 43.95 kB / 0.5619 GB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.593e-05/0.6968, allocations: 31.36 kB / 0.5619 GB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.749e-05/0.6968, allocations: 19.73 kB / 0.5619 GB, free: 11.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003717/0.6972, allocations: 277.4 kB / 0.5622 GB, free: 11.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001389/0.6986, allocations: 132 kB / 0.5623 GB, free: 11.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002404/0.6988, allocations: 134.7 kB / 0.5625 GB, free: 10.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001087/0.6999, allocations: 0.7305 MB / 0.5632 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.6999, allocations: 0 / 0.5632 GB, free: 10.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006199/0.7006, allocations: 430.5 kB / 0.5636 GB, free: 9.914 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006891/0.7013, allocations: 110 kB / 0.5637 GB, free: 9.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.7034, allocations: 1.106 MB / 0.5648 GB, free: 8.801 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007724/0.7042, allocations: 1.026 MB / 0.5658 GB, free: 7.773 MB / 378.7 MB Notification: Performance of SimCode: time 5.71e-07/0.7042, allocations: 0 / 0.5658 GB, free: 7.773 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Inverter.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1)