Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.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.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad",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.001198/0.001198, allocations: 180.6 kB / 8.134 MB, free: 2.211 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.064/1.064, allocations: 194.2 MB / 202.8 MB, free: 8.707 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.001658/0.001658, allocations: 119.6 kB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1583/0.1583, allocations: 37.92 MB / 330.5 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1816/0.34, allocations: 59.34 MB / 389.9 MB, free: 78.02 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07255/0.4126, allocations: 53.23 MB / 443.1 MB, free: 24.87 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2526/0.6652, allocations: 96.25 MB / 0.5267 GB, free: 8.875 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.6655, allocations: 86.2 kB / 0.5268 GB, free: 8.863 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.04435/0.7099, allocations: 16.41 MB / 0.5428 GB, free: 13.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.7099, allocations: 11.94 kB / 0.5429 GB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.7103, allocations: 87.14 kB / 0.5429 GB, free: 13.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.7143, allocations: 1.237 MB / 0.5441 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005631/0.7148, allocations: 331.5 kB / 0.5445 GB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/0.7151, allocations: 39.12 kB / 0.5445 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001608/0.7167, allocations: 0.8269 MB / 0.5453 GB, free: 11.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.7182, allocations: 0.8501 MB / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.7183, allocations: 0 / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-05/0.7183, allocations: 4 kB / 0.5461 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.7184, allocations: 12 kB / 0.5461 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005534/0.7239, allocations: 3.187 MB / 0.5493 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009485/0.7249, allocations: 0.532 MB / 0.5498 GB, free: 7.414 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006239/0.7255, allocations: 399.3 kB / 0.5502 GB, free: 7.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.58e-05/0.7256, allocations: 8.438 kB / 0.5502 GB, free: 7.148 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006805/0.7263, allocations: 480.5 kB / 0.5506 GB, free: 6.785 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.986e-06/0.7263, allocations: 0 / 0.5506 GB, free: 6.785 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001242/0.7275, allocations: 0.6237 MB / 0.5512 GB, free: 6.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.359e-05/0.7276, allocations: 139.6 kB / 0.5514 GB, free: 6.172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.728, allocations: 289.9 kB / 0.5516 GB, free: 5.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.065e-05/0.7281, allocations: 33.14 kB / 0.5517 GB, free: 5.906 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.7283, allocations: 252.1 kB / 0.5519 GB, free: 5.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001736/0.7285, allocations: 157.4 kB / 0.5521 GB, free: 5.539 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.7285, allocations: 3.188 kB / 0.5521 GB, free: 5.539 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.7287, allocations: 357.9 kB / 0.5524 GB, free: 5.199 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005204/0.7292, allocations: 338.9 kB / 0.5527 GB, free: 4.988 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005536/0.7298, allocations: 438.6 kB / 0.5532 GB, free: 4.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004589/0.7303, allocations: 304 kB / 0.5534 GB, free: 4.461 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.7303, allocations: 0 / 0.5534 GB, free: 4.461 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001199/0.7315, allocations: 0.7751 MB / 0.5542 GB, free: 3.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.7315, allocations: 8 kB / 0.5542 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.7315, allocations: 384 / 0.5542 GB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.173e-05/0.7316, allocations: 12 kB / 0.5542 GB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006738/0.7383, allocations: 1.779 MB / 0.556 GB, free: 2.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005935/0.7443, allocations: 4.102 MB / 0.56 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007851/0.7451, allocations: 135.5 kB / 0.5601 GB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.7452, allocations: 34.8 kB / 0.5601 GB, free: 13.91 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,system.initime,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.sigdel_t,inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,inverter.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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000223/0.7454, allocations: 130.5 kB / 0.5603 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.7455, allocations: 43.44 kB / 0.5603 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.7467, allocations: 0.673 MB / 0.561 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.7467, allocations: 4 kB / 0.561 GB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.7467, allocations: 3.984 kB / 0.561 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.7467, allocations: 4 kB / 0.561 GB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.7492, allocations: 1.772 MB / 0.5627 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7493, allocations: 0 / 0.5627 GB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008094/0.7574, allocations: 2.057 MB / 0.5647 GB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.27e-05/0.7574, allocations: 4 kB / 0.5647 GB, free: 9.742 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.952e-05/0.7575, allocations: 15.86 kB / 0.5647 GB, free: 9.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.7575, allocations: 4 kB / 0.5647 GB, free: 9.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.7575, allocations: 11.92 kB / 0.5647 GB, free: 9.715 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001759/0.7593, allocations: 1.346 MB / 0.566 GB, free: 8.68 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002506/0.7618, allocations: 2.207 MB / 0.5682 GB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.7622, allocations: 203.3 kB / 0.5684 GB, free: 6.781 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/0.7623, allocations: 25.42 kB / 0.5684 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007736/0.7631, allocations: 123.9 kB / 0.5685 GB, free: 6.645 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002267/0.7633, allocations: 73.67 kB / 0.5686 GB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.085e-05/0.7634, allocations: 25.3 kB / 0.5686 GB, free: 6.559 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002701/0.7637, allocations: 220.5 kB / 0.5688 GB, free: 6.391 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001275/0.7649, allocations: 171 kB / 0.569 GB, free: 6.227 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002839/0.7652, allocations: 134.4 kB / 0.5691 GB, free: 6.086 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009635/0.7749, allocations: 3.137 MB / 0.5722 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.7749, allocations: 0 / 0.5722 GB, free: 3.195 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003192/0.7781, allocations: 1.078 MB / 0.5733 GB, free: 2.258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007631/0.7789, allocations: 85.19 kB / 0.5733 GB, free: 2.195 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003461/0.7824, allocations: 1.291 MB / 0.5746 GB, free: 1.039 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008482/0.7832, allocations: 0.989 MB / 0.5756 GB, free: 48 kB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.7832, allocations: 4 kB / 0.5756 GB, free: 44 kB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)