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.0008647/0.0008647, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001361/0.001361, allocations: 182 kB / 17.56 MB, free: 6.203 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.392/1.392, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1807/0.1807, allocations: 38.08 MB / 330.8 MB, free: 8.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003059/0.0003059, allocations: 8 kB / 400.7 MB, free: 34.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1235, allocations: 59.16 MB / 459.9 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007805/0.1313, allocations: 7.088 MB / 467 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004754/0.1361, allocations: 2.75 MB / 469.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006349/0.1368, allocations: 43.69 kB / 469.8 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004947/0.1373, allocations: 139 kB / 469.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.1385, allocations: 0.5526 MB / 470.4 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001077/0.1396, allocations: 439.4 kB / 470.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002526/0.1421, allocations: 2.448 MB / 473.3 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.1437, allocations: 0.9516 MB / 474.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001044/0.1447, allocations: 0.6189 MB / 474.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001349/0.1461, allocations: 0.9077 MB / 475.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.1463, allocations: 68 kB / 475.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001167/0.1474, allocations: 0.6122 MB / 476.5 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006376/0.1481, allocations: 0.5495 MB / 477 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008001/0.1489, allocations: 0.6083 MB / 477.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002053/0.151, allocations: 1.908 MB / 479.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.151, allocations: 0 / 479.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.151, allocations: 0 / 479.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.151, allocations: 0 / 479.5 MB, free: 3.27 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.004527/0.1555, allocations: 1.709 MB / 481.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.1556, allocations: 15.97 kB / 481.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008155/0.1564, allocations: 159.6 kB / 481.4 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/0.1586, allocations: 0.9362 MB / 482.4 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007137/0.1593, allocations: 0.5184 MB / 482.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002826/0.1596, allocations: 107.8 kB / 483 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004406/0.164, allocations: 2.112 MB / 485.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.232e-05/0.1641, allocations: 0 / 485.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001395/0.1642, allocations: 35.98 kB / 485.1 MB, free: 13.44 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002365/0.1644, allocations: 93.94 kB / 485.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005533/0.17, allocations: 2.412 MB / 487.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.1806, allocations: 5.765 MB / 493.4 MB, free: 5.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004969/0.1856, allocations: 1.945 MB / 495.3 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003107/0.1887, allocations: 1.254 MB / 496.6 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.484e-05/0.1889, allocations: 16.98 kB / 496.6 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003224/0.1921, allocations: 1.481 MB / 498.1 MB, free: 308 kB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 4.068e-06/0.1921, allocations: 7.938 kB / 498.1 MB, free: 300 kB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.0154/0.2075, allocations: 6.114 MB / 0.4924 GB, free: 10.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/0.2077, allocations: 106.1 kB / 0.4925 GB, free: 9.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007042/0.2084, allocations: 0.4901 MB / 0.493 GB, free: 9.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.2085, allocations: 57.69 kB / 0.493 GB, free: 9.434 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.2089, allocations: 360.7 kB / 0.4934 GB, free: 9.074 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005741/0.2095, allocations: 418 kB / 0.4938 GB, free: 8.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.2097, allocations: 117.6 kB / 0.4939 GB, free: 8.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.2099, allocations: 386.8 kB / 0.4943 GB, free: 8.152 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002347/0.2123, allocations: 1.111 MB / 0.4953 GB, free: 7.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.2145, allocations: 1.247 MB / 0.4966 GB, free: 5.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004256/0.2188, allocations: 2.192 MB / 0.4987 GB, free: 3.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/0.2188, allocations: 4 kB / 0.4987 GB, free: 3.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.2407/0.4596, allocations: 4.398 MB / 0.503 GB, free: 55.98 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.4597, allocations: 65.2 kB / 0.5031 GB, free: 55.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/0.4598, allocations: 2.438 kB / 0.5031 GB, free: 55.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006954/0.4667, allocations: 2.225 MB / 0.5052 GB, free: 55.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/0.4679, allocations: 190.6 kB / 0.5054 GB, free: 55.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02833/0.4963, allocations: 11.65 MB / 0.5168 GB, free: 52.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.4977, allocations: 206.2 kB / 0.517 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.4979, allocations: 81.08 kB / 0.5171 GB, free: 52.43 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.0005903/0.4985, allocations: 374.9 kB / 0.5174 GB, free: 52.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.4987, allocations: 84.83 kB / 0.5175 GB, free: 52.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005677/0.5044, allocations: 2.558 MB / 0.52 GB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.555e-05/0.5044, allocations: 21.97 kB / 0.52 GB, free: 50.92 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5045, allocations: 3.984 kB / 0.52 GB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.5045, allocations: 10.09 kB / 0.52 GB, free: 50.91 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007246/0.5117, allocations: 4.307 MB / 0.5242 GB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.856e-06/0.5118, allocations: 4 kB / 0.5243 GB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01135/0.5231, allocations: 2.853 MB / 0.527 GB, free: 45.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.056e-05/0.5232, allocations: 8 kB / 0.527 GB, free: 45.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002886/0.5235, allocations: 48.52 kB / 0.5271 GB, free: 45.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.413e-06/0.5235, allocations: 4 kB / 0.5271 GB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.5235, allocations: 4 kB / 0.5271 GB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007723/0.5312, allocations: 4.149 MB / 0.5312 GB, free: 41.45 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.5319, allocations: 344.1 kB / 0.5315 GB, free: 41.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002331/0.5322, allocations: 93.06 kB / 0.5316 GB, free: 41.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.5335, allocations: 239.7 kB / 0.5318 GB, free: 40.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003627/0.5339, allocations: 190.7 kB / 0.532 GB, free: 40.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.606e-05/0.534, allocations: 43.97 kB / 0.532 GB, free: 40.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003329/0.5343, allocations: 350.8 kB / 0.5324 GB, free: 40.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5344, allocations: 0 / 0.5324 GB, free: 40.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001095/0.5355, allocations: 347.6 kB / 0.5327 GB, free: 39.88 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.0003572/0.5358, allocations: 229.3 kB / 0.5329 GB, free: 39.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005971/0.5418, allocations: 3.152 MB / 0.536 GB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.5418, allocations: 0 / 0.536 GB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006072/0.5479, allocations: 2.299 MB / 0.5382 GB, free: 34.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001355/0.5493, allocations: 178.9 kB / 0.5384 GB, free: 34.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006456/0.5558, allocations: 3.933 MB / 0.5422 GB, free: 30.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.5564, allocations: 1.144 MB / 0.5434 GB, free: 28.86 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009999/0.5574, allocations: 322.7 kB / 0.5437 GB, free: 28.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/0.5577, allocations: 71.42 kB / 0.5437 GB, free: 28.47 MB / 382.1 MB Notification: Performance of SimCode: time 2.324e-06/0.5578, allocations: 0 / 0.5437 GB, free: 28.47 MB / 382.1 MB Notification: Performance of Templates: time 0.02888/0.5866, allocations: 22.75 MB / 0.566 GB, free: 5.848 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)