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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 104 kB / 16.92 MB, free: 5.793 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.001295/0.001295, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.467/1.467, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2176/0.2176, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 61.92 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.152, allocations: 58.06 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01004/0.1621, allocations: 6.086 MB / 463.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003089/0.1652, allocations: 1.418 MB / 464.5 MB, free: 420 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005896/0.1658, allocations: 27.81 kB / 464.5 MB, free: 392 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006364/0.1665, allocations: 138.9 kB / 464.6 MB, free: 252 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001084/0.1676, allocations: 382 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005657/0.1682, allocations: 191.6 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001031/0.1693, allocations: 0.9228 MB / 466.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003885/0.1697, allocations: 278.6 kB / 466.4 MB, free: 14.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006702/0.1703, allocations: 406.3 kB / 466.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007931/0.1712, allocations: 462.4 kB / 467.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.1713, allocations: 48 kB / 467.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001662/0.1715, allocations: 44 kB / 467.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002737/0.1718, allocations: 267.3 kB / 467.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003611/0.1721, allocations: 322.3 kB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006197/0.1728, allocations: 0.6617 MB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1728, allocations: 8 kB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1728, allocations: 0 / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.95e-05/0.1728, allocations: 0 / 468.6 MB, free: 12.3 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.00183/0.1746, allocations: 0.9409 MB / 469.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.1747, allocations: 8.031 kB / 469.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.1748, allocations: 98.64 kB / 469.6 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.1749, allocations: 68.09 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008986/0.1759, allocations: 0.5218 MB / 470.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.739e-05/0.1759, allocations: 40.94 kB / 470.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.129e-05/0.176, allocations: 52 kB / 470.3 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009191/0.1769, allocations: 0.621 MB / 470.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.1769, allocations: 0 / 470.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.905e-05/0.177, allocations: 27.98 kB / 471 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001089/0.1771, allocations: 36.97 kB / 471 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008012/0.1779, allocations: 0.5035 MB / 471.5 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00331/0.1812, allocations: 2.226 MB / 473.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008449/0.1821, allocations: 0.4894 MB / 474.2 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006572/0.1828, allocations: 346 kB / 474.5 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.1828, allocations: 4 kB / 474.6 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.727e-05/0.1829, allocations: 42.56 kB / 474.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.714e-06/0.1829, allocations: 0 / 474.6 MB, free: 6.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003385/0.1863, allocations: 1.749 MB / 476.3 MB, free: 4.191 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.1863, allocations: 89.17 kB / 476.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004762/0.1868, allocations: 417.8 kB / 476.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.1869, allocations: 37.7 kB / 476.9 MB, free: 3.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002083/0.1871, allocations: 304.4 kB / 477.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.1872, allocations: 157.7 kB / 477.3 MB, free: 3.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001447/0.1874, allocations: 98.14 kB / 477.4 MB, free: 3.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.1875, allocations: 362.8 kB / 477.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.1878, allocations: 185 kB / 478 MB, free: 2.523 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003593/0.1882, allocations: 303.7 kB / 478.3 MB, free: 2.176 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.002628/0.1908, allocations: 1.241 MB / 479.5 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.1908, allocations: 4 kB / 479.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001171/0.192, allocations: 0.7068 MB / 480.2 MB, free: 144 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.192, allocations: 4 kB / 480.2 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/0.1921, allocations: 4 kB / 480.2 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004181/0.1925, allocations: 153 kB / 480.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004657/0.193, allocations: 107.8 kB / 480.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003133/0.1961, allocations: 2.618 MB / 483.1 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.1965, allocations: 31.95 kB / 483.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-05/0.1966, allocations: 20 kB / 483.1 MB, free: 13.06 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.0004163/0.197, allocations: 222.6 kB / 483.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001137/0.1971, allocations: 59.22 kB / 483.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/0.1983, allocations: 0.6504 MB / 484.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.1983, allocations: 7.938 kB / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1983, allocations: 4 kB / 484.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.969e-06/0.1983, allocations: 11.92 kB / 484.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.2006, allocations: 1.362 MB / 485.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.2006, allocations: 4.109 kB / 485.5 MB, free: 10.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.201, allocations: 83.77 kB / 485.5 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004105/0.2014, allocations: 144.9 kB / 485.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.2015, allocations: 16 kB / 485.7 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002867/0.2044, allocations: 2.627 MB / 488.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.2044, allocations: 0 / 488.3 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.2058, allocations: 0.9887 MB / 489.3 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.206, allocations: 128.6 kB / 489.4 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.325e-05/0.2061, allocations: 23.97 kB / 489.5 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002818/0.2064, allocations: 23.92 kB / 489.5 MB, free: 6.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.401e-05/0.2065, allocations: 35.95 kB / 489.5 MB, free: 6.383 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.2065, allocations: 12 kB / 489.5 MB, free: 6.371 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003581/0.2069, allocations: 291.1 kB / 489.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2069, allocations: 0 / 489.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000674/0.2076, allocations: 148 kB / 490 MB, free: 5.945 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.001799/0.2094, allocations: 1.534 MB / 491.5 MB, free: 4.363 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.2107, allocations: 0.7226 MB / 492.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.2108, allocations: 0 / 492.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006718/0.2114, allocations: 435.2 kB / 492.6 MB, free: 3.191 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007716/0.2122, allocations: 139.3 kB / 492.8 MB, free: 3.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006908/0.2191, allocations: 5.167 MB / 497.9 MB, free: 13.67 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005698/0.2197, allocations: 0.9331 MB / 498.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003593/0.2201, allocations: 100.7 kB / 499 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.2204, allocations: 199.4 kB / 499.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2204, allocations: 0 / 499.2 MB, free: 12.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05134/0.2717, allocations: 11.74 MB / 0.4989 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.342/9.614, allocations: 7.828 kB / 0.4989 GB, free: 0.8633 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","/var/lib/jenkins1/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