Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_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="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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009685/0.0009687, allocations: 173.5 kB / 16.76 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.4 MB / 222.9 MB, free: 9.039 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.0007935/0.0007934, allocations: 82.36 kB / 271.3 MB, free: 8.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2445/0.2445, allocations: 38.06 MB / 357.6 MB, free: 1.746 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005231/0.0005231, allocations: 20 kB / 423.9 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5639/0.5644, allocations: 56.32 MB / 480.3 MB, free: 9.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2262/0.7907, allocations: 112.9 MB / 0.5793 GB, free: 5.434 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.7911, allocations: 103.9 kB / 0.5794 GB, free: 5.332 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0976/0.8887, allocations: 28.16 MB / 0.6069 GB, free: 8.879 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.8887, allocations: 0 / 0.6069 GB, free: 8.879 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001083/0.8889, allocations: 20 kB / 0.6069 GB, free: 8.859 MB / 442.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.009131/0.898, allocations: 1.746 MB / 0.6086 GB, free: 7.023 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.466e-05/0.8981, allocations: 8.031 kB / 0.6086 GB, free: 7.016 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002036/0.9001, allocations: 163.6 kB / 0.6087 GB, free: 6.855 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006519/0.9067, allocations: 1.303 MB / 0.61 GB, free: 5.512 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001351/0.9081, allocations: 0.5223 MB / 0.6105 GB, free: 4.914 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009102/0.909, allocations: 100.3 kB / 0.6106 GB, free: 4.816 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009091/0.9182, allocations: 2.107 MB / 0.6127 GB, free: 2.664 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.9183, allocations: 0 / 0.6127 GB, free: 2.664 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004974/0.9188, allocations: 43.97 kB / 0.6127 GB, free: 2.621 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002954/0.9192, allocations: 77.95 kB / 0.6128 GB, free: 2.543 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009005/0.9282, allocations: 2.381 MB / 0.6151 GB, free: 168 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01779/0.946, allocations: 5.735 MB / 0.6207 GB, free: 10.32 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007052/0.9532, allocations: 1.806 MB / 0.6225 GB, free: 8.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003821/0.9571, allocations: 1.293 MB / 0.6237 GB, free: 7.199 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001379/0.9572, allocations: 13 kB / 0.6238 GB, free: 7.188 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00389/0.9611, allocations: 1.477 MB / 0.6252 GB, free: 5.691 MB / 458.7 MB Notification: Performance of pre-optimization done (n=125): time 6.111e-06/0.9612, allocations: 4 kB / 0.6252 GB, free: 5.688 MB / 458.7 MB Notification: Performance of matching and sorting (n=126): time 0.01669/0.9779, allocations: 6.351 MB / 0.6314 GB, free: 15.24 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.9781, allocations: 102.1 kB / 0.6315 GB, free: 15.12 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008006/0.9789, allocations: 497.9 kB / 0.632 GB, free: 14.63 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001659/0.9791, allocations: 57.69 kB / 0.632 GB, free: 14.57 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.9795, allocations: 364.7 kB / 0.6324 GB, free: 14.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.9799, allocations: 421.9 kB / 0.6328 GB, free: 13.79 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.019e-05/0.98, allocations: 16 kB / 0.6328 GB, free: 13.77 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002678/0.9803, allocations: 398.7 kB / 0.6332 GB, free: 13.37 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00218/0.9825, allocations: 1.111 MB / 0.6343 GB, free: 12.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002267/0.9848, allocations: 1.251 MB / 0.6355 GB, free: 10.97 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004292/0.9891, allocations: 2.211 MB / 0.6376 GB, free: 8.711 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.9891, allocations: 0 / 0.6376 GB, free: 8.711 MB / 474.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.01128/1, allocations: 4.433 MB / 0.642 GB, free: 4.242 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001267/1.001, allocations: 61.67 kB / 0.642 GB, free: 4.176 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/1.001, allocations: 4 kB / 0.642 GB, free: 4.172 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005857/1.006, allocations: 2.121 MB / 0.6441 GB, free: 2.043 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/1.008, allocations: 163.8 kB / 0.6443 GB, free: 1.883 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3656/1.373, allocations: 13.52 MB / 0.6575 GB, free: 132.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/1.375, allocations: 196.2 kB / 0.6577 GB, free: 132.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/1.375, allocations: 69.38 kB / 0.6577 GB, free: 132.6 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 () * Number of clocked 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.0009937/1.376, allocations: 370.1 kB / 0.6581 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002406/1.377, allocations: 78.97 kB / 0.6582 GB, free: 132.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006752/1.383, allocations: 2.672 MB / 0.6608 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.217e-05/1.384, allocations: 32.95 kB / 0.6608 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/1.384, allocations: 1.281 kB / 0.6608 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/1.384, allocations: 6.516 kB / 0.6608 GB, free: 132.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009803/1.393, allocations: 4.417 MB / 0.6651 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/1.394, allocations: 2.656 kB / 0.6651 GB, free: 130.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01163/1.405, allocations: 2.824 MB / 0.6679 GB, free: 130.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001733/1.405, allocations: 42.14 kB / 0.6679 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003656/1.406, allocations: 36.56 kB / 0.668 GB, free: 130.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001034/1.407, allocations: 1.482 MB / 0.6694 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/1.407, allocations: 7.25 kB / 0.6694 GB, free: 129.3 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008361/1.415, allocations: 4.3 MB / 0.6736 GB, free: 127.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008685/1.416, allocations: 338.5 kB / 0.6739 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/1.416, allocations: 85.89 kB / 0.674 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/1.418, allocations: 244.5 kB / 0.6742 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004406/1.418, allocations: 192 kB / 0.6744 GB, free: 127.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/1.418, allocations: 38.83 kB / 0.6745 GB, free: 127.6 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004557/1.419, allocations: 345.1 kB / 0.6748 GB, free: 127.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.419, allocations: 0 / 0.6748 GB, free: 127.4 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001775/1.421, allocations: 383 kB / 0.6752 GB, free: 127.4 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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 90 * 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.0005692/1.421, allocations: 230.3 kB / 0.6754 GB, free: 127.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006618/1.428, allocations: 3.254 MB / 0.6786 GB, free: 126.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.428, allocations: 3.938 kB / 0.6786 GB, free: 126.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005816/1.434, allocations: 2.364 MB / 0.6809 GB, free: 125.5 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/1.435, allocations: 172.2 kB / 0.681 GB, free: 125.4 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007466/1.443, allocations: 4.03 MB / 0.685 GB, free: 123.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007183/1.444, allocations: 1.15 MB / 0.6861 GB, free: 122.8 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006831/1.444, allocations: 72 kB / 0.6862 GB, free: 122.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.432e-06/1.444, allocations: 0 / 0.6862 GB, free: 122.8 MB / 474.7 MB Notification: Performance of Templates: time 0.02977/1.474, allocations: 22.06 MB / 0.7077 GB, free: 110.5 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)