Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.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: translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001351/0.001351, allocations: 187.7 kB / 8.352 MB, free: 0.707 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.446/1.446, allocations: 194.3 MB / 203.1 MB, free: 9.305 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001797/0.001797, allocations: 119 kB / 248.1 MB, free: 6.355 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1636/0.1636, allocations: 37.92 MB / 330.9 MB, free: 7.309 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.238e-05/1.229e-05, allocations: 0 / 390.4 MB, free: 78.24 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08651, allocations: 53.25 MB / 443.6 MB, free: 25.1 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4524, allocations: 107 MB / 0.5377 GB, free: 1.348 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.4527, allocations: 90.11 kB / 0.5378 GB, free: 1.305 MB / 347.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/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.0/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.08477/0.5375, allocations: 27.98 MB / 0.5652 GB, free: 9.398 MB / 379.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.5376, allocations: 0 / 0.5652 GB, free: 9.398 MB / 379.1 MB Notification: Performance of Transformations before backend: time 6.579e-05/0.5376, allocations: 31 kB / 0.5652 GB, free: 9.371 MB / 379.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.00496/0.5426, allocations: 1.63 MB / 0.5668 GB, free: 7.734 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.5427, allocations: 8.031 kB / 0.5668 GB, free: 7.727 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.5438, allocations: 166.6 kB / 0.5669 GB, free: 7.562 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005383/0.5492, allocations: 1.624 MB / 0.5685 GB, free: 6.176 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008487/0.5501, allocations: 0.4893 MB / 0.569 GB, free: 5.629 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004961/0.5506, allocations: 52 kB / 0.5691 GB, free: 5.578 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003477/0.5541, allocations: 1.634 MB / 0.5706 GB, free: 4.52 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003218/0.5574, allocations: 1.652 MB / 0.5723 GB, free: 3.297 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/0.5574, allocations: 0 / 0.5723 GB, free: 3.297 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/0.5576, allocations: 10.94 kB / 0.5723 GB, free: 3.289 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001745/0.5577, allocations: 81.58 kB / 0.5723 GB, free: 3.215 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0102/0.568, allocations: 5.658 MB / 0.5779 GB, free: 14.68 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002253/0.5703, allocations: 1.284 MB / 0.5791 GB, free: 13.82 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001346/0.5716, allocations: 0.9538 MB / 0.5801 GB, free: 13.22 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.982e-05/0.5718, allocations: 17.3 kB / 0.5801 GB, free: 13.2 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001715/0.5735, allocations: 1.151 MB / 0.5812 GB, free: 12.12 MB / 395.1 MB Notification: Performance of pre-optimization done (n=125): time 3.938e-06/0.5735, allocations: 3.938 kB / 0.5812 GB, free: 12.12 MB / 395.1 MB Notification: Performance of matching and sorting (n=126): time 0.008686/0.5822, allocations: 4.188 MB / 0.5853 GB, free: 7.852 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.5823, allocations: 102.5 kB / 0.5854 GB, free: 7.734 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005314/0.5828, allocations: 365.1 kB / 0.5857 GB, free: 7.371 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001284/0.583, allocations: 41.69 kB / 0.5858 GB, free: 7.324 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.5833, allocations: 360.6 kB / 0.5861 GB, free: 6.965 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003807/0.5837, allocations: 414 kB / 0.5865 GB, free: 6.555 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/0.5838, allocations: 4 kB / 0.5865 GB, free: 6.551 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.584, allocations: 386.8 kB / 0.5869 GB, free: 6.164 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.5852, allocations: 0.8967 MB / 0.5878 GB, free: 5.27 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.5865, allocations: 1.049 MB / 0.5888 GB, free: 4.184 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.5883, allocations: 1.033 MB / 0.5898 GB, free: 3.152 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.5884, allocations: 0 / 0.5898 GB, free: 3.152 MB / 395.1 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.009882/0.5982, allocations: 3.84 MB / 0.5935 GB, free: 15.28 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.358e-05/0.5984, allocations: 64.8 kB / 0.5936 GB, free: 15.21 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.5984, allocations: 8 kB / 0.5936 GB, free: 15.2 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004791/0.6032, allocations: 1.668 MB / 0.5952 GB, free: 13.53 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009435/0.6041, allocations: 167.7 kB / 0.5954 GB, free: 13.36 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01821/0.6224, allocations: 10.43 MB / 0.6056 GB, free: 2.695 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.624, allocations: 183.8 kB / 0.6058 GB, free: 2.516 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003567/0.6244, allocations: 63.94 kB / 0.6058 GB, free: 2.453 MB / 411.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.0005724/0.6249, allocations: 146.1 kB / 0.606 GB, free: 2.305 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003808/0.6253, allocations: 71.16 kB / 0.606 GB, free: 2.234 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004044/0.6294, allocations: 2.116 MB / 0.6081 GB, free: 88 kB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.243e-05/0.6295, allocations: 43.97 kB / 0.6081 GB, free: 44 kB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.808e-06/0.6295, allocations: 11.98 kB / 0.6082 GB, free: 32 kB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.6295, allocations: 3.984 kB / 0.6082 GB, free: 28 kB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006655/0.6362, allocations: 3.772 MB / 0.6118 GB, free: 12.17 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.6362, allocations: 4 kB / 0.6119 GB, free: 12.16 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01213/0.6484, allocations: 2.818 MB / 0.6146 GB, free: 9.344 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001545/0.6486, allocations: 36.84 kB / 0.6146 GB, free: 9.305 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000282/0.6489, allocations: 35.89 kB / 0.6147 GB, free: 9.27 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001154/0.65, allocations: 1.412 MB / 0.6161 GB, free: 7.742 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.6501, allocations: 7.938 kB / 0.6161 GB, free: 7.734 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005816/0.6559, allocations: 3.569 MB / 0.6195 GB, free: 4.043 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000714/0.6566, allocations: 344 kB / 0.6199 GB, free: 3.688 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003102/0.6569, allocations: 67.94 kB / 0.6199 GB, free: 3.621 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.6585, allocations: 235.7 kB / 0.6202 GB, free: 3.391 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000409/0.6589, allocations: 184.9 kB / 0.6203 GB, free: 3.211 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.659, allocations: 43.97 kB / 0.6204 GB, free: 3.168 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0003849/0.6594, allocations: 274.9 kB / 0.6206 GB, free: 2.898 MB / 427.1 MB Notification: Performance of sort global known variables: time 2.645e-06/0.6594, allocations: 4.094 kB / 0.6206 GB, free: 2.895 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001787/0.6612, allocations: 347.9 kB / 0.621 GB, free: 2.555 MB / 427.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.0006542/0.6619, allocations: 225.6 kB / 0.6212 GB, free: 2.32 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.004905/0.6668, allocations: 2.687 MB / 0.6238 GB, free: 15.6 MB / 443.1 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.6668, allocations: 0 / 0.6238 GB, free: 15.6 MB / 443.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005433/0.6723, allocations: 2.088 MB / 0.6259 GB, free: 13.5 MB / 443.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008277/0.6731, allocations: 111.6 kB / 0.626 GB, free: 13.39 MB / 443.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005974/0.6791, allocations: 2.894 MB / 0.6288 GB, free: 10.45 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009585/0.6801, allocations: 1.167 MB / 0.6299 GB, free: 9.25 MB / 443.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.6813, allocations: 314.2 kB / 0.6302 GB, free: 8.938 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004145/0.6817, allocations: 67.42 kB / 0.6303 GB, free: 8.871 MB / 443.1 MB Notification: Performance of SimCode: time 5.61e-07/0.6817, allocations: 0 / 0.6303 GB, free: 8.871 MB / 443.1 MB Notification: Performance of Templates: time 0.03358/0.7153, allocations: 21.22 MB / 0.651 GB, free: 3.676 MB / 459.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)