Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,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.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.InverterToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001004/0.001004, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.336/1.336, allocations: 222.9 MB / 241.5 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.2401/0.2401, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001392/0.001392, allocations: 69 kB / 398.8 MB, free: 34.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1119, allocations: 58.06 MB / 456.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.008351/0.1203, allocations: 6.549 MB / 463.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002988/0.1233, allocations: 1.652 MB / 465.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003471/0.1237, allocations: 23.88 kB / 465.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005144/0.1242, allocations: 170.7 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009008/0.1252, allocations: 441.8 kB / 465.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006848/0.1259, allocations: 347.5 kB / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.1272, allocations: 1.5 MB / 467.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004816/0.1277, allocations: 405.7 kB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007855/0.1285, allocations: 0.5918 MB / 468.5 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000837/0.1294, allocations: 0.6465 MB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001461/0.1295, allocations: 100 kB / 469.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000175/0.1297, allocations: 100 kB / 469.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003829/0.1301, allocations: 419 kB / 469.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004451/0.1306, allocations: 466 kB / 470.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001023/0.1316, allocations: 1.165 MB / 471.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.1316, allocations: 0 / 471.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.1316, allocations: 0 / 471.4 MB, free: 9.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.1316, allocations: 3.938 kB / 471.4 MB, free: 9.492 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002596/0.1342, allocations: 1.313 MB / 472.7 MB, free: 8.113 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1343, allocations: 15.89 kB / 472.7 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.1345, allocations: 92 kB / 472.8 MB, free: 8.008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001207/0.1357, allocations: 0.6976 MB / 473.5 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003959/0.1361, allocations: 343 kB / 473.8 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001242/0.1362, allocations: 64 kB / 473.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002186/0.1384, allocations: 1.145 MB / 475.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1384, allocations: 0 / 475.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.458e-05/0.1385, allocations: 28 kB / 475.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.1387, allocations: 37.28 kB / 475.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002648/0.1413, allocations: 1.176 MB / 476.3 MB, free: 4.398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004975/0.1463, allocations: 3.496 MB / 479.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002495/0.1488, allocations: 0.9574 MB / 480.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.1505, allocations: 0.6826 MB / 481.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.967e-05/0.1506, allocations: 8.562 kB / 481.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001516/0.1521, allocations: 0.685 MB / 482.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=59): time 2.555e-06/0.1521, allocations: 0 / 482.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.01931/0.1714, allocations: 5.666 MB / 487.8 MB, free: 8.672 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.467e-05/0.1715, allocations: 89.67 kB / 487.9 MB, free: 8.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004972/0.172, allocations: 481.7 kB / 488.3 MB, free: 8.082 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.015e-05/0.1721, allocations: 37.7 kB / 488.4 MB, free: 8.039 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.1723, allocations: 328.3 kB / 488.7 MB, free: 7.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001643/0.1725, allocations: 201.1 kB / 488.9 MB, free: 7.516 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.1727, allocations: 134.2 kB / 489 MB, free: 7.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1728, allocations: 370.8 kB / 489.4 MB, free: 7.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001053/0.1739, allocations: 0.509 MB / 489.9 MB, free: 6.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.175, allocations: 0.6219 MB / 490.5 MB, free: 5.84 MB / 366.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.006993/0.182, allocations: 3.131 MB / 493.7 MB, free: 2.629 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.182, allocations: 0 / 493.7 MB, free: 2.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007955/0.19, allocations: 2.502 MB / 496.2 MB, free: 112 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.085e-05/0.1901, allocations: 52.81 kB / 496.2 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.1901, allocations: 4 kB / 496.2 MB, free: 52 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.1926, allocations: 1.09 MB / 497.3 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004807/0.1931, allocations: 111.8 kB / 497.4 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0162/0.2093, allocations: 6.872 MB / 0.4925 GB, free: 7.836 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008505/0.2101, allocations: 87.95 kB / 0.4925 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-05/0.2102, allocations: 39.97 kB / 0.4926 GB, free: 7.711 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * 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 {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0004697/0.2107, allocations: 283.5 kB / 0.4929 GB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.2108, allocations: 59.25 kB / 0.4929 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007999/0.2188, allocations: 2.429 MB / 0.4953 GB, free: 4.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2189, allocations: 8 kB / 0.4953 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.125e-06/0.2189, allocations: 0 / 0.4953 GB, free: 4.91 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.749e-06/0.2189, allocations: 8 kB / 0.4953 GB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009594/0.2285, allocations: 3.56 MB / 0.4988 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.2285, allocations: 7.938 kB / 0.4988 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003796/0.2289, allocations: 75.89 kB / 0.4989 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002435/0.2314, allocations: 1.097 MB / 0.4999 GB, free: 64 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.199e-05/0.2315, allocations: 19.98 kB / 0.4999 GB, free: 44 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2264/0.4579, allocations: 6.831 MB / 0.5066 GB, free: 55.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.458, allocations: 2.672 kB / 0.5066 GB, free: 55.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009751/0.4677, allocations: 3.199 MB / 0.5097 GB, free: 55.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003616/0.4681, allocations: 219.7 kB / 0.51 GB, free: 54.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.4683, allocations: 32.75 kB / 0.51 GB, free: 54.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007622/0.469, allocations: 97.66 kB / 0.5101 GB, free: 54.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004716/0.4695, allocations: 164.9 kB / 0.5102 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.573e-05/0.4696, allocations: 29.56 kB / 0.5103 GB, free: 54.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004086/0.47, allocations: 321.9 kB / 0.5106 GB, free: 54.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.47, allocations: 0.5 kB / 0.5106 GB, free: 54.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009095/0.4709, allocations: 228.4 kB / 0.5108 GB, free: 54.75 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * 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 (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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 {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001721/0.4711, allocations: 138.5 kB / 0.5109 GB, free: 54.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004538/0.4756, allocations: 1.844 MB / 0.5127 GB, free: 54.08 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.4757, allocations: 0 / 0.5127 GB, free: 54.08 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/0.4788, allocations: 1.11 MB / 0.5138 GB, free: 53.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/0.4798, allocations: 163.3 kB / 0.514 GB, free: 53.69 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003054/0.4829, allocations: 1.705 MB / 0.5156 GB, free: 52.85 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004608/0.4833, allocations: 1.004 MB / 0.5166 GB, free: 52.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004065/0.4837, allocations: 124.9 kB / 0.5167 GB, free: 52.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001224/0.4839, allocations: 48.81 kB / 0.5168 GB, free: 52.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.503e-06/0.4839, allocations: 0 / 0.5168 GB, free: 52.07 MB / 382.1 MB Notification: Performance of Templates: time 0.02193/0.5058, allocations: 16.8 MB / 0.5332 GB, free: 39.04 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches