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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 104.7 kB / 16.51 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001383, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1938/0.1938, allocations: 38.03 MB / 329.3 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 66.34 kB / 398.1 MB, free: 34.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1222, allocations: 58.07 MB / 456.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009345/0.1316, allocations: 7.529 MB / 463.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005345/0.137, allocations: 2.781 MB / 466.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008841/0.1379, allocations: 47.69 kB / 466.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.1392, allocations: 394.3 kB / 466.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.1406, allocations: 0.5487 MB / 467.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001117/0.1417, allocations: 451.4 kB / 467.9 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002172/0.1439, allocations: 2.441 MB / 470.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009593/0.1448, allocations: 0.7132 MB / 471 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009263/0.1458, allocations: 0.6618 MB / 471.7 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001238/0.147, allocations: 0.9583 MB / 472.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002219/0.1473, allocations: 84 kB / 472.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.1484, allocations: 0.624 MB / 473.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005624/0.149, allocations: 0.569 MB / 473.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007136/0.1497, allocations: 0.6066 MB / 474.5 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001769/0.1515, allocations: 1.952 MB / 476.5 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1515, allocations: 3.938 kB / 476.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.1515, allocations: 0 / 476.5 MB, free: 4.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.1515, allocations: 0 / 476.5 MB, free: 4.078 MB / 350.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.004681/0.1562, allocations: 1.904 MB / 478.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.974e-05/0.1563, allocations: 12.03 kB / 478.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008485/0.1572, allocations: 163.6 kB / 478.6 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002142/0.1593, allocations: 0.9361 MB / 479.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006286/0.16, allocations: 0.495 MB / 480 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002584/0.1602, allocations: 103.8 kB / 480.1 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003999/0.1642, allocations: 2.019 MB / 482.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.1643, allocations: 4 kB / 482.1 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001385/0.1644, allocations: 32 kB / 482.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002053/0.1646, allocations: 89.94 kB / 482.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00491/0.1696, allocations: 2.244 MB / 484.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01381/0.1834, allocations: 5.679 MB / 490.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00683/0.1903, allocations: 1.8 MB / 492 MB, free: 4.215 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004139/0.1945, allocations: 1.148 MB / 493.1 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001432/0.1947, allocations: 9 kB / 493.1 MB, free: 3.051 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004581/0.1993, allocations: 1.391 MB / 494.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 5.099e-06/0.1993, allocations: 0 / 494.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.02635/0.2256, allocations: 5.626 MB / 0.4884 GB, free: 11.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.2258, allocations: 102.1 kB / 0.4885 GB, free: 11.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/0.2269, allocations: 497.9 kB / 0.489 GB, free: 11.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003141/0.2272, allocations: 57.69 kB / 0.489 GB, free: 11.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000481/0.2277, allocations: 364.8 kB / 0.4894 GB, free: 10.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007461/0.2285, allocations: 414 kB / 0.4898 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007487/0.2293, allocations: 230.8 kB / 0.49 GB, free: 10.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002901/0.2296, allocations: 394.8 kB / 0.4904 GB, free: 9.883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003922/0.2335, allocations: 1.025 MB / 0.4914 GB, free: 8.859 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004291/0.2378, allocations: 1.172 MB / 0.4925 GB, free: 7.648 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008115/0.246, allocations: 2.051 MB / 0.4945 GB, free: 5.555 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-05/0.2461, allocations: 0 / 0.4945 GB, free: 5.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.0225/0.2686, allocations: 3.903 MB / 0.4983 GB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001882/0.2688, allocations: 64.12 kB / 0.4984 GB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.617e-05/0.2689, allocations: 7.984 kB / 0.4984 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3217/0.5906, allocations: 2.063 MB / 0.5004 GB, free: 56.63 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.5918, allocations: 189 kB / 0.5006 GB, free: 56.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02591/0.6178, allocations: 10.45 MB / 0.5108 GB, free: 53.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.6193, allocations: 165 kB / 0.511 GB, free: 53.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003309/0.6196, allocations: 77.81 kB / 0.511 GB, free: 53.55 MB / 382.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 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0008384/0.6205, allocations: 384 kB / 0.5114 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003302/0.6208, allocations: 78.12 kB / 0.5115 GB, free: 53.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005501/0.6263, allocations: 2.355 MB / 0.5138 GB, free: 52.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.674e-05/0.6264, allocations: 27.06 kB / 0.5138 GB, free: 52.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.6264, allocations: 0 / 0.5138 GB, free: 52.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/0.6264, allocations: 9.203 kB / 0.5138 GB, free: 52.61 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007987/0.6344, allocations: 4.114 MB / 0.5178 GB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.05e-05/0.6344, allocations: 3.969 kB / 0.5178 GB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01019/0.6446, allocations: 2.022 MB / 0.5198 GB, free: 49.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.69e-05/0.6447, allocations: 6.781 kB / 0.5198 GB, free: 49.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005679/0.6453, allocations: 36.22 kB / 0.5199 GB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.05e-05/0.6454, allocations: 7.5 kB / 0.5199 GB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.6454, allocations: 6.875 kB / 0.5199 GB, free: 49.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/0.6554, allocations: 3.855 MB / 0.5236 GB, free: 47.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007804/0.6562, allocations: 344.8 kB / 0.524 GB, free: 47.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003429/0.6566, allocations: 83.23 kB / 0.524 GB, free: 47.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.658, allocations: 191.7 kB / 0.5242 GB, free: 47.37 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004744/0.6585, allocations: 192.6 kB / 0.5244 GB, free: 47.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/0.6587, allocations: 39.97 kB / 0.5244 GB, free: 47.14 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004652/0.6592, allocations: 351 kB / 0.5248 GB, free: 46.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6592, allocations: 0 / 0.5248 GB, free: 46.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001512/0.6607, allocations: 355.7 kB / 0.5251 GB, free: 46.46 MB / 382.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]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004701/0.6612, allocations: 227.3 kB / 0.5253 GB, free: 46.24 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005931/0.6671, allocations: 2.976 MB / 0.5282 GB, free: 43.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.6671, allocations: 0 / 0.5282 GB, free: 43.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005386/0.6725, allocations: 1.926 MB / 0.5301 GB, free: 41.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.6738, allocations: 169.4 kB / 0.5303 GB, free: 41.14 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006827/0.6806, allocations: 3.759 MB / 0.534 GB, free: 37.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.6813, allocations: 1.14 MB / 0.5351 GB, free: 36.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001099/0.6824, allocations: 314.6 kB / 0.5354 GB, free: 35.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004839/0.6829, allocations: 67.42 kB / 0.5354 GB, free: 35.86 MB / 382.1 MB Notification: Performance of SimCode: time 1.363e-06/0.6829, allocations: 0 / 0.5354 GB, free: 35.86 MB / 382.1 MB Notification: Performance of Templates: time 0.02961/0.7125, allocations: 23.07 MB / 0.558 GB, free: 12.92 MB / 382.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)