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.001597/0.001597, allocations: 115.2 kB / 17.04 MB, free: 6.051 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.00162/0.00162, allocations: 195 kB / 17.97 MB, free: 5.133 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.627/1.627, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1858/0.1858, allocations: 37.97 MB / 309.2 MB, free: 5.961 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.001447/0.001447, allocations: 63.91 kB / 431.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1446, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.009346/0.154, allocations: 6.477 MB / 493.5 MB, free: 1.836 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005054/0.1591, allocations: 2.486 MB / 496 MB, free: 15.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007503/0.1599, allocations: 27.88 kB / 496 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.1613, allocations: 433.8 kB / 496.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001771/0.1631, allocations: 0.5912 MB / 497.1 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.1645, allocations: 499.1 kB / 497.6 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002536/0.1671, allocations: 1.953 MB / 499.5 MB, free: 11.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.1686, allocations: 0.861 MB / 0.4886 GB, free: 10.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001505/0.1701, allocations: 0.7712 MB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.1717, allocations: 0.9701 MB / 0.4903 GB, free: 9.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002344/0.1719, allocations: 160 kB / 0.4905 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.1731, allocations: 0.6398 MB / 0.4911 GB, free: 8.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006792/0.1738, allocations: 0.6393 MB / 0.4917 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007959/0.1746, allocations: 0.677 MB / 0.4924 GB, free: 7.113 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00219/0.1768, allocations: 2.045 MB / 0.4944 GB, free: 5.062 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.822e-06/0.1768, allocations: 0 / 0.4944 GB, free: 5.062 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.1768, allocations: 0 / 0.4944 GB, free: 5.062 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.422e-05/0.1769, allocations: 0 / 0.4944 GB, free: 5.062 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.005082/0.182, allocations: 1.904 MB / 0.4963 GB, free: 3.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.182, allocations: 15.89 kB / 0.4963 GB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000785/0.1828, allocations: 163.5 kB / 0.4964 GB, free: 2.898 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.185, allocations: 0.9712 MB / 0.4974 GB, free: 1.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006246/0.1856, allocations: 0.4989 MB / 0.4979 GB, free: 1.316 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002759/0.1859, allocations: 103.9 kB / 0.498 GB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004269/0.1902, allocations: 2.011 MB / 0.4999 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.998e-05/0.1902, allocations: 0 / 0.4999 GB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001443/0.1904, allocations: 39.98 kB / 0.5 GB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002229/0.1906, allocations: 89.94 kB / 0.5001 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005037/0.1957, allocations: 2.24 MB / 0.5022 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009859/0.2056, allocations: 5.671 MB / 0.5078 GB, free: 7.012 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004717/0.2103, allocations: 1.789 MB / 0.5095 GB, free: 5.188 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00277/0.2131, allocations: 1.148 MB / 0.5106 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.422e-05/0.2132, allocations: 20.97 kB / 0.5107 GB, free: 4.016 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002989/0.2162, allocations: 1.391 MB / 0.512 GB, free: 2.602 MB / 398.1 MB Notification: Performance of pre-optimization done (n=123): time 3.065e-06/0.2163, allocations: 0 / 0.512 GB, free: 2.602 MB / 398.1 MB Notification: Performance of matching and sorting (n=124): time 0.01418/0.2304, allocations: 5.622 MB / 0.5175 GB, free: 12.92 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001121/0.2306, allocations: 106 kB / 0.5176 GB, free: 12.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007418/0.2313, allocations: 497.9 kB / 0.5181 GB, free: 12.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.2315, allocations: 65.62 kB / 0.5182 GB, free: 12.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003167/0.2318, allocations: 360.7 kB / 0.5185 GB, free: 11.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003974/0.2322, allocations: 418.1 kB / 0.5189 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004295/0.2327, allocations: 222.8 kB / 0.5191 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000183/0.2329, allocations: 398.7 kB / 0.5195 GB, free: 10.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002057/0.2349, allocations: 1.021 MB / 0.5205 GB, free: 9.816 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002122/0.2371, allocations: 1.176 MB / 0.5216 GB, free: 8.598 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003951/0.241, allocations: 2.039 MB / 0.5236 GB, free: 6.52 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.2411, allocations: 0 / 0.5236 GB, free: 6.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01098/0.252, allocations: 3.903 MB / 0.5274 GB, free: 2.598 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001358/0.2522, allocations: 61.92 kB / 0.5275 GB, free: 2.531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.276e-05/0.2523, allocations: 8 kB / 0.5275 GB, free: 2.523 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005974/0.2582, allocations: 2.069 MB / 0.5295 GB, free: 460 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.2593, allocations: 191.7 kB / 0.5297 GB, free: 268 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.324/0.5833, allocations: 11.3 MB / 0.5407 GB, free: 49.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.585, allocations: 171.1 kB / 0.5409 GB, free: 49.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000179/0.5852, allocations: 78.27 kB / 0.541 GB, free: 49.19 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.0009566/0.5862, allocations: 369.3 kB / 0.5413 GB, free: 48.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003553/0.5865, allocations: 88.55 kB / 0.5414 GB, free: 48.98 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/0.5926, allocations: 2.348 MB / 0.5437 GB, free: 48.26 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.389e-05/0.5927, allocations: 30.58 kB / 0.5437 GB, free: 48.26 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.5927, allocations: 4.938 kB / 0.5437 GB, free: 48.26 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5927, allocations: 11.05 kB / 0.5438 GB, free: 48.25 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008032/0.6008, allocations: 4.1 MB / 0.5478 GB, free: 46.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/0.6008, allocations: 2.688 kB / 0.5478 GB, free: 46.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01093/0.6118, allocations: 2.023 MB / 0.5497 GB, free: 46.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-05/0.6118, allocations: 7.812 kB / 0.5497 GB, free: 46.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002956/0.6121, allocations: 37.19 kB / 0.5498 GB, free: 45.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.309e-05/0.6121, allocations: 10 kB / 0.5498 GB, free: 45.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.6122, allocations: 2 kB / 0.5498 GB, free: 45.98 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008314/0.6205, allocations: 3.87 MB / 0.5536 GB, free: 43.99 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005389/0.621, allocations: 335.3 kB / 0.5539 GB, free: 43.77 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/0.6213, allocations: 90.94 kB / 0.554 GB, free: 43.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.6226, allocations: 184.1 kB / 0.5542 GB, free: 43.63 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003813/0.623, allocations: 195.5 kB / 0.5543 GB, free: 43.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.707e-05/0.6231, allocations: 42.78 kB / 0.5544 GB, free: 43.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003706/0.6235, allocations: 346.6 kB / 0.5547 GB, free: 43.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6235, allocations: 0 / 0.5547 GB, free: 43.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001265/0.6248, allocations: 354.6 kB / 0.555 GB, free: 43.19 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.0003943/0.6252, allocations: 222.5 kB / 0.5553 GB, free: 42.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0064/0.6316, allocations: 2.987 MB / 0.5582 GB, free: 39.96 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.6317, allocations: 0 / 0.5582 GB, free: 39.96 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005997/0.6377, allocations: 1.94 MB / 0.5601 GB, free: 38.03 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.6388, allocations: 191.1 kB / 0.5603 GB, free: 37.86 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006824/0.6457, allocations: 3.324 MB / 0.5635 GB, free: 34.53 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.6463, allocations: 1.148 MB / 0.5646 GB, free: 33.36 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0008977/0.6472, allocations: 322.9 kB / 0.5649 GB, free: 33.04 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003864/0.6476, allocations: 71.42 kB / 0.565 GB, free: 32.96 MB / 414.1 MB Notification: Performance of SimCode: time 1.543e-06/0.6476, allocations: 4 kB / 0.565 GB, free: 32.96 MB / 414.1 MB Notification: Performance of Templates: time 0.02979/0.6774, allocations: 24.61 MB / 0.589 GB, free: 8.344 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)