Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.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.InverterAvToGrid,tolerance=1e-06,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.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,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.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 95.2 kB / 16.5 MB, free: 6.688 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.001849/0.001849, allocations: 193.2 kB / 17.42 MB, free: 6.09 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.475/1.475, allocations: 222.9 MB / 241.1 MB, free: 13.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1805/0.1805, allocations: 38.04 MB / 329.3 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.00146, allocations: 66.81 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1246, allocations: 58.06 MB / 456.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009342/0.134, allocations: 7.732 MB / 463.9 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003629/0.1376, allocations: 2.267 MB / 466.2 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004011/0.138, allocations: 55.62 kB / 466.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00113/0.1392, allocations: 410.3 kB / 466.6 MB, free: 14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006589/0.1398, allocations: 382.3 kB / 467 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006823/0.1405, allocations: 311.5 kB / 467.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.1417, allocations: 1.504 MB / 468.8 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005924/0.1423, allocations: 444.5 kB / 469.2 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000463/0.1428, allocations: 394.2 kB / 469.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006756/0.1435, allocations: 0.5957 MB / 470.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.632e-05/0.1436, allocations: 44 kB / 470.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004856/0.1441, allocations: 271.5 kB / 470.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002995/0.1444, allocations: 351.1 kB / 470.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003885/0.1448, allocations: 401.9 kB / 471.3 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00093/0.1457, allocations: 1.005 MB / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1458, allocations: 0 / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1458, allocations: 0 / 472.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1458, allocations: 0 / 472.3 MB, free: 8.332 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.002147/0.1479, allocations: 1.129 MB / 473.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.148, allocations: 8.031 kB / 473.4 MB, free: 7.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007156/0.1487, allocations: 123.8 kB / 473.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001022/0.1497, allocations: 0.5806 MB / 474.1 MB, free: 6.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.233e-05/0.1498, allocations: 45.67 kB / 474.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001742/0.15, allocations: 80.03 kB / 474.2 MB, free: 6.277 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001476/0.1515, allocations: 1.01 MB / 475.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.1515, allocations: 7.938 kB / 475.2 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.1516, allocations: 24 kB / 475.3 MB, free: 5.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002166/0.1518, allocations: 69.95 kB / 475.3 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.1533, allocations: 0.9797 MB / 476.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004584/0.1579, allocations: 3.272 MB / 479.6 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.159, allocations: 0.681 MB / 480.3 MB, free: 60 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000605/0.1596, allocations: 427.4 kB / 480.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.1597, allocations: 12.55 kB / 480.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.1597, allocations: 43.12 kB / 480.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=73): time 2.665e-06/0.1597, allocations: 0 / 480.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=75): time 0.003665/0.1634, allocations: 2.431 MB / 483.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/0.1635, allocations: 85.61 kB / 483.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.1639, allocations: 445.8 kB / 483.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.309e-05/0.164, allocations: 37.7 kB / 483.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.1642, allocations: 355.6 kB / 484.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/0.1644, allocations: 268.1 kB / 484.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002102/0.1646, allocations: 146.6 kB / 484.5 MB, free: 11.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1648, allocations: 382.7 kB / 484.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/0.1653, allocations: 337.8 kB / 485.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006018/0.1659, allocations: 0.5185 MB / 485.7 MB, free: 10.39 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.005124/0.171, allocations: 2.248 MB / 487.9 MB, free: 8.051 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.171, allocations: 4 kB / 488 MB, free: 8.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001604/0.1726, allocations: 1.09 MB / 489 MB, free: 6.93 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1727, allocations: 12.03 kB / 489.1 MB, free: 6.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.1727, allocations: 8 kB / 489.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001474/0.1728, allocations: 40.83 kB / 489.1 MB, free: 6.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/0.1737, allocations: 191.6 kB / 489.3 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/0.1748, allocations: 1.393 MB / 490.7 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004129/0.1752, allocations: 35.97 kB / 490.7 MB, free: 5.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.03e-05/0.1753, allocations: 28 kB / 490.7 MB, free: 5.086 MB / 366.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 92 * Array equations: 2 * Algorithm blocks: 0 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003488/0.1756, allocations: 268.4 kB / 491 MB, free: 4.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/0.1758, allocations: 71.23 kB / 491.1 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001494/0.1773, allocations: 0.97 MB / 492 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/0.1773, allocations: 27.92 kB / 492.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1773, allocations: 0 / 492.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1774, allocations: 4 kB / 492.1 MB, free: 3.715 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003238/0.1806, allocations: 2.009 MB / 494.1 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.1806, allocations: 4 kB / 494.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006976/0.1813, allocations: 147.9 kB / 494.2 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.1815, allocations: 48.77 kB / 494.3 MB, free: 1.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.545e-05/0.1815, allocations: 24.48 kB / 494.3 MB, free: 1.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001071/0.1826, allocations: 1.382 MB / 495.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.1826, allocations: 11.88 kB / 495.7 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.1854, allocations: 1.532 MB / 497.2 MB, free: 14.19 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.1856, allocations: 140.3 kB / 497.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.1858, allocations: 20 kB / 497.4 MB, free: 14.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005663/0.1864, allocations: 27.97 kB / 497.4 MB, free: 13.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/0.1865, allocations: 68.36 kB / 497.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.55e-05/0.1866, allocations: 28 kB / 497.5 MB, free: 13.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005042/0.1871, allocations: 295.1 kB / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1871, allocations: 0 / 497.8 MB, free: 13.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009962/0.1881, allocations: 184 kB / 498 MB, free: 13.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 71 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002698/0.1884, allocations: 163.1 kB / 498.1 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.19, allocations: 0.9543 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.19, allocations: 0 / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007031/0.1907, allocations: 0.5186 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008525/0.1916, allocations: 140.6 kB / 499.7 MB, free: 11.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.195, allocations: 2.301 MB / 0.4903 GB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007253/0.1957, allocations: 1.021 MB / 0.4913 GB, free: 8.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006683/0.1964, allocations: 201.4 kB / 0.4915 GB, free: 7.988 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.1966, allocations: 59.42 kB / 0.4915 GB, free: 7.93 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1966, allocations: 0 / 0.4915 GB, free: 7.93 MB / 382.1 MB Notification: Performance of Templates: time 0.01535/0.212, allocations: 7.604 MB / 0.499 GB, free: 388 kB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches