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.001791/0.001791, allocations: 104 kB / 17.59 MB, free: 5.559 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.002026/0.002026, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.327/1.327, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.178/0.178, allocations: 38.03 MB / 330.4 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 55.2 kB / 399.5 MB, free: 34.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1054, allocations: 58.06 MB / 457.5 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007894/0.1133, allocations: 6.488 MB / 464 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004056/0.1174, allocations: 2.446 MB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004637/0.1179, allocations: 23.88 kB / 466.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001234/0.1192, allocations: 433.8 kB / 466.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001212/0.1204, allocations: 0.5873 MB / 467.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009855/0.1214, allocations: 495.1 kB / 468 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00171/0.1231, allocations: 1.961 MB / 469.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001107/0.1242, allocations: 0.8493 MB / 470.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001039/0.1253, allocations: 0.7674 MB / 471.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001281/0.1266, allocations: 0.9624 MB / 472.5 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002706/0.1269, allocations: 164 kB / 472.7 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001114/0.128, allocations: 0.6865 MB / 473.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006358/0.1286, allocations: 0.6509 MB / 474 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007383/0.1294, allocations: 0.6731 MB / 474.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001879/0.1313, allocations: 2.01 MB / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1313, allocations: 0 / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1313, allocations: 0 / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.177e-05/0.1313, allocations: 0 / 476.7 MB, free: 4.797 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.004606/0.1359, allocations: 1.908 MB / 478.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.136, allocations: 15.89 kB / 478.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007508/0.1368, allocations: 171.5 kB / 478.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002051/0.1388, allocations: 0.9205 MB / 479.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006186/0.1395, allocations: 0.4989 MB / 480.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.1397, allocations: 99.92 kB / 480.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004058/0.1438, allocations: 2.026 MB / 482.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.01e-05/0.1439, allocations: 3.938 kB / 482.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.144, allocations: 32 kB / 482.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002695/0.1443, allocations: 93.94 kB / 482.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005024/0.1493, allocations: 2.24 MB / 484.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009594/0.159, allocations: 5.687 MB / 490.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004835/0.1639, allocations: 1.797 MB / 492.2 MB, free: 4.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002683/0.1666, allocations: 1.144 MB / 493.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.1667, allocations: 17 kB / 493.3 MB, free: 3.754 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003089/0.1698, allocations: 1.391 MB / 494.7 MB, free: 2.344 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 5.521e-06/0.1698, allocations: 0 / 494.7 MB, free: 2.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01452/0.1844, allocations: 5.622 MB / 0.4886 GB, free: 12.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.1845, allocations: 98.09 kB / 0.4887 GB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006568/0.1852, allocations: 0.494 MB / 0.4892 GB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.1853, allocations: 61.72 kB / 0.4893 GB, free: 11.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003379/0.1857, allocations: 360.7 kB / 0.4896 GB, free: 11.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004195/0.1861, allocations: 418 kB / 0.49 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004675/0.1866, allocations: 226.8 kB / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1867, allocations: 390.8 kB / 0.4906 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.1888, allocations: 1.021 MB / 0.4916 GB, free: 9.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002134/0.1909, allocations: 1.18 MB / 0.4928 GB, free: 8.348 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004054/0.195, allocations: 2.043 MB / 0.4947 GB, free: 6.262 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.195, allocations: 0 / 0.4947 GB, free: 6.262 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01125/0.2063, allocations: 3.899 MB / 0.4986 GB, free: 2.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-05/0.2064, allocations: 65.61 kB / 0.4986 GB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.561e-05/0.2064, allocations: 4 kB / 0.4986 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006045/0.2125, allocations: 2.073 MB / 0.5006 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009886/0.2135, allocations: 187.7 kB / 0.5008 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2372/0.4507, allocations: 11.31 MB / 0.5119 GB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002034/0.4528, allocations: 169.8 kB / 0.512 GB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/0.4533, allocations: 73.39 kB / 0.5121 GB, free: 53.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.001225/0.4546, allocations: 377 kB / 0.5125 GB, free: 53.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000574/0.4552, allocations: 91.67 kB / 0.5125 GB, free: 53.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007542/0.4627, allocations: 2.345 MB / 0.5148 GB, free: 52.49 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.539e-05/0.4628, allocations: 30.19 kB / 0.5149 GB, free: 52.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/0.4628, allocations: 9.5 kB / 0.5149 GB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.926e-05/0.4629, allocations: 4.828 kB / 0.5149 GB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00946/0.4723, allocations: 4.117 MB / 0.5189 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.4724, allocations: 3.969 kB / 0.5189 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01127/0.4837, allocations: 2.016 MB / 0.5209 GB, free: 49.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.086e-05/0.4837, allocations: 3.656 kB / 0.5209 GB, free: 49.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003232/0.4841, allocations: 35.41 kB / 0.5209 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.486e-05/0.4841, allocations: 15.42 kB / 0.5209 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.4841, allocations: 3.906 kB / 0.5209 GB, free: 49.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008236/0.4923, allocations: 3.855 MB / 0.5247 GB, free: 47.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006329/0.493, allocations: 337.7 kB / 0.525 GB, free: 47.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002929/0.4933, allocations: 95.45 kB / 0.5251 GB, free: 47.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/0.4948, allocations: 183.7 kB / 0.5253 GB, free: 47.01 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003674/0.4952, allocations: 200.2 kB / 0.5255 GB, free: 46.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.4953, allocations: 39.97 kB / 0.5255 GB, free: 46.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003507/0.4957, allocations: 350.9 kB / 0.5258 GB, free: 46.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4957, allocations: 3.938 kB / 0.5258 GB, free: 46.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001171/0.4969, allocations: 349.6 kB / 0.5262 GB, free: 46.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): 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.0003791/0.4973, allocations: 225.2 kB / 0.5264 GB, free: 45.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00701/0.5043, allocations: 3.754 MB / 0.5301 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.5043, allocations: 0 / 0.5301 GB, free: 42.11 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005537/0.5099, allocations: 1.895 MB / 0.5319 GB, free: 40.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.5111, allocations: 178.1 kB / 0.5321 GB, free: 40.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006991/0.5181, allocations: 3.439 MB / 0.5354 GB, free: 36.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006083/0.5187, allocations: 1.143 MB / 0.5366 GB, free: 35.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/0.5192, allocations: 75.42 kB / 0.5366 GB, free: 35.38 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.5192, allocations: 0 / 0.5366 GB, free: 35.38 MB / 382.1 MB Notification: Performance of Templates: time 0.02319/0.5424, allocations: 19.04 MB / 0.5552 GB, free: 16.4 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)