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.001348/0.001347, allocations: 96.41 kB / 16.31 MB, free: 5.992 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.001525/0.001525, allocations: 184 kB / 17.2 MB, free: 5.914 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.536/1.536, allocations: 205.4 MB / 223.4 MB, free: 5.789 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3493/0.3493, allocations: 38.06 MB / 309.7 MB, free: 8.875 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.0005368/0.0005376, allocations: 14.19 kB / 376.5 MB, free: 15.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1492, allocations: 56.34 MB / 432.8 MB, free: 6.867 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008661/0.158, allocations: 6.421 MB / 439.3 MB, free: 428 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005498/0.1635, allocations: 2.675 MB / 441.9 MB, free: 13.73 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00104/0.1646, allocations: 43.69 kB / 442 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007983/0.1654, allocations: 163 kB / 442.1 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002179/0.1676, allocations: 494.5 kB / 442.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.1692, allocations: 423.2 kB / 443 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001888/0.1711, allocations: 1.03 MB / 444.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001818/0.1729, allocations: 0.8319 MB / 444.9 MB, free: 10.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.1745, allocations: 0.5687 MB / 445.5 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001671/0.1762, allocations: 0.7287 MB / 446.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005306/0.1767, allocations: 68 kB / 446.2 MB, free: 9.363 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001411/0.1781, allocations: 0.5071 MB / 446.8 MB, free: 8.855 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/0.1792, allocations: 0.5223 MB / 447.3 MB, free: 8.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005463/0.1797, allocations: 229.1 kB / 447.5 MB, free: 8.102 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.1816, allocations: 1.535 MB / 449 MB, free: 6.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1816, allocations: 0 / 449 MB, free: 6.562 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.975e-06/0.1816, allocations: 4 kB / 449 MB, free: 6.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.19e-05/0.1817, allocations: 3.938 kB / 449 MB, free: 6.555 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.005322/0.187, allocations: 1.717 MB / 450.8 MB, free: 4.754 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.814e-05/0.1871, allocations: 12.03 kB / 450.8 MB, free: 4.742 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.1883, allocations: 170.6 kB / 450.9 MB, free: 4.574 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002772/0.191, allocations: 0.9272 MB / 451.9 MB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008016/0.1919, allocations: 0.5179 MB / 452.4 MB, free: 3.012 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004618/0.1923, allocations: 99.89 kB / 452.5 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/0.1971, allocations: 2.109 MB / 454.6 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.09e-05/0.1971, allocations: 0 / 454.6 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001571/0.1973, allocations: 39.94 kB / 454.6 MB, free: 0.7266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002146/0.1975, allocations: 89.94 kB / 454.7 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2498/0.4473, allocations: 2.402 MB / 457.1 MB, free: 50.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009444/0.4568, allocations: 5.762 MB / 462.9 MB, free: 49.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004299/0.4612, allocations: 1.95 MB / 464.8 MB, free: 48.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.194e-05/0.4613, allocations: 14.17 kB / 464.8 MB, free: 48.83 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002647/0.4639, allocations: 1.484 MB / 466.3 MB, free: 48.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=123): time 3.497e-06/0.4639, allocations: 0 / 466.3 MB, free: 48.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.01255/0.4765, allocations: 6.538 MB / 472.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.601e-05/0.4766, allocations: 115.2 kB / 473 MB, free: 45.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005221/0.4771, allocations: 495.7 kB / 473.5 MB, free: 45.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.4773, allocations: 57.25 kB / 473.5 MB, free: 45.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.4775, allocations: 366.9 kB / 473.9 MB, free: 45.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000273/0.4778, allocations: 413.8 kB / 474.3 MB, free: 44.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.677e-05/0.4779, allocations: 22.22 kB / 474.3 MB, free: 44.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.478, allocations: 393.4 kB / 474.7 MB, free: 44.49 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001835/0.4798, allocations: 1.08 MB / 475.8 MB, free: 44.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00193/0.4818, allocations: 1.226 MB / 477 MB, free: 43.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001853/0.4836, allocations: 1.123 MB / 478.1 MB, free: 43.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.4837, allocations: 0 / 478.1 MB, free: 43.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.0108/0.4945, allocations: 4.479 MB / 482.6 MB, free: 42.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.4946, allocations: 63.92 kB / 482.7 MB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.811e-05/0.4946, allocations: 7.375 kB / 482.7 MB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006847/0.5015, allocations: 2.246 MB / 484.9 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.5025, allocations: 177.2 kB / 485.1 MB, free: 41.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03016/0.5327, allocations: 13.71 MB / 498.8 MB, free: 36.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/0.5345, allocations: 210.1 kB / 499 MB, free: 36.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000446/0.535, allocations: 74.59 kB / 499.1 MB, free: 36.08 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 ($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 (111): * Single equations (assignments): 99 * Array equations: 3 * Algorithm blocks: 7 * 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%) 1} * Non-linear torn systems: 1 {6 21} Notification: Performance of prepare postOptimizeDAE: time 0.001221/0.5362, allocations: 381.3 kB / 499.4 MB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005694/0.5368, allocations: 86.97 kB / 499.5 MB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007172/0.544, allocations: 2.659 MB / 0.4904 GB, free: 34.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.907e-05/0.5441, allocations: 24.69 kB / 0.4904 GB, free: 34.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.029e-05/0.5441, allocations: 5.797 kB / 0.4904 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-05/0.5441, allocations: 6.438 kB / 0.4905 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.5543, allocations: 4.399 MB / 0.4948 GB, free: 33.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.124e-05/0.5544, allocations: 7 kB / 0.4948 GB, free: 33.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01066/0.565, allocations: 2.849 MB / 0.4975 GB, free: 31.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.5652, allocations: 32.78 kB / 0.4976 GB, free: 31.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002896/0.5655, allocations: 39.16 kB / 0.4976 GB, free: 31.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000835/0.5664, allocations: 1.392 MB / 0.499 GB, free: 30.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.5664, allocations: 4.25 kB / 0.499 GB, free: 30.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008231/0.5746, allocations: 4.362 MB / 0.5032 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007605/0.5754, allocations: 340 kB / 0.5036 GB, free: 25.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.5757, allocations: 83.94 kB / 0.5036 GB, free: 25.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001421/0.5771, allocations: 251.7 kB / 0.5039 GB, free: 24.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003816/0.5775, allocations: 188.7 kB / 0.5041 GB, free: 24.81 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001088/0.5777, allocations: 39.97 kB / 0.5041 GB, free: 24.77 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000422/0.5781, allocations: 342.8 kB / 0.5044 GB, free: 24.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.5781, allocations: 0 / 0.5044 GB, free: 24.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001526/0.5796, allocations: 357.6 kB / 0.5048 GB, free: 24.09 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): 95 * Array equations: 3 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004044/0.58, allocations: 203 kB / 0.505 GB, free: 23.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006671/0.5867, allocations: 3.968 MB / 0.5088 GB, free: 19.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.5867, allocations: 0 / 0.5088 GB, free: 19.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005887/0.5926, allocations: 2.405 MB / 0.5112 GB, free: 17.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009788/0.5936, allocations: 157.3 kB / 0.5113 GB, free: 17.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006558/0.6002, allocations: 3.797 MB / 0.515 GB, free: 13.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007111/0.601, allocations: 1.164 MB / 0.5162 GB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001102/0.6021, allocations: 326.8 kB / 0.5165 GB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004502/0.6025, allocations: 71.42 kB / 0.5166 GB, free: 11.82 MB / 382.1 MB Notification: Performance of SimCode: time 1.933e-06/0.6025, allocations: 0 / 0.5166 GB, free: 11.82 MB / 382.1 MB Notification: Performance of Templates: time 0.04062/0.6432, allocations: 25.36 MB / 0.5413 GB, free: 2.484 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: