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.001685/0.001685, allocations: 111.6 kB / 17.69 MB, free: 5.414 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.001923/0.001923, allocations: 192 kB / 18.63 MB, free: 4.48 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.381/1.381, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1806/0.1806, allocations: 38.04 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 67.77 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1092, allocations: 58.06 MB / 458.3 MB, free: 7.332 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008043/0.1173, allocations: 6.483 MB / 464.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003507/0.1209, allocations: 1.881 MB / 466.7 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004141/0.1213, allocations: 31.81 kB / 466.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.1226, allocations: 437.9 kB / 467.1 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008562/0.1234, allocations: 409.9 kB / 467.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008357/0.1243, allocations: 351.2 kB / 467.9 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1253, allocations: 1.036 MB / 468.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006207/0.1259, allocations: 0.4926 MB / 469.4 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005753/0.1265, allocations: 454.2 kB / 469.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.1273, allocations: 0.5763 MB / 470.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.639e-05/0.1274, allocations: 72 kB / 470.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004787/0.1279, allocations: 259.6 kB / 470.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003146/0.1282, allocations: 375 kB / 471.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003817/0.1286, allocations: 421.9 kB / 471.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009614/0.1295, allocations: 1.051 MB / 472.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1296, allocations: 3.938 kB / 472.6 MB, free: 9 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1296, allocations: 0 / 472.6 MB, free: 9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1296, allocations: 0 / 472.6 MB, free: 9 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.00202/0.1316, allocations: 1.113 MB / 473.7 MB, free: 7.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1316, allocations: 15.89 kB / 473.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006898/0.1323, allocations: 123.8 kB / 473.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.1335, allocations: 0.6195 MB / 474.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.1335, allocations: 49.69 kB / 474.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001564/0.1337, allocations: 72.11 kB / 474.6 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.1351, allocations: 1.01 MB / 475.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/0.1351, allocations: 0 / 475.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.046e-05/0.1352, allocations: 28 kB / 475.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001941/0.1354, allocations: 73.94 kB / 475.7 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.1368, allocations: 0.9758 MB / 476.7 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004809/0.1416, allocations: 3.252 MB / 479.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001033/0.1426, allocations: 0.6877 MB / 480.6 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005973/0.1433, allocations: 427.4 kB / 481 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-05/0.1433, allocations: 8.562 kB / 481 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.1434, allocations: 47.06 kB / 481.1 MB, free: 232 kB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.585e-06/0.1434, allocations: 4 kB / 481.1 MB, free: 228 kB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003638/0.147, allocations: 2.424 MB / 483.5 MB, free: 13.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.1471, allocations: 85.67 kB / 483.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004239/0.1475, allocations: 445.8 kB / 484 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.1476, allocations: 37.7 kB / 484.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.1478, allocations: 355.5 kB / 484.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/0.1479, allocations: 264.2 kB / 484.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.1481, allocations: 150.5 kB / 484.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1483, allocations: 374.7 kB / 485.2 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000463/0.1488, allocations: 345.8 kB / 485.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005822/0.1493, allocations: 0.5185 MB / 486 MB, free: 11.05 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.004835/0.1542, allocations: 2.241 MB / 488.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1542, allocations: 0 / 488.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001563/0.1558, allocations: 1.105 MB / 489.4 MB, free: 7.582 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.1558, allocations: 8.688 kB / 489.4 MB, free: 7.574 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1558, allocations: 4 kB / 489.4 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001525/0.156, allocations: 48.83 kB / 489.4 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000734/0.1567, allocations: 191.6 kB / 489.6 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.1579, allocations: 1.492 MB / 491.1 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004503/0.1583, allocations: 39.91 kB / 491.2 MB, free: 5.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.591e-05/0.1584, allocations: 32 kB / 491.2 MB, free: 5.625 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.0003858/0.1588, allocations: 277.5 kB / 491.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001321/0.1589, allocations: 71.2 kB / 491.5 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00141/0.1603, allocations: 0.97 MB / 492.5 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.216e-05/0.1604, allocations: 12 kB / 492.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1604, allocations: 0 / 492.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1604, allocations: 11.92 kB / 492.5 MB, free: 4.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.1635, allocations: 2.005 MB / 494.5 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.1635, allocations: 4 kB / 494.5 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006565/0.1642, allocations: 155.7 kB / 494.7 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.1643, allocations: 32.84 kB / 494.7 MB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.264e-05/0.1644, allocations: 27.98 kB / 494.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001032/0.1654, allocations: 1.496 MB / 496.2 MB, free: 260 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.995e-06/0.1654, allocations: 11.94 kB / 496.3 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.1673, allocations: 1.521 MB / 497.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.1675, allocations: 140.4 kB / 497.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.461e-05/0.1675, allocations: 23.98 kB / 497.9 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.1679, allocations: 31.97 kB / 498 MB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001065/0.168, allocations: 60.38 kB / 498 MB, free: 14.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.343e-05/0.1681, allocations: 27.98 kB / 498.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003355/0.1684, allocations: 299.1 kB / 498.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1684, allocations: 0 / 498.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007265/0.1692, allocations: 180 kB / 498.5 MB, free: 13.86 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.0002614/0.1694, allocations: 169.1 kB / 498.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.1709, allocations: 0.966 MB / 499.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.1709, allocations: 0 / 499.7 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006492/0.1715, allocations: 0.5263 MB / 0.4885 GB, free: 12.17 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007965/0.1723, allocations: 150.7 kB / 0.4886 GB, free: 12.03 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002815/0.1752, allocations: 1.97 MB / 0.4905 GB, free: 9.973 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008524/0.176, allocations: 1.016 MB / 0.4915 GB, free: 8.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008165/0.1769, allocations: 201.4 kB / 0.4917 GB, free: 8.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.1772, allocations: 55.42 kB / 0.4918 GB, free: 8.676 MB / 382.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1772, allocations: 3.938 kB / 0.4918 GB, free: 8.672 MB / 382.1 MB Notification: Performance of Templates: time 0.02137/0.1986, allocations: 8.018 MB / 0.4996 GB, free: 0.7109 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 gbode -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