Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-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.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,tolerance=1e-05,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_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.001537/0.001537, allocations: 112.6 kB / 17.69 MB, free: 5.441 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.001831/0.001831, allocations: 191 kB / 18.63 MB, free: 4.508 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.433/1.433, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 330.5 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 62.67 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.115, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.008056/0.1231, allocations: 6.472 MB / 464.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004139/0.1273, allocations: 2.45 MB / 467.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003982/0.1277, allocations: 31.81 kB / 467.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.129, allocations: 425.9 kB / 467.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.1302, allocations: 0.5912 MB / 468.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009884/0.1312, allocations: 495.1 kB / 468.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001828/0.1331, allocations: 1.961 MB / 470.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009923/0.1341, allocations: 0.861 MB / 471.6 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008827/0.135, allocations: 0.7634 MB / 472.4 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.1362, allocations: 0.9701 MB / 473.3 MB, free: 8.281 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000223/0.1365, allocations: 164 kB / 473.5 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1375, allocations: 0.6476 MB / 474.1 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006618/0.1381, allocations: 0.6432 MB / 474.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007631/0.1389, allocations: 0.673 MB / 475.5 MB, free: 6.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002037/0.141, allocations: 2.037 MB / 477.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.141, allocations: 0 / 477.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.141, allocations: 0 / 477.5 MB, free: 4.109 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.141, allocations: 0 / 477.5 MB, free: 4.109 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.004627/0.1456, allocations: 1.912 MB / 479.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.1457, allocations: 15.89 kB / 479.4 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007288/0.1464, allocations: 167.4 kB / 479.6 MB, free: 1.938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/0.1487, allocations: 0.9712 MB / 480.6 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006452/0.1494, allocations: 0.495 MB / 481 MB, free: 368 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000335/0.1497, allocations: 103.9 kB / 481.1 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004174/0.1539, allocations: 2.019 MB / 483.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.009e-05/0.1539, allocations: 0 / 483.2 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001286/0.1541, allocations: 35.94 kB / 483.2 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002204/0.1543, allocations: 93.94 kB / 483.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004768/0.1591, allocations: 2.244 MB / 485.5 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.1693, allocations: 5.652 MB / 491.2 MB, free: 6.059 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004558/0.1739, allocations: 1.799 MB / 493 MB, free: 4.227 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002548/0.1764, allocations: 1.144 MB / 494.1 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001064/0.1765, allocations: 20.98 kB / 494.2 MB, free: 3.055 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003045/0.1796, allocations: 1.391 MB / 495.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.096e-06/0.1796, allocations: 0 / 495.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01337/0.193, allocations: 5.618 MB / 0.4894 GB, free: 11.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.874e-05/0.1931, allocations: 102.1 kB / 0.4895 GB, free: 11.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006644/0.1938, allocations: 0.4901 MB / 0.49 GB, free: 11.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001147/0.1939, allocations: 57.69 kB / 0.49 GB, free: 11.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003042/0.1942, allocations: 360.7 kB / 0.4904 GB, free: 10.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003693/0.1946, allocations: 426 kB / 0.4908 GB, free: 10.51 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004461/0.195, allocations: 222.8 kB / 0.491 GB, free: 10.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.1952, allocations: 390.8 kB / 0.4914 GB, free: 9.895 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001942/0.1972, allocations: 1.025 MB / 0.4924 GB, free: 8.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/0.1993, allocations: 1.176 MB / 0.4935 GB, free: 7.652 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003755/0.2031, allocations: 2.043 MB / 0.4955 GB, free: 5.566 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.2031, allocations: 0 / 0.4955 GB, free: 5.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01024/0.2133, allocations: 3.899 MB / 0.4993 GB, free: 1.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.412e-05/0.2134, allocations: 57.67 kB / 0.4994 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.2135, allocations: 16.19 kB / 0.4994 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2258/0.4393, allocations: 2.062 MB / 0.5014 GB, free: 56.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.4404, allocations: 188.7 kB / 0.5016 GB, free: 56.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02655/0.4669, allocations: 11.31 MB / 0.5126 GB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001508/0.4685, allocations: 162 kB / 0.5128 GB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003894/0.4689, allocations: 76.23 kB / 0.5129 GB, free: 53.44 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.0008625/0.4698, allocations: 378 kB / 0.5132 GB, free: 53.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003398/0.4701, allocations: 84.14 kB / 0.5133 GB, free: 53.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005458/0.4756, allocations: 2.357 MB / 0.5156 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.796e-05/0.4756, allocations: 30.92 kB / 0.5156 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4757, allocations: 1.25 kB / 0.5156 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4757, allocations: 7.031 kB / 0.5156 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007749/0.4834, allocations: 4.1 MB / 0.5197 GB, free: 50.42 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/0.4835, allocations: 2.438 kB / 0.5197 GB, free: 50.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009282/0.4928, allocations: 2.03 MB / 0.5216 GB, free: 49.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.916e-05/0.4928, allocations: 3.906 kB / 0.5216 GB, free: 49.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002455/0.4931, allocations: 35.53 kB / 0.5217 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.969e-06/0.4931, allocations: 7.75 kB / 0.5217 GB, free: 49.63 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.4931, allocations: 11.77 kB / 0.5217 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006707/0.4998, allocations: 3.862 MB / 0.5255 GB, free: 47.12 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006579/0.5005, allocations: 340.2 kB / 0.5258 GB, free: 46.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/0.5007, allocations: 83.94 kB / 0.5259 GB, free: 46.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.5019, allocations: 191.5 kB / 0.5261 GB, free: 46.53 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/0.5023, allocations: 192.6 kB / 0.5262 GB, free: 46.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001053/0.5024, allocations: 35.97 kB / 0.5263 GB, free: 46.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003459/0.5028, allocations: 350.8 kB / 0.5266 GB, free: 45.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5028, allocations: 7.375 kB / 0.5266 GB, free: 45.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001114/0.5039, allocations: 355.6 kB / 0.527 GB, free: 45.62 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.0003563/0.5043, allocations: 215.1 kB / 0.5272 GB, free: 45.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005466/0.5097, allocations: 3.002 MB / 0.5301 GB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/0.5098, allocations: 0 / 0.5301 GB, free: 42.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005034/0.5148, allocations: 1.937 MB / 0.532 GB, free: 40.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.516, allocations: 182.1 kB / 0.5322 GB, free: 40.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.522, allocations: 3.323 MB / 0.5354 GB, free: 36.98 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005629/0.5226, allocations: 1.142 MB / 0.5365 GB, free: 35.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000861/0.5235, allocations: 325.7 kB / 0.5368 GB, free: 35.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003717/0.5239, allocations: 75.42 kB / 0.5369 GB, free: 35.42 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5239, allocations: 0 / 0.5369 GB, free: 35.42 MB / 382.1 MB Notification: Performance of Templates: time 0.02891/0.5528, allocations: 24.61 MB / 0.5609 GB, free: 10.95 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)