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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.001158/0.001158, allocations: 111 kB / 17.74 MB, free: 5.332 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.001427/0.001427, allocations: 196.3 kB / 18.67 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1787/0.1787, allocations: 37.98 MB / 309.9 MB, free: 5.953 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 67.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1074, allocations: 55.25 MB / 487.8 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009063/0.1166, allocations: 6.481 MB / 494.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004902/0.1215, allocations: 2.482 MB / 496.8 MB, free: 15.33 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008138/0.1224, allocations: 23.88 kB / 496.8 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001541/0.124, allocations: 429.9 kB / 497.2 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001735/0.1257, allocations: 0.595 MB / 497.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001318/0.127, allocations: 491.1 kB / 498.3 MB, free: 13.81 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002748/0.1298, allocations: 1.957 MB / 0.4885 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001751/0.1316, allocations: 0.8649 MB / 0.4893 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001689/0.1333, allocations: 0.7868 MB / 0.4901 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.1352, allocations: 0.9702 MB / 0.4911 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005052/0.1357, allocations: 160 kB / 0.4912 GB, free: 9.055 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001514/0.1372, allocations: 0.6476 MB / 0.4918 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.1383, allocations: 0.6393 MB / 0.4925 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001234/0.1395, allocations: 0.673 MB / 0.4931 GB, free: 7.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002419/0.1419, allocations: 2.049 MB / 0.4951 GB, free: 5.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.142, allocations: 0 / 0.4951 GB, free: 5.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.142, allocations: 0 / 0.4951 GB, free: 5.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.701e-05/0.142, allocations: 0 / 0.4951 GB, free: 5.035 MB / 382.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.00521/0.1472, allocations: 1.908 MB / 0.497 GB, free: 3.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/0.1473, allocations: 15.89 kB / 0.497 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000835/0.1481, allocations: 163.5 kB / 0.4972 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00224/0.1504, allocations: 0.9596 MB / 0.4981 GB, free: 1.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006231/0.151, allocations: 0.5066 MB / 0.4986 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002743/0.1513, allocations: 99.92 kB / 0.4987 GB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004324/0.1557, allocations: 2.019 MB / 0.5007 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.834e-05/0.1557, allocations: 0 / 0.5007 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.1559, allocations: 32 kB / 0.5007 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002304/0.1561, allocations: 93.94 kB / 0.5008 GB, free: 15.01 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005073/0.1612, allocations: 2.24 MB / 0.503 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009755/0.171, allocations: 5.663 MB / 0.5085 GB, free: 6.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004745/0.1758, allocations: 1.804 MB / 0.5103 GB, free: 5.152 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002739/0.1785, allocations: 1.152 MB / 0.5114 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000103/0.1787, allocations: 13 kB / 0.5114 GB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003142/0.1818, allocations: 1.391 MB / 0.5128 GB, free: 2.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 5.34e-06/0.1818, allocations: 0 / 0.5128 GB, free: 2.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01453/0.1964, allocations: 5.622 MB / 0.5182 GB, free: 12.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.622e-05/0.1965, allocations: 106 kB / 0.5184 GB, free: 12.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006951/0.1973, allocations: 497.9 kB / 0.5188 GB, free: 12.27 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002095/0.1975, allocations: 61.69 kB / 0.5189 GB, free: 12.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003313/0.1978, allocations: 360.7 kB / 0.5192 GB, free: 11.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004916/0.1983, allocations: 414.1 kB / 0.5196 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.1988, allocations: 230.8 kB / 0.5198 GB, free: 11.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001884/0.199, allocations: 394.8 kB / 0.5202 GB, free: 10.81 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002135/0.2012, allocations: 1.025 MB / 0.5212 GB, free: 9.785 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002244/0.2034, allocations: 1.176 MB / 0.5224 GB, free: 8.566 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004262/0.2077, allocations: 2.039 MB / 0.5244 GB, free: 6.488 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.2078, allocations: 0 / 0.5244 GB, free: 6.488 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01145/0.2192, allocations: 3.903 MB / 0.5282 GB, free: 2.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00012/0.2194, allocations: 57.69 kB / 0.5282 GB, free: 2.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.2194, allocations: 8.188 kB / 0.5282 GB, free: 2.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005921/0.2253, allocations: 2.077 MB / 0.5303 GB, free: 424 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001/0.2264, allocations: 187.7 kB / 0.5304 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2761/0.5025, allocations: 11.29 MB / 0.5415 GB, free: 48.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00161/0.5042, allocations: 172.9 kB / 0.5416 GB, free: 48.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003652/0.5046, allocations: 76.11 kB / 0.5417 GB, free: 48.7 MB / 414.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.0009585/0.5055, allocations: 378.3 kB / 0.5421 GB, free: 48.48 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003203/0.5059, allocations: 81.44 kB / 0.5421 GB, free: 48.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005642/0.5115, allocations: 2.352 MB / 0.5444 GB, free: 47.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-05/0.5116, allocations: 32.28 kB / 0.5445 GB, free: 47.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5116, allocations: 0 / 0.5445 GB, free: 47.76 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.5116, allocations: 9.438 kB / 0.5445 GB, free: 47.76 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008037/0.5197, allocations: 4.103 MB / 0.5485 GB, free: 46.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.438e-06/0.5197, allocations: 2.938 kB / 0.5485 GB, free: 46.28 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01054/0.5302, allocations: 2.023 MB / 0.5505 GB, free: 45.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.311e-05/0.5303, allocations: 9.391 kB / 0.5505 GB, free: 45.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003158/0.5306, allocations: 32.38 kB / 0.5505 GB, free: 45.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.254e-05/0.5306, allocations: 10.97 kB / 0.5505 GB, free: 45.5 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5307, allocations: 6.719 kB / 0.5505 GB, free: 45.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007968/0.5386, allocations: 3.858 MB / 0.5543 GB, free: 43.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005652/0.5392, allocations: 344.5 kB / 0.5546 GB, free: 43.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.5395, allocations: 84.92 kB / 0.5547 GB, free: 43.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.541, allocations: 185.6 kB / 0.5549 GB, free: 43.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003775/0.5413, allocations: 195.4 kB / 0.5551 GB, free: 43.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/0.5415, allocations: 43.47 kB / 0.5551 GB, free: 43.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003792/0.5419, allocations: 347.1 kB / 0.5554 GB, free: 42.81 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5419, allocations: 0 / 0.5554 GB, free: 42.81 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001227/0.5431, allocations: 354.2 kB / 0.5558 GB, free: 42.7 MB / 414.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.0004057/0.5435, allocations: 224 kB / 0.556 GB, free: 42.49 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005884/0.5494, allocations: 2.981 MB / 0.5589 GB, free: 39.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.5494, allocations: 3.938 kB / 0.5589 GB, free: 39.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005489/0.5549, allocations: 1.897 MB / 0.5608 GB, free: 37.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001232/0.5562, allocations: 190 kB / 0.5609 GB, free: 37.41 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006865/0.5631, allocations: 3.41 MB / 0.5643 GB, free: 34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006043/0.5637, allocations: 1.14 MB / 0.5654 GB, free: 32.83 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005821/0.5643, allocations: 79.41 kB / 0.5655 GB, free: 32.75 MB / 414.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5643, allocations: 4 kB / 0.5655 GB, free: 32.75 MB / 414.1 MB Notification: Performance of Templates: time 0.02322/0.5875, allocations: 19.23 MB / 0.5842 GB, free: 13.47 MB / 414.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)