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.001849/0.001849, allocations: 111.2 kB / 17.68 MB, free: 5.332 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.00184/0.001841, allocations: 192 kB / 18.62 MB, free: 4.41 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.41/1.41, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1887/0.1887, allocations: 38.04 MB / 330.5 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001322/0.001322, allocations: 61.55 kB / 400.2 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 58.07 MB / 458.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008204/0.1222, allocations: 6.48 MB / 464.8 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.1262, allocations: 1.881 MB / 466.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004781/0.1267, allocations: 31.81 kB / 466.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.1281, allocations: 445.9 kB / 467.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001048/0.1291, allocations: 409.9 kB / 467.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009479/0.1301, allocations: 351.2 kB / 467.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001034/0.1311, allocations: 1.036 MB / 468.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006544/0.1318, allocations: 496.5 kB / 469.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00059/0.1324, allocations: 462.2 kB / 469.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007663/0.1332, allocations: 0.5763 MB / 470.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001/0.1333, allocations: 64 kB / 470.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005715/0.1339, allocations: 255.6 kB / 470.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000339/0.1342, allocations: 379.1 kB / 471.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004203/0.1346, allocations: 421.9 kB / 471.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001018/0.1357, allocations: 1.043 MB / 472.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1357, allocations: 4 kB / 472.6 MB, free: 9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1357, allocations: 0 / 472.6 MB, free: 9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.284e-05/0.1357, allocations: 4 kB / 472.6 MB, free: 8.996 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.002458/0.1382, allocations: 1.121 MB / 473.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.1382, allocations: 15.83 kB / 473.7 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008092/0.1391, allocations: 123.8 kB / 473.8 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/0.1404, allocations: 0.6118 MB / 474.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.497e-05/0.1404, allocations: 53.61 kB / 474.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.1406, allocations: 76.06 kB / 474.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.1422, allocations: 1.01 MB / 475.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.1422, allocations: 0 / 475.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.469e-05/0.1423, allocations: 31.98 kB / 475.6 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/0.1425, allocations: 69.95 kB / 475.7 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001424/0.144, allocations: 0.9797 MB / 476.7 MB, free: 4.781 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004823/0.1488, allocations: 3.252 MB / 479.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.1499, allocations: 0.6799 MB / 480.6 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005896/0.1505, allocations: 427.4 kB / 481 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.232e-05/0.1505, allocations: 17.48 kB / 481 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.1506, allocations: 39.12 kB / 481.1 MB, free: 224 kB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.745e-06/0.1506, allocations: 0 / 481.1 MB, free: 224 kB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.004069/0.1547, allocations: 2.431 MB / 483.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.387e-05/0.1548, allocations: 85.67 kB / 483.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.1553, allocations: 445.8 kB / 484 MB, free: 13.15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.818e-05/0.1554, allocations: 33.7 kB / 484.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002707/0.1556, allocations: 359.5 kB / 484.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/0.1558, allocations: 264.2 kB / 484.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002317/0.1561, allocations: 150.6 kB / 484.8 MB, free: 12.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.1563, allocations: 382.6 kB / 485.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005346/0.1568, allocations: 337.8 kB / 485.5 MB, free: 11.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006105/0.1574, allocations: 0.5185 MB / 486 MB, free: 11.04 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.004986/0.1624, allocations: 2.241 MB / 488.3 MB, free: 8.703 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.958e-06/0.1625, allocations: 4 kB / 488.3 MB, free: 8.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001675/0.1641, allocations: 1.106 MB / 489.4 MB, free: 7.566 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1642, allocations: 8 kB / 489.4 MB, free: 7.559 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.454e-05/0.1642, allocations: 4 kB / 489.4 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000164/0.1644, allocations: 44.83 kB / 489.4 MB, free: 7.508 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007633/0.1651, allocations: 191.6 kB / 489.6 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.1664, allocations: 1.492 MB / 491.1 MB, free: 5.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004472/0.1669, allocations: 35.97 kB / 491.2 MB, free: 5.648 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.616e-05/0.167, allocations: 35.98 kB / 491.2 MB, free: 5.613 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.0004448/0.1674, allocations: 281.6 kB / 491.5 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001384/0.1676, allocations: 63.16 kB / 491.5 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.1691, allocations: 0.9739 MB / 492.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.42e-05/0.1691, allocations: 16 kB / 492.5 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1691, allocations: 3.938 kB / 492.5 MB, free: 4.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.1691, allocations: 7.922 kB / 492.5 MB, free: 4.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003533/0.1727, allocations: 2.001 MB / 494.5 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.1727, allocations: 4 kB / 494.5 MB, free: 2.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007188/0.1734, allocations: 151.8 kB / 494.7 MB, free: 1.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000151/0.1736, allocations: 41.34 kB / 494.7 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.049e-05/0.1737, allocations: 27.98 kB / 494.7 MB, free: 1.875 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.1754, allocations: 1.496 MB / 496.2 MB, free: 244 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.1754, allocations: 7.938 kB / 496.2 MB, free: 236 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.1777, allocations: 1.521 MB / 497.8 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002403/0.178, allocations: 136.4 kB / 497.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.967e-05/0.1781, allocations: 31.98 kB / 497.9 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.1785, allocations: 31.97 kB / 498 MB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.1786, allocations: 56.38 kB / 498 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.976e-05/0.1787, allocations: 24 kB / 498 MB, free: 14.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004426/0.1791, allocations: 307.1 kB / 498.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1791, allocations: 0 / 498.3 MB, free: 14.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008274/0.1799, allocations: 184 kB / 498.5 MB, free: 13.84 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.0003716/0.1803, allocations: 164.8 kB / 498.7 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001828/0.1822, allocations: 0.9612 MB / 499.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.017e-05/0.1822, allocations: 5.438 kB / 499.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008173/0.183, allocations: 0.5257 MB / 0.4885 GB, free: 12.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009333/0.184, allocations: 144.9 kB / 0.4886 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/0.1875, allocations: 1.966 MB / 0.4905 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007199/0.1883, allocations: 1.005 MB / 0.4915 GB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005633/0.1888, allocations: 209.4 kB / 0.4917 GB, free: 8.723 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.189, allocations: 59.42 kB / 0.4918 GB, free: 8.664 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.189, allocations: 4 kB / 0.4918 GB, free: 8.66 MB / 382.1 MB Notification: Performance of Templates: time 0.01486/0.2039, allocations: 8.013 MB / 0.4996 GB, free: 0.707 MB / 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches