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.001291/0.00129, allocations: 107.9 kB / 16.92 MB, free: 6.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.001412/0.001412, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.368/1.368, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1747/0.1747, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 61.64 kB / 398.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1082, allocations: 58.05 MB / 456.9 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.007222/0.1155, allocations: 6.488 MB / 463.3 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002917/0.1184, allocations: 1.881 MB / 465.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003092/0.1188, allocations: 27.81 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001199/0.12, allocations: 441.9 kB / 465.7 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007247/0.1207, allocations: 413.9 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007546/0.1215, allocations: 363.2 kB / 466.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.1225, allocations: 1.028 MB / 467.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007041/0.1232, allocations: 0.4965 MB / 468 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007064/0.124, allocations: 450.2 kB / 468.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009675/0.1249, allocations: 0.5763 MB / 469 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001996/0.1252, allocations: 64 kB / 469 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000579/0.1257, allocations: 271.6 kB / 469.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003489/0.1261, allocations: 375 kB / 469.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004952/0.1266, allocations: 421.9 kB / 470.1 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.1277, allocations: 1.028 MB / 471.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1277, allocations: 0 / 471.1 MB, free: 9.758 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1278, allocations: 4 kB / 471.1 MB, free: 9.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.093e-05/0.1278, allocations: 0 / 471.1 MB, free: 9.754 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.001952/0.1297, allocations: 1.117 MB / 472.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.409e-05/0.1298, allocations: 11.89 kB / 472.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007017/0.1305, allocations: 127.8 kB / 472.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008719/0.1314, allocations: 0.5689 MB / 472.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.882e-05/0.1314, allocations: 53.69 kB / 473 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.1316, allocations: 80.03 kB / 473.1 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.133, allocations: 1.006 MB / 474.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.133, allocations: 4 kB / 474.1 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.1331, allocations: 28 kB / 474.1 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002047/0.1333, allocations: 69.95 kB / 474.2 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.1347, allocations: 0.9797 MB / 475.2 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004739/0.1394, allocations: 3.272 MB / 478.4 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/0.1406, allocations: 0.6849 MB / 479.1 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000575/0.1412, allocations: 423.5 kB / 479.5 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.492e-05/0.1412, allocations: 16.48 kB / 479.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.1413, allocations: 39.12 kB / 479.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.785e-06/0.1413, allocations: 0 / 479.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003824/0.1451, allocations: 2.431 MB / 482 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.1452, allocations: 85.67 kB / 482.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004564/0.1456, allocations: 441.9 kB / 482.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.694e-05/0.1457, allocations: 37.7 kB / 482.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000223/0.1459, allocations: 359.5 kB / 482.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001863/0.1461, allocations: 260.2 kB / 483.2 MB, free: 13.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002144/0.1463, allocations: 146.6 kB / 483.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1465, allocations: 374.7 kB / 483.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005161/0.147, allocations: 345.8 kB / 484 MB, free: 12.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007794/0.1478, allocations: 0.5224 MB / 484.5 MB, free: 11.82 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.005117/0.1529, allocations: 2.249 MB / 486.8 MB, free: 9.484 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.1529, allocations: 4 kB / 486.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00152/0.1545, allocations: 1.102 MB / 487.9 MB, free: 8.352 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.1545, allocations: 14.33 kB / 487.9 MB, free: 8.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.1545, allocations: 4 kB / 487.9 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/0.1547, allocations: 36.84 kB / 488 MB, free: 8.297 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007221/0.1554, allocations: 195.8 kB / 488.1 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/0.1569, allocations: 1.5 MB / 489.6 MB, free: 6.461 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004068/0.1573, allocations: 39.91 kB / 489.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-05/0.1574, allocations: 32 kB / 489.7 MB, free: 6.391 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.0003783/0.1577, allocations: 277.4 kB / 490 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1579, allocations: 67.14 kB / 490.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001453/0.1593, allocations: 0.9701 MB / 491 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.1594, allocations: 23.92 kB / 491 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1594, allocations: 0 / 491 MB, free: 5.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.1594, allocations: 3.938 kB / 491 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003218/0.1626, allocations: 2.005 MB / 493.1 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.385e-06/0.1626, allocations: 4 kB / 493.1 MB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006523/0.1633, allocations: 147.8 kB / 493.2 MB, free: 2.727 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.1634, allocations: 36.78 kB / 493.2 MB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-05/0.1635, allocations: 27.98 kB / 493.3 MB, free: 2.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/0.1651, allocations: 1.496 MB / 494.8 MB, free: 1.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.1651, allocations: 8.062 kB / 494.8 MB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.1671, allocations: 1.528 MB / 496.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.1672, allocations: 132.4 kB / 496.4 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.1673, allocations: 27.98 kB / 496.5 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.1677, allocations: 31.97 kB / 496.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001791/0.1679, allocations: 60.38 kB / 496.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.921e-05/0.1679, allocations: 27.98 kB / 496.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003446/0.1683, allocations: 299.1 kB / 496.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1683, allocations: 0 / 496.9 MB, free: 14.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006919/0.169, allocations: 188 kB / 497 MB, free: 14.62 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.0002451/0.1692, allocations: 158.9 kB / 497.2 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001885/0.1711, allocations: 1.176 MB / 498.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/0.1711, allocations: 0 / 498.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006609/0.1718, allocations: 0.523 MB / 498.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008073/0.1726, allocations: 163.9 kB / 499.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.1755, allocations: 1.985 MB / 0.4893 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.1762, allocations: 1.009 MB / 0.4903 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005967/0.1768, allocations: 209.3 kB / 0.4905 GB, free: 9.262 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000182/0.1769, allocations: 59.42 kB / 0.4905 GB, free: 9.203 MB / 382.1 MB Notification: Performance of SimCode: time 3.5e-07/0.177, allocations: 4 kB / 0.4905 GB, free: 9.199 MB / 382.1 MB Notification: Performance of Templates: time 0.01421/0.1912, allocations: 7.937 MB / 0.4983 GB, free: 1.32 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 -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