Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Introductory.Units.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.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Introductory.Units,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Introductory_Units",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.001246/0.001246, allocations: 107.3 kB / 16.92 MB, free: 6.117 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.001316/0.001316, allocations: 191.3 kB / 17.85 MB, free: 5.277 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.37/1.37, allocations: 222.9 MB / 241.5 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.281/0.281, allocations: 38.04 MB / 329.7 MB, free: 8.848 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001462/0.001462, allocations: 59.06 kB / 398.9 MB, free: 33.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1129, allocations: 58.07 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.Units): time 0.008805/0.1217, allocations: 6.09 MB / 463.1 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004135/0.1259, allocations: 1.951 MB / 465 MB, free: 15.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006924/0.1266, allocations: 23.88 kB / 465 MB, free: 15.87 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.1287, allocations: 0.6925 MB / 465.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001263/0.13, allocations: 386.1 kB / 466.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001198/0.1312, allocations: 399.1 kB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001377/0.1326, allocations: 0.9278 MB / 467.4 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009282/0.1335, allocations: 0.5039 MB / 467.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009199/0.1345, allocations: 418.4 kB / 468.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001026/0.1355, allocations: 0.5374 MB / 468.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002086/0.1357, allocations: 56 kB / 468.9 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006965/0.1364, allocations: 239.6 kB / 469.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004836/0.1369, allocations: 415 kB / 469.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006825/0.1376, allocations: 422 kB / 470 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.1389, allocations: 1.005 MB / 471 MB, free: 9.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1389, allocations: 0 / 471 MB, free: 9.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1389, allocations: 0 / 471 MB, free: 9.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.138e-05/0.139, allocations: 0 / 471 MB, free: 9.902 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.002704/0.1417, allocations: 1.071 MB / 472.1 MB, free: 8.781 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/0.1417, allocations: 15.89 kB / 472.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002307/0.142, allocations: 135.3 kB / 472.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007973/0.1428, allocations: 131.8 kB / 472.3 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000833/0.1436, allocations: 0.5206 MB / 472.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5e-05/0.1437, allocations: 54.38 kB / 472.9 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.1438, allocations: 79.94 kB / 473 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.1454, allocations: 1.13 MB / 474.1 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.526e-05/0.1455, allocations: 11.84 kB / 474.1 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.606e-05/0.1456, allocations: 32 kB / 474.2 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.2e-05/0.1457, allocations: 53.97 kB / 474.2 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/0.1471, allocations: 0.8662 MB / 475.1 MB, free: 5.613 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005434/0.1525, allocations: 5.075 MB / 480.1 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006912/0.1532, allocations: 415.8 kB / 480.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003014/0.1535, allocations: 209.7 kB / 480.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.668e-05/0.1536, allocations: 15.92 kB / 480.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.1536, allocations: 38.56 kB / 480.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 2.725e-06/0.1537, allocations: 4 kB / 480.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001888/0.1555, allocations: 1.063 MB / 481.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.1556, allocations: 85.06 kB / 482 MB, free: 14.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000489/0.1561, allocations: 0.4939 MB / 482.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.135e-05/0.1562, allocations: 33.7 kB / 482.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002484/0.1564, allocations: 461.5 kB / 482.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.1565, allocations: 153.8 kB / 483.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000175/0.1567, allocations: 158.6 kB / 483.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1569, allocations: 366.7 kB / 483.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003397/0.1572, allocations: 241.8 kB / 483.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.1578, allocations: 0.617 MB / 484.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.1588, allocations: 0.934 MB / 485.4 MB, free: 10.59 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.116e-05/0.1588, allocations: 4 kB / 485.4 MB, free: 10.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001335/0.1602, allocations: 0.8955 MB / 486.3 MB, free: 9.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.1602, allocations: 12 kB / 486.3 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.1603, allocations: 12 kB / 486.3 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.044e-05/0.1603, allocations: 16 kB / 486.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.161, allocations: 223.6 kB / 486.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.478e-05/0.1611, allocations: 27.92 kB / 486.6 MB, free: 9.395 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004638/0.1615, allocations: 56.19 kB / 486.6 MB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/0.1616, allocations: 47.98 kB / 486.7 MB, free: 9.293 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * 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 (99): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003647/0.162, allocations: 305.3 kB / 487 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.274e-05/0.1621, allocations: 51.34 kB / 487 MB, free: 8.934 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008659/0.163, allocations: 0.5641 MB / 487.6 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.163, allocations: 4 kB / 487.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.163, allocations: 0 / 487.6 MB, free: 8.359 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.884e-06/0.163, allocations: 3.984 kB / 487.6 MB, free: 8.355 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.1649, allocations: 1.33 MB / 488.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.1649, allocations: 4 kB / 488.9 MB, free: 6.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.1654, allocations: 111.8 kB / 489 MB, free: 6.832 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.091e-05/0.1654, allocations: 7.938 kB / 489 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.1654, allocations: 11.98 kB / 489.1 MB, free: 6.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.053e-06/0.1654, allocations: 4 kB / 489.1 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.1655, allocations: 12.19 kB / 489.1 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007308/0.1662, allocations: 0.6365 MB / 489.7 MB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.1663, allocations: 132.3 kB / 489.8 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.176e-05/0.1664, allocations: 15.98 kB / 489.9 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002557/0.1667, allocations: 23.98 kB / 489.9 MB, free: 5.926 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.966e-05/0.1667, allocations: 35.89 kB / 489.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.1668, allocations: 20 kB / 489.9 MB, free: 5.871 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003072/0.1671, allocations: 330.8 kB / 490.3 MB, free: 5.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1671, allocations: 0 / 490.3 MB, free: 5.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006395/0.1677, allocations: 160 kB / 490.4 MB, free: 5.395 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 simulation (51): * Single equations (assignments): 50 * 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.0009328/0.1687, allocations: 1.186 MB / 491.6 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009816/0.1697, allocations: 0.7041 MB / 492.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.1697, allocations: 0 / 492.3 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.17, allocations: 239.6 kB / 492.5 MB, free: 3.223 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.1706, allocations: 117.6 kB / 492.6 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006346/0.177, allocations: 5.868 MB / 498.5 MB, free: 12.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005655/0.1776, allocations: 0.9957 MB / 499.5 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005438/0.1781, allocations: 225 kB / 499.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003164/0.1785, allocations: 259.3 kB / 500 MB, free: 11.24 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1785, allocations: 0 / 500 MB, free: 11.24 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03162/0.2101, allocations: 11.15 MB / 0.4992 GB, free: 196 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.717/7.927, allocations: 14.75 kB / 0.4992 GB, free: 184 kB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-05 PowerSystems_latest_PowerSystems_Examples_Introductory_Units.fmu > PowerSystems_latest_PowerSystems.Examples.Introductory.Units.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Introductory.Units_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Introductory.Units.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Introductory.Units.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches