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.00128/0.00128, allocations: 102.6 kB / 17.59 MB, free: 5.426 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.001303/0.001303, allocations: 191.3 kB / 18.52 MB, free: 4.5 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.313/1.313, allocations: 222.9 MB / 242.2 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1703/0.1703, allocations: 38.02 MB / 330.4 MB, free: 8.844 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001256, allocations: 58.75 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08881/0.09008, allocations: 58.06 MB / 457.5 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007256/0.09737, allocations: 6.492 MB / 464 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003797/0.1012, allocations: 2.434 MB / 466.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004595/0.1017, allocations: 31.81 kB / 466.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001197/0.1029, allocations: 427.2 kB / 466.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001342/0.1042, allocations: 0.5951 MB / 467.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001072/0.1053, allocations: 499 kB / 468 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002024/0.1074, allocations: 1.949 MB / 469.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001242/0.1086, allocations: 0.8532 MB / 470.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001278/0.1099, allocations: 0.7673 MB / 471.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001513/0.1115, allocations: 0.9663 MB / 472.5 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004275/0.1119, allocations: 160 kB / 472.7 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.1133, allocations: 0.6904 MB / 473.4 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007901/0.1141, allocations: 0.6432 MB / 474 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008606/0.115, allocations: 0.6692 MB / 474.7 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001948/0.1169, allocations: 2.014 MB / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.117, allocations: 0 / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.117, allocations: 0 / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.117, 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.0045/0.1215, allocations: 1.908 MB / 478.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.1216, allocations: 15.89 kB / 478.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007034/0.1223, allocations: 167.5 kB / 478.8 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001968/0.1242, allocations: 0.9284 MB / 479.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005631/0.1248, allocations: 0.491 MB / 480.2 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002423/0.1251, allocations: 107.8 kB / 480.3 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003688/0.1288, allocations: 2.019 MB / 482.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.1288, allocations: 4 kB / 482.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.1289, allocations: 39.97 kB / 482.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002008/0.1292, allocations: 85.95 kB / 482.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004863/0.134, allocations: 2.244 MB / 484.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008352/0.1424, allocations: 5.687 MB / 490.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004362/0.1468, allocations: 1.789 MB / 492.2 MB, free: 4.934 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002368/0.1492, allocations: 1.155 MB / 493.3 MB, free: 3.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.948e-05/0.1492, allocations: 12.98 kB / 493.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0027/0.152, allocations: 1.395 MB / 494.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 2.805e-06/0.152, allocations: 0 / 494.7 MB, free: 2.348 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.0128/0.1648, allocations: 5.622 MB / 0.4886 GB, free: 12.67 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.1649, allocations: 109.9 kB / 0.4887 GB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005663/0.1654, allocations: 497.9 kB / 0.4892 GB, free: 12.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.1656, allocations: 57.69 kB / 0.4893 GB, free: 11.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002658/0.1658, allocations: 360.8 kB / 0.4896 GB, free: 11.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.1662, allocations: 422 kB / 0.49 GB, free: 11.21 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004094/0.1666, allocations: 226.8 kB / 0.4902 GB, free: 10.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.1668, allocations: 390.8 kB / 0.4906 GB, free: 10.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.1687, allocations: 1.025 MB / 0.4916 GB, free: 9.566 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/0.1707, allocations: 1.18 MB / 0.4928 GB, free: 8.344 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.1744, allocations: 2.043 MB / 0.4948 GB, free: 6.258 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-06/0.1744, allocations: 0 / 0.4948 GB, free: 6.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01037/0.1848, allocations: 3.895 MB / 0.4986 GB, free: 2.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.393e-05/0.1849, allocations: 65.7 kB / 0.4986 GB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.532e-05/0.1849, allocations: 4 kB / 0.4986 GB, free: 2.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005706/0.1907, allocations: 2.065 MB / 0.5007 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001026/0.1917, allocations: 191.7 kB / 0.5008 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2142/0.4059, allocations: 11.3 MB / 0.5119 GB, free: 53.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001328/0.4073, allocations: 161.6 kB / 0.512 GB, free: 53.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.4074, allocations: 78.61 kB / 0.5121 GB, free: 53.52 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.0005849/0.408, allocations: 384.5 kB / 0.5125 GB, free: 53.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/0.4083, allocations: 83.16 kB / 0.5125 GB, free: 53.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005087/0.4134, allocations: 2.35 MB / 0.5148 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.855e-05/0.4134, allocations: 32.77 kB / 0.5149 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.4134, allocations: 3.938 kB / 0.5149 GB, free: 52.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.4134, allocations: 4.859 kB / 0.5149 GB, free: 52.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007201/0.4206, allocations: 4.111 MB / 0.5189 GB, free: 50.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.4207, allocations: 3.938 kB / 0.5189 GB, free: 50.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01034/0.431, allocations: 2.022 MB / 0.5209 GB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.829e-05/0.4311, allocations: 9.406 kB / 0.5209 GB, free: 49.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001815/0.4313, allocations: 32.44 kB / 0.5209 GB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.234e-06/0.4313, allocations: 7.938 kB / 0.5209 GB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4313, allocations: 5.594 kB / 0.5209 GB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00702/0.4383, allocations: 3.864 MB / 0.5247 GB, free: 47.87 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/0.4388, allocations: 346 kB / 0.525 GB, free: 47.53 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.4391, allocations: 80.83 kB / 0.5251 GB, free: 47.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/0.4404, allocations: 187.7 kB / 0.5253 GB, free: 47.27 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003626/0.4407, allocations: 199.6 kB / 0.5255 GB, free: 47.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.878e-05/0.4408, allocations: 39.97 kB / 0.5255 GB, free: 47.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003393/0.4412, allocations: 350.8 kB / 0.5259 GB, free: 46.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4412, allocations: 0 / 0.5259 GB, free: 46.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001037/0.4422, allocations: 350.5 kB / 0.5262 GB, free: 46.36 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.0003328/0.4426, allocations: 222.6 kB / 0.5264 GB, free: 46.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006631/0.4492, allocations: 3.758 MB / 0.5301 GB, free: 42.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.4492, allocations: 0 / 0.5301 GB, free: 42.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005262/0.4545, allocations: 1.895 MB / 0.5319 GB, free: 40.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001026/0.4555, allocations: 186.4 kB / 0.5321 GB, free: 40.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006461/0.462, allocations: 3.438 MB / 0.5355 GB, free: 36.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/0.4626, allocations: 1.137 MB / 0.5366 GB, free: 35.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004755/0.4631, allocations: 83.41 kB / 0.5366 GB, free: 35.63 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4631, allocations: 1.859 kB / 0.5366 GB, free: 35.63 MB / 382.1 MB Notification: Performance of Templates: time 0.01987/0.4829, allocations: 19.04 MB / 0.5552 GB, free: 16.66 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 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches