Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Display.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.Introductory.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Display,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Display",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.001611/0.001611, 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.002436/0.002436, 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.425/1.425, allocations: 222.9 MB / 241.5 MB, free: 15.31 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1843/0.1843, allocations: 38.04 MB / 329.7 MB, free: 8.805 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 67.98 kB / 398.9 MB, free: 34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1253, allocations: 58.07 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Display): time 0.009637/0.135, allocations: 6.632 MB / 463.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004151/0.1391, allocations: 2.017 MB / 465.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006281/0.1398, allocations: 23.88 kB / 465.6 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002104/0.1419, allocations: 0.7137 MB / 466.4 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.1438, allocations: 0.5716 MB / 466.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000856/0.1447, allocations: 251.5 kB / 467.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00198/0.1467, allocations: 1.141 MB / 468.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001063/0.1477, allocations: 0.5992 MB / 468.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001058/0.1488, allocations: 0.5058 MB / 469.4 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001338/0.1502, allocations: 0.6074 MB / 470 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002516/0.1504, allocations: 68 kB / 470.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008559/0.1513, allocations: 275.7 kB / 470.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006668/0.152, allocations: 482.9 kB / 470.8 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.1531, allocations: 497.5 kB / 471.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00175/0.1548, allocations: 1.164 MB / 472.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1548, allocations: 0 / 472.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1549, allocations: 0 / 472.5 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.093e-05/0.1549, allocations: 0 / 472.5 MB, free: 8.398 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: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.003142/0.1581, allocations: 1.206 MB / 473.7 MB, free: 7.145 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.1581, allocations: 11.89 kB / 473.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002841/0.1584, allocations: 151.8 kB / 473.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001217/0.1596, allocations: 171.5 kB / 474 MB, free: 6.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.1615, allocations: 0.5812 MB / 474.6 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.303e-05/0.1616, allocations: 66.36 kB / 474.7 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002838/0.1619, allocations: 107.7 kB / 474.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002299/0.1642, allocations: 1.153 MB / 475.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.181e-05/0.1642, allocations: 7.938 kB / 475.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.401e-05/0.1643, allocations: 35.98 kB / 476 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001979/0.1645, allocations: 89.88 kB / 476.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002191/0.1667, allocations: 0.999 MB / 477.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007675/0.1744, allocations: 4.358 MB / 481.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001343/0.1758, allocations: 0.6374 MB / 482 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005304/0.1763, allocations: 305.3 kB / 482.3 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.637e-05/0.1764, allocations: 12.55 kB / 482.4 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/0.1765, allocations: 47.05 kB / 482.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=63): time 4.038e-06/0.1765, allocations: 0 / 482.4 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=64): time 0.003429/0.1799, allocations: 1.738 MB / 484.1 MB, free: 12.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.487e-05/0.18, allocations: 81.67 kB / 484.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007592/0.1808, allocations: 0.5493 MB / 484.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.534e-05/0.1808, allocations: 37.7 kB / 484.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/0.1812, allocations: 430.8 kB / 485.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002194/0.1814, allocations: 224.9 kB / 485.4 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002811/0.1817, allocations: 190.4 kB / 485.6 MB, free: 10.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002435/0.1819, allocations: 382.7 kB / 486 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.1825, allocations: 289.8 kB / 486.3 MB, free: 10.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007773/0.1832, allocations: 0.6114 MB / 486.9 MB, free: 9.293 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/0.1845, allocations: 0.9653 MB / 487.9 MB, free: 8.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.1846, allocations: 4 kB / 487.9 MB, free: 8.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002308/0.1869, allocations: 1.18 MB / 489.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.1869, allocations: 8 kB / 489.1 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00141/0.1883, allocations: 0.7144 MB / 489.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008254/0.1892, allocations: 214.6 kB / 490 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007927/0.19, allocations: 227.6 kB / 490.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00561/0.1956, allocations: 5.373 MB / 495.6 MB, free: 12 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007192/0.1964, allocations: 28.16 kB / 495.6 MB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.1965, allocations: 43.98 kB / 495.7 MB, free: 15.94 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 33 (system.initime,phasor_cap.color_n[3],phasor_cap.color_n[1],phasor_cap.color_p[3],phasor_cap.color_p[1],phasor_ind.color_n[3],phasor_ind.color_n[1],phasor_ind.color_p[3],phasor_ind.color_p[1],phasor_cap.color2[3],phasor_cap.color2[2],phasor_cap.color2[1],phasor_cap.color1[3],phasor_cap.color1[2],phasor_cap.color1[1],phasor_cap.colorR[3],phasor_cap.colorR[2],phasor_cap.colorR[1],phasor_cap.colorL[3],phasor_cap.colorL[2],phasor_cap.colorL[1],phasor_ind.color2[3],phasor_ind.color2[2],phasor_ind.color2[1],phasor_ind.color1[3],phasor_ind.color1[2],phasor_ind.color1[1],phasor_ind.colorR[3],phasor_ind.colorR[2],phasor_ind.colorR[1],phasor_ind.colorL[3],phasor_ind.colorL[2],phasor_ind.colorL[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005674/0.1971, allocations: 345.5 kB / 496 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.1972, allocations: 71.09 kB / 496.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001174/0.1984, allocations: 0.654 MB / 496.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.1985, allocations: 11.98 kB / 496.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.1985, allocations: 4 kB / 496.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.1985, allocations: 3.984 kB / 496.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/0.2013, allocations: 1.535 MB / 498.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.2013, allocations: 0 / 498.3 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007975/0.2021, allocations: 175.7 kB / 498.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-05/0.2021, allocations: 4 kB / 498.4 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.895e-05/0.2022, allocations: 19.98 kB / 498.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.623e-06/0.2022, allocations: 4 kB / 498.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.2022, allocations: 3.938 kB / 498.5 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.2037, allocations: 1.026 MB / 499.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002752/0.204, allocations: 176.4 kB / 499.7 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.2041, allocations: 20 kB / 499.7 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.2044, allocations: 20.11 kB / 499.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.2046, allocations: 52.38 kB / 499.8 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.282e-05/0.2046, allocations: 24 kB / 499.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004128/0.205, allocations: 358.8 kB / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.205, allocations: 0 / 0.4884 GB, free: 11.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008888/0.2059, allocations: 220 kB / 0.4886 GB, free: 11.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (ind.i[1],ind.i[2],ind.i[3],cap.v[1],cap.v[2],cap.v[3]) * Number of discrete variables: 9 (system.initime,phasor_ind.color_p[1],phasor_ind.color_p[3],phasor_ind.color_n[1],phasor_ind.color_n[3],phasor_cap.color_p[1],phasor_cap.color_p[3],phasor_cap.color_n[1],phasor_cap.color_n[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001716/0.2077, allocations: 1.591 MB / 0.4902 GB, free: 9.469 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002222/0.2099, allocations: 1.288 MB / 0.4914 GB, free: 8.145 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/0.2099, allocations: 3.938 kB / 0.4914 GB, free: 8.141 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004711/0.2104, allocations: 316.1 kB / 0.4917 GB, free: 7.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008873/0.2113, allocations: 155.7 kB / 0.4919 GB, free: 7.684 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.2225, allocations: 7.281 MB / 0.499 GB, free: 15.95 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00098/0.2235, allocations: 1.067 MB / 0.5 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007298/0.2243, allocations: 225.6 kB / 0.5003 GB, free: 14.63 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005013/0.2248, allocations: 307.3 kB / 0.5005 GB, free: 14.33 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2248, allocations: 0 / 0.5005 GB, free: 14.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.267/0.4918, allocations: 15.2 MB / 0.5154 GB, free: 68.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.81/10.3, allocations: 11.81 kB / 0.5154 GB, free: 68.88 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 PowerSystems_latest_PowerSystems_Examples_Introductory_Display.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Display.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Display_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Display.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Display.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches