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.001118/0.001118, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001217/0.001217, allocations: 191 kB / 18.63 MB, free: 4.379 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.301/1.301, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1758/0.1758, allocations: 38.05 MB / 330.5 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 65.27 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 58.06 MB / 458.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00739/0.1095, allocations: 6.48 MB / 464.8 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00369/0.1132, allocations: 2.446 MB / 467.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003172/0.1136, allocations: 27.81 kB / 467.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00111/0.1147, allocations: 436.1 kB / 467.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.1158, allocations: 0.5912 MB / 468.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000855/0.1167, allocations: 495 kB / 468.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.1184, allocations: 1.957 MB / 470.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000929/0.1193, allocations: 0.8571 MB / 471.6 MB, free: 10 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007852/0.1201, allocations: 0.7712 MB / 472.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001149/0.1213, allocations: 0.9623 MB / 473.3 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002118/0.1215, allocations: 160 kB / 473.5 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008944/0.1224, allocations: 0.6515 MB / 474.1 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005632/0.123, allocations: 0.6432 MB / 474.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006472/0.1236, allocations: 0.6808 MB / 475.5 MB, free: 6.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001676/0.1253, allocations: 2.034 MB / 477.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1253, allocations: 0 / 477.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1253, allocations: 0 / 477.5 MB, free: 4.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.1254, allocations: 0 / 477.5 MB, free: 4.086 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.004354/0.1297, allocations: 1.912 MB / 479.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1298, allocations: 11.89 kB / 479.4 MB, free: 2.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006846/0.1305, allocations: 171.5 kB / 479.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00233/0.1328, allocations: 0.9673 MB / 480.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005918/0.1334, allocations: 0.495 MB / 481 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002469/0.1337, allocations: 107.9 kB / 481.2 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003776/0.1374, allocations: 2.007 MB / 483.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.1375, allocations: 7.938 kB / 483.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.1376, allocations: 39.89 kB / 483.2 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002088/0.1378, allocations: 85.95 kB / 483.3 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004498/0.1423, allocations: 2.24 MB / 485.5 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009206/0.1516, allocations: 5.66 MB / 491.2 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004181/0.1558, allocations: 1.793 MB / 493 MB, free: 4.211 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002349/0.1581, allocations: 1.144 MB / 494.1 MB, free: 3.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000101/0.1582, allocations: 20.98 kB / 494.1 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002683/0.1609, allocations: 1.383 MB / 495.5 MB, free: 1.637 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 3.967e-06/0.161, allocations: 4 kB / 495.5 MB, free: 1.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01245/0.1734, allocations: 5.622 MB / 0.4894 GB, free: 11.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.639e-05/0.1735, allocations: 102.1 kB / 0.4895 GB, free: 11.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005809/0.1741, allocations: 0.494 MB / 0.49 GB, free: 11.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.1742, allocations: 53.69 kB / 0.49 GB, free: 11.28 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003423/0.1746, allocations: 364.8 kB / 0.4904 GB, free: 10.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003549/0.1749, allocations: 422 kB / 0.4908 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004114/0.1754, allocations: 230.8 kB / 0.491 GB, free: 10.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1755, allocations: 386.8 kB / 0.4914 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/0.1774, allocations: 1.025 MB / 0.4924 GB, free: 8.852 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.1793, allocations: 1.184 MB / 0.4935 GB, free: 7.625 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.1829, allocations: 2.039 MB / 0.4955 GB, free: 5.543 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.183, allocations: 0 / 0.4955 GB, free: 5.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.009978/0.1929, allocations: 3.892 MB / 0.4993 GB, free: 1.633 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.254e-05/0.1931, allocations: 69.61 kB / 0.4994 GB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.1931, allocations: 4 kB / 0.4994 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1909/0.3839, allocations: 2.062 MB / 0.5014 GB, free: 56.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000953/0.3849, allocations: 193.8 kB / 0.5016 GB, free: 56.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0246/0.4095, allocations: 11.3 MB / 0.5126 GB, free: 53.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.411, allocations: 164.2 kB / 0.5128 GB, free: 53.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.4113, allocations: 74.97 kB / 0.5129 GB, free: 53.23 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.0007131/0.412, allocations: 373.6 kB / 0.5132 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/0.4122, allocations: 86.11 kB / 0.5133 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00486/0.4171, allocations: 2.355 MB / 0.5156 GB, free: 52.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.953e-05/0.4171, allocations: 28.55 kB / 0.5156 GB, free: 52.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4171, allocations: 1.25 kB / 0.5156 GB, free: 52.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.4172, allocations: 8.891 kB / 0.5156 GB, free: 52.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007251/0.4244, allocations: 4.109 MB / 0.5197 GB, free: 50.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.4244, allocations: 4.391 kB / 0.5197 GB, free: 50.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009474/0.4339, allocations: 2.016 MB / 0.5216 GB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.549e-05/0.434, allocations: 7.75 kB / 0.5216 GB, free: 49.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001575/0.4341, allocations: 39.58 kB / 0.5217 GB, free: 49.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.396e-06/0.4341, allocations: 7.625 kB / 0.5217 GB, free: 49.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4341, allocations: 9.562 kB / 0.5217 GB, free: 49.41 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006659/0.4408, allocations: 3.865 MB / 0.5255 GB, free: 46.85 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007322/0.4416, allocations: 345.6 kB / 0.5258 GB, free: 46.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.4418, allocations: 87.94 kB / 0.5259 GB, free: 46.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.443, allocations: 183.7 kB / 0.5261 GB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003766/0.4434, allocations: 192.6 kB / 0.5262 GB, free: 46.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.4435, allocations: 43.97 kB / 0.5263 GB, free: 46.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003185/0.4438, allocations: 342.8 kB / 0.5266 GB, free: 45.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4438, allocations: 4 kB / 0.5266 GB, free: 45.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001079/0.4449, allocations: 351.8 kB / 0.5269 GB, free: 45.34 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.0003553/0.4453, allocations: 232.3 kB / 0.5272 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005302/0.4506, allocations: 2.994 MB / 0.5301 GB, free: 42.1 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.4506, allocations: 0 / 0.5301 GB, free: 42.1 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004894/0.4555, allocations: 1.933 MB / 0.532 GB, free: 40.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009672/0.4565, allocations: 183.1 kB / 0.5322 GB, free: 40.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005851/0.4623, allocations: 3.332 MB / 0.5354 GB, free: 36.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004853/0.4628, allocations: 1.145 MB / 0.5365 GB, free: 35.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007473/0.4636, allocations: 314.1 kB / 0.5368 GB, free: 35.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003875/0.464, allocations: 78.14 kB / 0.5369 GB, free: 35.14 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.464, allocations: 0 / 0.5369 GB, free: 35.14 MB / 382.1 MB Notification: Performance of Templates: time 0.02631/0.4903, allocations: 24.61 MB / 0.5609 GB, free: 10.69 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 gbode -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)