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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009253/0.0009255, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.575/1.575, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 86.77 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1696/0.1696, allocations: 37.99 MB / 348 MB, free: 7.777 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.303e-05/1.307e-05, allocations: 0 / 410.6 MB, free: 46.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1095, allocations: 56.33 MB / 466.9 MB, free: 6.57 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4012/0.5107, allocations: 112.1 MB / 0.5654 GB, free: 14.81 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/0.5111, allocations: 91.94 kB / 0.5655 GB, free: 14.72 MB / 411.1 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 - DAE generated: time 0.08241/0.5935, allocations: 28.01 MB / 0.5929 GB, free: 2.441 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5936, allocations: 4 kB / 0.5929 GB, free: 2.438 MB / 427.1 MB Notification: Performance of Transformations before backend: time 5.854e-05/0.5937, allocations: 20 kB / 0.5929 GB, free: 2.418 MB / 427.1 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.004588/0.5983, allocations: 1.633 MB / 0.5945 GB, free: 0.7031 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.921e-05/0.5983, allocations: 8.031 kB / 0.5945 GB, free: 0.6953 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001029/0.5994, allocations: 158.6 kB / 0.5946 GB, free: 0.5391 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005072/0.6045, allocations: 1.639 MB / 0.5962 GB, free: 14.86 MB / 443.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006343/0.6051, allocations: 494.3 kB / 0.5967 GB, free: 14.3 MB / 443.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002316/0.6054, allocations: 55.98 kB / 0.5968 GB, free: 14.25 MB / 443.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002609/0.608, allocations: 1.632 MB / 0.5984 GB, free: 12.61 MB / 443.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002552/0.6106, allocations: 1.669 MB / 0.6 GB, free: 10.9 MB / 443.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.829e-05/0.6106, allocations: 0 / 0.6 GB, free: 10.9 MB / 443.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001209/0.6107, allocations: 0 / 0.6 GB, free: 10.9 MB / 443.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/0.6109, allocations: 81.95 kB / 0.6001 GB, free: 10.82 MB / 443.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009681/0.6206, allocations: 5.635 MB / 0.6056 GB, free: 5.086 MB / 443.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.6227, allocations: 1.276 MB / 0.6068 GB, free: 3.793 MB / 443.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.624, allocations: 0.9583 MB / 0.6078 GB, free: 2.832 MB / 443.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001004/0.6241, allocations: 9.312 kB / 0.6078 GB, free: 2.824 MB / 443.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001594/0.6257, allocations: 1.164 MB / 0.6089 GB, free: 1.641 MB / 443.1 MB Notification: Performance of pre-optimization done (n=125): time 3.267e-06/0.6257, allocations: 3.938 kB / 0.6089 GB, free: 1.637 MB / 443.1 MB Notification: Performance of matching and sorting (n=126): time 0.007515/0.6333, allocations: 4.196 MB / 0.613 GB, free: 13.36 MB / 459.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.6334, allocations: 106.4 kB / 0.6131 GB, free: 13.24 MB / 459.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.6338, allocations: 357.2 kB / 0.6134 GB, free: 12.89 MB / 459.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001121/0.6339, allocations: 41.69 kB / 0.6135 GB, free: 12.84 MB / 459.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.6343, allocations: 360.6 kB / 0.6138 GB, free: 12.48 MB / 459.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.6346, allocations: 410 kB / 0.6142 GB, free: 12.07 MB / 459.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.242e-05/0.6347, allocations: 4 kB / 0.6142 GB, free: 12.07 MB / 459.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.6349, allocations: 394.7 kB / 0.6146 GB, free: 11.68 MB / 459.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001225/0.6362, allocations: 0.9007 MB / 0.6155 GB, free: 10.78 MB / 459.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.6374, allocations: 1.038 MB / 0.6165 GB, free: 9.699 MB / 459.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001708/0.6391, allocations: 1.029 MB / 0.6175 GB, free: 8.676 MB / 459.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.6392, allocations: 0 / 0.6175 GB, free: 8.676 MB / 459.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.009502/0.6487, allocations: 3.843 MB / 0.6213 GB, free: 4.797 MB / 459.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001198/0.6488, allocations: 65.62 kB / 0.6213 GB, free: 4.727 MB / 459.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.98e-05/0.6489, allocations: 4 kB / 0.6213 GB, free: 4.723 MB / 459.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004552/0.6534, allocations: 1.672 MB / 0.623 GB, free: 3.043 MB / 459.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009973/0.6545, allocations: 167.7 kB / 0.6231 GB, free: 2.879 MB / 459.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01763/0.6721, allocations: 10.42 MB / 0.6333 GB, free: 8.219 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.6738, allocations: 187.8 kB / 0.6335 GB, free: 8.035 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.674, allocations: 63.94 kB / 0.6335 GB, free: 7.973 MB / 475.1 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 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004211/0.6744, allocations: 150 kB / 0.6337 GB, free: 7.82 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002414/0.6747, allocations: 71.16 kB / 0.6337 GB, free: 7.75 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003588/0.6782, allocations: 2.124 MB / 0.6358 GB, free: 5.594 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.29e-05/0.6783, allocations: 39.95 kB / 0.6359 GB, free: 5.555 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.6784, allocations: 4 kB / 0.6359 GB, free: 5.551 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.361e-05/0.6784, allocations: 7.922 kB / 0.6359 GB, free: 5.543 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005997/0.6844, allocations: 3.783 MB / 0.6396 GB, free: 1.668 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.6844, allocations: 0 / 0.6396 GB, free: 1.668 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2494/0.9339, allocations: 2.817 MB / 0.6423 GB, free: 137.5 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.9341, allocations: 40.33 kB / 0.6423 GB, free: 137.5 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003155/0.9344, allocations: 22.88 kB / 0.6424 GB, free: 137.5 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009328/0.9353, allocations: 1.421 MB / 0.6438 GB, free: 136.3 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.9353, allocations: 4.938 kB / 0.6438 GB, free: 136.3 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005425/0.9408, allocations: 3.564 MB / 0.6472 GB, free: 135.8 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006494/0.9414, allocations: 345.9 kB / 0.6476 GB, free: 135.7 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.9417, allocations: 69.2 kB / 0.6476 GB, free: 135.7 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/0.9432, allocations: 233.1 kB / 0.6479 GB, free: 135.7 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004506/0.9437, allocations: 193.4 kB / 0.648 GB, free: 135.7 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.9438, allocations: 42.44 kB / 0.6481 GB, free: 135.7 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.0003416/0.9442, allocations: 272 kB / 0.6483 GB, free: 135.6 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9442, allocations: 0.9844 kB / 0.6483 GB, free: 135.6 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.001432/0.9456, allocations: 352 kB / 0.6487 GB, free: 135.6 MB / 475.1 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.0004508/0.9461, allocations: 219.9 kB / 0.6489 GB, free: 135.5 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004355/0.9504, allocations: 2.686 MB / 0.6515 GB, free: 135.2 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9504, allocations: 3.875 kB / 0.6515 GB, free: 135.2 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005532/0.956, allocations: 2.09 MB / 0.6536 GB, free: 135.1 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008583/0.9569, allocations: 111.5 kB / 0.6537 GB, free: 135.1 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005795/0.9627, allocations: 2.896 MB / 0.6565 GB, free: 134.5 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008074/0.9635, allocations: 1.17 MB / 0.6576 GB, free: 133.8 MB / 475.1 MB Notification: Performance of simCode: alias equations: time 0.001114/0.9646, allocations: 308.5 kB / 0.6579 GB, free: 133.8 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003937/0.965, allocations: 65.5 kB / 0.658 GB, free: 133.8 MB / 475.1 MB Notification: Performance of SimCode: time 7.92e-07/0.965, allocations: 0 / 0.658 GB, free: 133.8 MB / 475.1 MB Notification: Performance of Templates: time 0.02924/0.9943, allocations: 21.23 MB / 0.6787 GB, free: 132.6 MB / 475.1 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)