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.001195/0.001195, allocations: 104 kB / 17.59 MB, free: 5.559 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.001212/0.001212, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.323/1.323, allocations: 222.9 MB / 242.2 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.1801/0.1801, allocations: 38.04 MB / 330.4 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 64.91 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0955/0.09691, allocations: 58.06 MB / 457.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.009215/0.1062, allocations: 6.484 MB / 464 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003923/0.1101, allocations: 1.877 MB / 465.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006109/0.1108, allocations: 27.88 kB / 465.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001475/0.1123, allocations: 437.8 kB / 466.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001186/0.1135, allocations: 425.8 kB / 466.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.1147, allocations: 351.3 kB / 467.1 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001512/0.1162, allocations: 1.025 MB / 468.1 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008094/0.117, allocations: 0.4887 MB / 468.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008651/0.1179, allocations: 466.1 kB / 469.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009657/0.1189, allocations: 0.5685 MB / 469.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001692/0.119, allocations: 72 kB / 469.7 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006503/0.1197, allocations: 267.6 kB / 470 MB, free: 11.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004058/0.1201, allocations: 383 kB / 470.4 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005844/0.1207, allocations: 421.9 kB / 470.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001202/0.1219, allocations: 1.02 MB / 471.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.1219, allocations: 3.984 kB / 471.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1219, allocations: 0 / 471.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.968e-05/0.122, allocations: 0 / 471.8 MB, free: 9.707 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.002534/0.1245, allocations: 1.113 MB / 472.9 MB, free: 8.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.1246, allocations: 19.89 kB / 472.9 MB, free: 8.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008085/0.1254, allocations: 123.8 kB / 473 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/0.1265, allocations: 0.5727 MB / 473.6 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.1265, allocations: 53.67 kB / 473.7 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.1267, allocations: 68.12 kB / 473.7 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/0.1283, allocations: 1.01 MB / 474.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/0.1284, allocations: 3.938 kB / 474.8 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.731e-05/0.1285, allocations: 31.98 kB / 474.8 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002172/0.1287, allocations: 69.95 kB / 474.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.1303, allocations: 0.9797 MB / 475.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004919/0.1352, allocations: 3.275 MB / 479.1 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001101/0.1363, allocations: 0.6801 MB / 479.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006114/0.137, allocations: 427.4 kB / 480.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.137, allocations: 17.44 kB / 480.2 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.1371, allocations: 39.12 kB / 480.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.925e-06/0.1371, allocations: 0 / 480.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003959/0.1411, allocations: 2.424 MB / 482.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.1411, allocations: 89.61 kB / 482.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005247/0.1417, allocations: 445.8 kB / 483.2 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.086e-05/0.1417, allocations: 37.7 kB / 483.2 MB, free: 13.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.142, allocations: 359.5 kB / 483.6 MB, free: 13.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002099/0.1422, allocations: 268.2 kB / 483.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002167/0.1424, allocations: 146.6 kB / 484 MB, free: 13.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1426, allocations: 378.7 kB / 484.4 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.1431, allocations: 337.8 kB / 484.7 MB, free: 12.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006067/0.1437, allocations: 0.5185 MB / 485.2 MB, free: 11.77 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.005116/0.1488, allocations: 2.249 MB / 487.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.1489, allocations: 0 / 487.5 MB, free: 9.434 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001685/0.1505, allocations: 1.098 MB / 488.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1506, allocations: 12.03 kB / 488.6 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.1506, allocations: 4 kB / 488.6 MB, free: 8.293 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/0.1508, allocations: 44.83 kB / 488.6 MB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007533/0.1515, allocations: 191.6 kB / 488.8 MB, free: 8.059 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.1528, allocations: 1.496 MB / 490.3 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/0.1533, allocations: 43.95 kB / 490.3 MB, free: 6.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.368e-05/0.1534, allocations: 32.06 kB / 490.4 MB, free: 6.344 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.0004061/0.1538, allocations: 273.5 kB / 490.6 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001524/0.154, allocations: 71.28 kB / 490.7 MB, free: 5.996 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.1555, allocations: 0.9739 MB / 491.7 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/0.1555, allocations: 16 kB / 491.7 MB, free: 4.977 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.1555, allocations: 4 kB / 491.7 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.1556, allocations: 11.86 kB / 491.7 MB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003296/0.1589, allocations: 1.993 MB / 493.7 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.1589, allocations: 4.562 kB / 493.7 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006824/0.1596, allocations: 155.8 kB / 493.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001103/0.1597, allocations: 36.84 kB / 493.9 MB, free: 2.637 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.684e-05/0.1598, allocations: 23.98 kB / 493.9 MB, free: 2.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.1609, allocations: 1.5 MB / 495.4 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.1609, allocations: 8 kB / 495.4 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001972/0.1629, allocations: 1.525 MB / 497 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.1631, allocations: 136.3 kB / 497.1 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.1632, allocations: 24.05 kB / 497.1 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003858/0.1636, allocations: 31.97 kB / 497.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.1637, allocations: 60.38 kB / 497.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.1638, allocations: 32.06 kB / 497.2 MB, free: 15.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003474/0.1641, allocations: 299.1 kB / 497.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1641, allocations: 0 / 497.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007074/0.1648, allocations: 191.9 kB / 497.7 MB, free: 14.57 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.0002519/0.1651, allocations: 158.9 kB / 497.9 MB, free: 14.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00191/0.167, allocations: 1.177 MB / 499.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.167, allocations: 4.125 kB / 499.1 MB, free: 13.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007092/0.1677, allocations: 0.5248 MB / 499.6 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008548/0.1686, allocations: 149.1 kB / 499.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.1717, allocations: 2.052 MB / 0.49 GB, free: 10.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/0.1723, allocations: 1.013 MB / 0.491 GB, free: 9.348 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.1726, allocations: 59.38 kB / 0.4911 GB, free: 9.289 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1726, allocations: 0 / 0.4911 GB, free: 9.289 MB / 382.1 MB Notification: Performance of Templates: time 0.01692/0.1895, allocations: 11.97 MB / 0.5028 GB, free: 13.33 MB / 398.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/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