Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") [: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.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 183.6 kB / 8.135 MB, free: 2.219 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.2 MB / 213.7 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000903/0.0009032, allocations: 82.8 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.163/0.163, allocations: 37.98 MB / 347.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.643e-06/6.923e-06, allocations: 4 kB / 410 MB, free: 46.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09766/0.09768, allocations: 56.32 MB / 466.3 MB, free: 6.457 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2994/0.3971, allocations: 112.1 MB / 0.5649 GB, free: 14.46 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.3974, allocations: 95.94 kB / 0.5649 GB, free: 14.37 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:17:7-17:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/Control/Modulation.mo:20:7-20:46:writable] Error: Variable inverter.modulator.m not found in scope PowerSystems.AC3ph.Inverters.Inverter$inverter.Modulator.$for loop scope$. Notification: Performance of FrontEnd: time 0.08133/0.4787, allocations: 27.69 MB / 0.592 GB, free: 2.406 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.629e-05/0.4788, allocations: 23.94 kB / 0.592 GB, free: 2.383 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004014/0.4829, allocations: 1.641 MB / 0.5936 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.4829, allocations: 12.03 kB / 0.5936 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007687/0.4837, allocations: 162.6 kB / 0.5938 GB, free: 500 kB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004962/0.4887, allocations: 1.649 MB / 0.5954 GB, free: 14.8 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006772/0.4894, allocations: 0.4905 MB / 0.5959 GB, free: 14.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002438/0.4896, allocations: 59.98 kB / 0.5959 GB, free: 14.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00275/0.4924, allocations: 1.679 MB / 0.5976 GB, free: 12.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.4949, allocations: 1.697 MB / 0.5992 GB, free: 10.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.99e-05/0.4949, allocations: 7.938 kB / 0.5992 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001369/0.4951, allocations: 4 kB / 0.5992 GB, free: 10.73 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.4952, allocations: 85.86 kB / 0.5993 GB, free: 10.65 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01009/0.5053, allocations: 5.695 MB / 0.6049 GB, free: 4.855 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002096/0.5075, allocations: 1.204 MB / 0.606 GB, free: 3.641 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/0.5088, allocations: 0.9927 MB / 0.607 GB, free: 2.645 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001013/0.509, allocations: 13 kB / 0.607 GB, free: 2.629 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001594/0.5106, allocations: 1.151 MB / 0.6082 GB, free: 1.457 MB / 442.7 MB Notification: Performance of pre-optimization done (n=125): time 3.787e-06/0.5106, allocations: 0 / 0.6082 GB, free: 1.457 MB / 442.7 MB Notification: Performance of matching and sorting (n=126): time 0.007819/0.5184, allocations: 4.2 MB / 0.6123 GB, free: 13.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.897e-05/0.5185, allocations: 106.1 kB / 0.6124 GB, free: 13.05 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004586/0.519, allocations: 361.1 kB / 0.6127 GB, free: 12.7 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.5191, allocations: 37.7 kB / 0.6127 GB, free: 12.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002529/0.5194, allocations: 312.5 kB / 0.613 GB, free: 12.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003551/0.5198, allocations: 406.1 kB / 0.6134 GB, free: 11.94 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.678e-05/0.5199, allocations: 0 / 0.6134 GB, free: 11.94 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.52, allocations: 394.7 kB / 0.6138 GB, free: 11.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.5213, allocations: 0.9358 MB / 0.6147 GB, free: 10.61 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.5227, allocations: 1.072 MB / 0.6158 GB, free: 9.496 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001825/0.5245, allocations: 1.044 MB / 0.6168 GB, free: 8.453 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5245, allocations: 0 / 0.6168 GB, free: 8.453 MB / 458.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01088/0.5354, allocations: 4.066 MB / 0.6208 GB, free: 4.352 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.5355, allocations: 5.406 kB / 0.6208 GB, free: 4.348 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.5355, allocations: 8.156 kB / 0.6208 GB, free: 4.34 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006897/0.5424, allocations: 1.746 MB / 0.6225 GB, free: 2.582 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.5434, allocations: 159.7 kB / 0.6226 GB, free: 2.426 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01768/0.5611, allocations: 9.977 MB / 0.6324 GB, free: 8.215 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001622/0.5628, allocations: 180 kB / 0.6325 GB, free: 8.039 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.563, allocations: 59.95 kB / 0.6326 GB, free: 7.98 MB / 474.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: 28 ($whenCondition3,$whenCondition2,$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.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 4 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004047/0.5634, allocations: 148.9 kB / 0.6327 GB, free: 7.832 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000217/0.5637, allocations: 79.05 kB / 0.6328 GB, free: 7.754 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003729/0.5674, allocations: 2.148 MB / 0.6349 GB, free: 5.57 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.902e-05/0.5675, allocations: 31.92 kB / 0.6349 GB, free: 5.539 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.268e-05/0.5675, allocations: 7.984 kB / 0.6349 GB, free: 5.531 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5676, allocations: 3.984 kB / 0.6349 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006272/0.5738, allocations: 3.832 MB / 0.6387 GB, free: 1.605 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/0.5739, allocations: 4.25 kB / 0.6387 GB, free: 1.602 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1512/0.7251, allocations: 3.14 MB / 0.6418 GB, free: 191.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001443/0.7253, allocations: 42.48 kB / 0.6418 GB, free: 191.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003437/0.7257, allocations: 26 kB / 0.6418 GB, free: 191.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008554/0.7265, allocations: 1.402 MB / 0.6432 GB, free: 190.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.7265, allocations: 3.688 kB / 0.6432 GB, free: 190.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005107/0.7317, allocations: 3.651 MB / 0.6468 GB, free: 190.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00065/0.7323, allocations: 346.2 kB / 0.6471 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002853/0.7326, allocations: 74.09 kB / 0.6472 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001424/0.7341, allocations: 239.1 kB / 0.6474 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003441/0.7344, allocations: 147.5 kB / 0.6475 GB, free: 190 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.7346, allocations: 44.95 kB / 0.6476 GB, free: 190 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0002886/0.7348, allocations: 267.8 kB / 0.6478 GB, free: 189.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001289/0.7361, allocations: 337.2 kB / 0.6482 GB, free: 189.9 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 91 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004615/0.7366, allocations: 218.8 kB / 0.6484 GB, free: 189.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003761/0.7404, allocations: 2.526 MB / 0.6508 GB, free: 189.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.808e-06/0.7404, allocations: 0 / 0.6508 GB, free: 189.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004994/0.7454, allocations: 2.255 MB / 0.653 GB, free: 189.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008457/0.7463, allocations: 102.8 kB / 0.6531 GB, free: 189.5 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006002/0.7523, allocations: 2.968 MB / 0.656 GB, free: 188.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001055/0.7534, allocations: 1.233 MB / 0.6572 GB, free: 188.1 MB / 474.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7534, allocations: 0 / 0.6572 GB, free: 188.1 MB / 474.7 MB Notification: Performance of Templates: time 0.03284/0.7862, allocations: 22.8 MB / 0.6795 GB, free: 184.8 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)