Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001029/0.001029, allocations: 191 kB / 18.63 MB, free: 4.367 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1723/0.1723, allocations: 38.03 MB / 330.5 MB, free: 8.781 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.59 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1053, allocations: 58.06 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad): time 0.007795/0.1132, allocations: 5.962 MB / 464.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002657/0.1159, allocations: 1.57 MB / 465.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002833/0.1162, allocations: 27.81 kB / 465.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004515/0.1167, allocations: 134.9 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007371/0.1174, allocations: 366.1 kB / 466.4 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006718/0.1181, allocations: 315.5 kB / 466.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001359/0.1195, allocations: 1.337 MB / 468 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004657/0.12, allocations: 364.6 kB / 468.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009255/0.1209, allocations: 0.5218 MB / 468.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.122, allocations: 0.5568 MB / 469.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000168/0.1222, allocations: 92 kB / 469.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001976/0.1224, allocations: 88 kB / 469.6 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003411/0.1227, allocations: 339.3 kB / 470 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003799/0.1231, allocations: 418.3 kB / 470.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008861/0.124, allocations: 1.063 MB / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.124, allocations: 0 / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.124, allocations: 0 / 471.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.1241, allocations: 0 / 471.4 MB, free: 10.16 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.002687/0.1267, allocations: 1.196 MB / 472.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.749e-05/0.1268, allocations: 11.89 kB / 472.6 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001696/0.127, allocations: 84.09 kB / 472.7 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001442/0.1284, allocations: 0.6667 MB / 473.4 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004034/0.1288, allocations: 331.4 kB / 473.7 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.129, allocations: 67.92 kB / 473.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00207/0.1311, allocations: 1.042 MB / 474.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.1311, allocations: 0 / 474.8 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.186e-05/0.1312, allocations: 28 kB / 474.8 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.387e-05/0.1312, allocations: 20 kB / 474.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.1337, allocations: 1.081 MB / 475.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005028/0.1387, allocations: 3.193 MB / 479.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002104/0.1408, allocations: 0.7495 MB / 479.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001263/0.1421, allocations: 0.5368 MB / 480.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.191e-05/0.1422, allocations: 4.438 kB / 480.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.1436, allocations: 0.6187 MB / 481 MB, free: 212 kB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 3.727e-06/0.1437, allocations: 7.984 kB / 481.1 MB, free: 204 kB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.003706/0.1474, allocations: 1.364 MB / 482.4 MB, free: 14.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1475, allocations: 144.5 kB / 482.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004665/0.148, allocations: 385.9 kB / 482.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.404e-05/0.148, allocations: 41.64 kB / 483 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002471/0.1483, allocations: 300.3 kB / 483.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.1484, allocations: 165.7 kB / 483.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003067/0.1488, allocations: 114.2 kB / 483.5 MB, free: 13.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001848/0.1489, allocations: 358.8 kB / 483.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009895/0.1499, allocations: 464.8 kB / 484.3 MB, free: 12.83 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/0.151, allocations: 0.5484 MB / 484.9 MB, free: 12.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001831/0.1529, allocations: 0.8895 MB / 485.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.087e-06/0.1529, allocations: 0 / 485.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00231/0.1552, allocations: 1.09 MB / 486.9 MB, free: 10.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.994e-05/0.1553, allocations: 53.61 kB / 486.9 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.1553, allocations: 4 kB / 486.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.1553, allocations: 8 kB / 486.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00518/0.1605, allocations: 1.104 MB / 488 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007608/0.1681, allocations: 4.697 MB / 492.7 MB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007883/0.169, allocations: 107.4 kB / 492.8 MB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.118e-05/0.1691, allocations: 48.03 kB / 492.9 MB, free: 3.902 MB / 366.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: 14 (inverter.modulator.t0,$PRE.inverter.modulator.t0,inverter.modulator.sigdel_t,$PRE.inverter.modulator.sigdel_t,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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004427/0.1695, allocations: 251.3 kB / 493.1 MB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.299e-05/0.1696, allocations: 51.38 kB / 493.2 MB, free: 3.594 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.1721, allocations: 0.9926 MB / 494.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.1722, allocations: 4 kB / 494.2 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1722, allocations: 8 kB / 494.2 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.1722, allocations: 0 / 494.2 MB, free: 2.582 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003748/0.1759, allocations: 2.129 MB / 496.3 MB, free: 380 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.176, allocations: 4 kB / 496.3 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00618/0.1821, allocations: 1.283 MB / 497.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.758e-06/0.1822, allocations: 4 kB / 497.6 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.848e-05/0.1822, allocations: 15.98 kB / 497.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.1822, allocations: 4 kB / 497.6 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.1823, allocations: 7.938 kB / 497.6 MB, free: 15.05 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003716/0.186, allocations: 1.693 MB / 499.3 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003498/0.1863, allocations: 200.5 kB / 499.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.1865, allocations: 27.98 kB / 499.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006177/0.1871, allocations: 87.89 kB / 499.6 MB, free: 12.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.1873, allocations: 95.72 kB / 499.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-05/0.1874, allocations: 19.98 kB / 499.8 MB, free: 12.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000281/0.1877, allocations: 267.2 kB / 0.4883 GB, free: 12.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1877, allocations: 7.938 kB / 0.4883 GB, free: 12.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006037/0.1883, allocations: 187.5 kB / 0.4885 GB, free: 12.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i) * Number of discrete variables: 8 ($whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001728/0.1885, allocations: 130.3 kB / 0.4886 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006704/0.1952, allocations: 2.074 MB / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.1952, allocations: 0 / 0.4906 GB, free: 10.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003229/0.1984, allocations: 0.9681 MB / 0.4916 GB, free: 9.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007891/0.1992, allocations: 132.7 kB / 0.4917 GB, free: 9.102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003391/0.2026, allocations: 1.586 MB / 0.4933 GB, free: 7.469 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005721/0.2032, allocations: 0.933 MB / 0.4942 GB, free: 6.512 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004519/0.2037, allocations: 156.6 kB / 0.4943 GB, free: 6.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.2039, allocations: 39.44 kB / 0.4944 GB, free: 6.32 MB / 382.1 MB Notification: Performance of SimCode: time 6.81e-07/0.2039, allocations: 0 / 0.4944 GB, free: 6.32 MB / 382.1 MB Notification: Performance of Templates: time 0.1886/0.3924, allocations: 8.662 MB / 0.5028 GB, free: 57.12 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToLoad.pipe 2>&1)