Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00146/0.00146, allocations: 189 kB / 8.013 MB, free: 1.062 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.208/2.208, allocations: 205.3 MB / 213.7 MB, free: 1.75 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 90.62 kB / 261.8 MB, free: 1.688 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2659/0.2659, allocations: 38 MB / 347.7 MB, free: 5.77 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.628e-05/1.639e-05, allocations: 4 kB / 409.9 MB, free: 35.15 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 56.33 MB / 466.2 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5214/0.6343, allocations: 112.1 MB / 0.5647 GB, free: 15.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/0.6348, allocations: 94.12 kB / 0.5648 GB, free: 15.71 MB / 378.7 MB [/var/lib/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$. [/var/lib/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.1362/0.7709, allocations: 28.01 MB / 0.5922 GB, free: 7.762 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.771, allocations: 0 / 0.5922 GB, free: 7.762 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.912e-05/0.7711, allocations: 24 kB / 0.5922 GB, free: 7.738 MB / 394.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.008118/0.7792, allocations: 1.636 MB / 0.5938 GB, free: 6.098 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.7793, allocations: 8.031 kB / 0.5938 GB, free: 6.09 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001609/0.7809, allocations: 162.6 kB / 0.594 GB, free: 5.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008768/0.7897, allocations: 1.637 MB / 0.5956 GB, free: 4.535 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001166/0.791, allocations: 496.2 kB / 0.596 GB, free: 3.992 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006697/0.7917, allocations: 56 kB / 0.5961 GB, free: 3.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00517/0.7969, allocations: 1.627 MB / 0.5977 GB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004616/0.8015, allocations: 1.662 MB / 0.5993 GB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.749e-05/0.8016, allocations: 3.984 kB / 0.5993 GB, free: 1.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002323/0.8019, allocations: 8 kB / 0.5993 GB, free: 1.648 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002896/0.8022, allocations: 80.95 kB / 0.5994 GB, free: 1.578 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01858/0.8208, allocations: 5.638 MB / 0.6049 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003928/0.8248, allocations: 1.266 MB / 0.6061 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002523/0.8273, allocations: 0.9599 MB / 0.6071 GB, free: 11.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001721/0.8276, allocations: 13.31 kB / 0.6071 GB, free: 11.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003229/0.8308, allocations: 1.166 MB / 0.6082 GB, free: 10.75 MB / 410.7 MB Notification: Performance of pre-optimization done (n=125): time 7.825e-06/0.8309, allocations: 3.938 kB / 0.6082 GB, free: 10.75 MB / 410.7 MB Notification: Performance of matching and sorting (n=126): time 0.01449/0.8454, allocations: 4.192 MB / 0.6123 GB, free: 6.477 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.096e-05/0.8455, allocations: 102.4 kB / 0.6124 GB, free: 6.359 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007195/0.8462, allocations: 361.1 kB / 0.6128 GB, free: 6 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004102/0.8467, allocations: 41.69 kB / 0.6128 GB, free: 5.953 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004023/0.8471, allocations: 403 kB / 0.6132 GB, free: 5.555 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007008/0.8478, allocations: 418 kB / 0.6136 GB, free: 5.141 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.8479, allocations: 0 / 0.6136 GB, free: 5.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001948/0.8482, allocations: 366.7 kB / 0.6139 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002268/0.8504, allocations: 0.8968 MB / 0.6148 GB, free: 3.879 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002521/0.853, allocations: 1.042 MB / 0.6158 GB, free: 2.797 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00331/0.8564, allocations: 1.029 MB / 0.6168 GB, free: 1.773 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.8564, allocations: 0 / 0.6168 GB, free: 1.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01821/0.8746, allocations: 3.82 MB / 0.6206 GB, free: 13.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001387/0.8748, allocations: 65.62 kB / 0.6206 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.8748, allocations: 4 kB / 0.6206 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009172/0.884, allocations: 1.668 MB / 0.6222 GB, free: 12.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001547/0.8856, allocations: 163.8 kB / 0.6224 GB, free: 12.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03116/0.9168, allocations: 10.42 MB / 0.6326 GB, free: 1.344 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002519/0.9194, allocations: 187.8 kB / 0.6328 GB, free: 1.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.9197, allocations: 63.95 kB / 0.6328 GB, free: 1.098 MB / 426.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 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004907/0.9202, allocations: 150.1 kB / 0.633 GB, free: 0.9453 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003024/0.9205, allocations: 79.05 kB / 0.633 GB, free: 0.8672 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006015/0.9265, allocations: 2.124 MB / 0.6351 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001575/0.9267, allocations: 39.97 kB / 0.6352 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.9267, allocations: 0 / 0.6352 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.952e-05/0.9268, allocations: 3.984 kB / 0.6352 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01066/0.9374, allocations: 3.775 MB / 0.6388 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.12e-05/0.9375, allocations: 0 / 0.6388 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02377/0.9613, allocations: 2.833 MB / 0.6416 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002013/0.9615, allocations: 40.84 kB / 0.6417 GB, free: 7.918 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000384/0.9619, allocations: 19.97 kB / 0.6417 GB, free: 7.898 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/0.9634, allocations: 1.423 MB / 0.6431 GB, free: 6.359 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.9634, allocations: 0 / 0.6431 GB, free: 6.359 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008719/0.9722, allocations: 3.575 MB / 0.6466 GB, free: 2.668 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/0.9734, allocations: 340 kB / 0.6469 GB, free: 2.316 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003989/0.9738, allocations: 72.03 kB / 0.6469 GB, free: 2.246 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002667/0.9765, allocations: 231.7 kB / 0.6472 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000718/0.9772, allocations: 197 kB / 0.6474 GB, free: 1.828 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001777/0.9774, allocations: 39.97 kB / 0.6474 GB, free: 1.789 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005066/0.9779, allocations: 282.9 kB / 0.6477 GB, free: 1.512 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.785e-06/0.9779, allocations: 0 / 0.6477 GB, free: 1.512 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002711/0.9807, allocations: 347.8 kB / 0.648 GB, free: 1.172 MB / 442.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.0008444/0.9815, allocations: 216.7 kB / 0.6482 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01019/0.9917, allocations: 2.683 MB / 0.6508 GB, free: 14.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.9918, allocations: 0 / 0.6508 GB, free: 14.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01335/1.005, allocations: 2.029 MB / 0.6528 GB, free: 12.19 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001791/1.007, allocations: 109.9 kB / 0.6529 GB, free: 12.08 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/1.021, allocations: 2.981 MB / 0.6558 GB, free: 9.039 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/1.022, allocations: 1.171 MB / 0.657 GB, free: 7.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001373/1.024, allocations: 75.36 kB / 0.657 GB, free: 7.766 MB / 458.7 MB Notification: Performance of SimCode: time 1.142e-06/1.024, allocations: 0 / 0.657 GB, free: 7.766 MB / 458.7 MB Notification: Performance of Templates: time 0.05689/1.081, allocations: 21.02 MB / 0.6776 GB, free: 2.715 MB / 474.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)