Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 103.5 kB / 16.62 MB, free: 6.805 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.001556/0.001556, allocations: 193.9 kB / 17.55 MB, free: 5.953 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.42/1.42, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1845/0.1845, allocations: 38.03 MB / 329.4 MB, free: 9.059 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00186/0.00186, allocations: 63.17 kB / 398.3 MB, free: 34.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.1578, allocations: 58.07 MB / 456.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01167/0.1695, allocations: 7.346 MB / 463.7 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004249/0.1738, allocations: 1.78 MB / 465.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006444/0.1745, allocations: 47.69 kB / 465.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006269/0.1752, allocations: 123.2 kB / 465.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001134/0.1763, allocations: 358.4 kB / 466 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006257/0.177, allocations: 167.8 kB / 466.2 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.1783, allocations: 0.9228 MB / 467.1 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006/0.1789, allocations: 270.7 kB / 467.3 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008533/0.1798, allocations: 406.2 kB / 467.7 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009367/0.1807, allocations: 0.4945 MB / 468.2 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.1808, allocations: 48 kB / 468.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.181, allocations: 44 kB / 468.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003473/0.1813, allocations: 255.3 kB / 468.6 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003944/0.1818, allocations: 318.3 kB / 468.9 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008909/0.1827, allocations: 0.6734 MB / 469.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1827, allocations: 0 / 469.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1827, allocations: 0 / 469.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1827, allocations: 0 / 469.6 MB, free: 11.17 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00239/0.1851, allocations: 0.9407 MB / 470.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.29e-05/0.1852, allocations: 11.89 kB / 470.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.1854, allocations: 72.19 kB / 470.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.1866, allocations: 0.518 MB / 471.1 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.1867, allocations: 45.06 kB / 471.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.1868, allocations: 48 kB / 471.2 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/0.1883, allocations: 0.6288 MB / 471.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.1883, allocations: 0 / 471.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.397e-05/0.1884, allocations: 16 kB / 471.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/0.1886, allocations: 36.97 kB / 471.9 MB, free: 8.727 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001265/0.1899, allocations: 0.5035 MB / 472.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004487/0.1944, allocations: 2.245 MB / 474.6 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009055/0.1953, allocations: 493.1 kB / 475.1 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006061/0.1959, allocations: 349 kB / 475.4 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.159e-05/0.196, allocations: 11.92 kB / 475.5 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.196, allocations: 38.56 kB / 475.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.884e-06/0.196, allocations: 0 / 475.5 MB, free: 4.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003355/0.1994, allocations: 1.741 MB / 477.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.766e-05/0.1994, allocations: 93.05 kB / 477.3 MB, free: 3.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004304/0.1999, allocations: 413.9 kB / 477.7 MB, free: 2.637 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.1999, allocations: 29.7 kB / 477.8 MB, free: 2.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.2002, allocations: 300.4 kB / 478.1 MB, free: 2.305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.2003, allocations: 161.8 kB / 478.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.2004, allocations: 102.2 kB / 478.3 MB, free: 2.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2006, allocations: 358.8 kB / 478.7 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.2009, allocations: 185 kB / 478.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003682/0.2013, allocations: 311.6 kB / 479.1 MB, free: 1.148 MB / 350.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002646/0.2039, allocations: 1.241 MB / 480.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2039, allocations: 0 / 480.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001093/0.205, allocations: 0.7108 MB / 481.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.2051, allocations: 12.03 kB / 481.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.2051, allocations: 4 kB / 481.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004205/0.2055, allocations: 140.7 kB / 481.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004282/0.2059, allocations: 111.9 kB / 481.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.2088, allocations: 2.619 MB / 484 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003054/0.2091, allocations: 23.98 kB / 484 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.674e-05/0.2091, allocations: 20 kB / 484 MB, free: 12.04 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[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (54): * Single equations (assignments): 53 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003182/0.2095, allocations: 229.7 kB / 484.2 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.705e-05/0.2096, allocations: 59.22 kB / 484.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00111/0.2107, allocations: 0.6503 MB / 485 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.2107, allocations: 4 kB / 485 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2107, allocations: 4 kB / 485 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.2107, allocations: 7.922 kB / 485 MB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002081/0.2128, allocations: 1.377 MB / 486.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2128, allocations: 96 / 486.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003557/0.2132, allocations: 83.98 kB / 486.4 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003917/0.2136, allocations: 140.7 kB / 486.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.424e-05/0.2136, allocations: 15.98 kB / 486.6 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002758/0.2164, allocations: 2.622 MB / 489.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2164, allocations: 8 kB / 489.2 MB, free: 6.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001399/0.2178, allocations: 0.9847 MB / 490.2 MB, free: 5.582 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.218, allocations: 124.6 kB / 490.3 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.528e-05/0.218, allocations: 12 kB / 490.3 MB, free: 5.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002451/0.2183, allocations: 19.92 kB / 490.4 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.902e-05/0.2184, allocations: 35.89 kB / 490.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.188e-05/0.2184, allocations: 19.98 kB / 490.4 MB, free: 5.355 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003296/0.2187, allocations: 291.1 kB / 490.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2188, allocations: 0 / 490.7 MB, free: 5.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006135/0.2194, allocations: 144 kB / 490.8 MB, free: 4.93 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,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 (41): * Single equations (assignments): 39 * Array equations: 0 * 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 {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001422/0.2195, allocations: 119.1 kB / 490.9 MB, free: 4.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001205/0.2207, allocations: 0.715 MB / 491.7 MB, free: 4.074 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2208, allocations: 0 / 491.7 MB, free: 4.074 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006088/0.2214, allocations: 451.4 kB / 492.1 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.2221, allocations: 140.8 kB / 492.2 MB, free: 3.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.2241, allocations: 1.546 MB / 493.8 MB, free: 1.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004784/0.2246, allocations: 0.9292 MB / 494.7 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003147/0.2249, allocations: 104.7 kB / 494.8 MB, free: 0.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.826e-05/0.225, allocations: 39.44 kB / 494.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2251, allocations: 0 / 494.9 MB, free: 0.793 MB / 366.1 MB Notification: Performance of Templates: time 0.01174/0.2368, allocations: 6.784 MB / 0.4899 GB, free: 10.08 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches