Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SimpleLiquidWater,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001655/0.001655, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001974/0.001974, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.37/1.37, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 60.38 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08629/0.08761, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005979/0.09362, allocations: 4.543 MB / 362.1 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.09546, allocations: 1.818 MB / 363.9 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.279e-05/0.09555, allocations: 3.938 kB / 363.9 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.09587, allocations: 43.75 kB / 364 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.0962, allocations: 123.2 kB / 364.1 MB, free: 7.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006104/0.09683, allocations: 246.6 kB / 364.3 MB, free: 7.227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003087/0.09714, allocations: 290.8 kB / 364.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.809e-05/0.0972, allocations: 13.08 kB / 364.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.09745, allocations: 131.5 kB / 364.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.09758, allocations: 83.67 kB / 364.8 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.112e-05/0.09762, allocations: 8 kB / 364.9 MB, free: 6.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002462/0.09787, allocations: 99.88 kB / 365 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.33e-05/0.09797, allocations: 47.88 kB / 365 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.692e-05/0.09808, allocations: 71.67 kB / 365.1 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.0984, allocations: 215.6 kB / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.09841, allocations: 0 / 365.3 MB, free: 6.285 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.09842, allocations: 4 kB / 365.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.09844, allocations: 0 / 365.3 MB, free: 6.281 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009392/0.09938, allocations: 491.2 kB / 365.8 MB, free: 5.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.09942, allocations: 8.031 kB / 365.8 MB, free: 5.742 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.83e-05/0.09949, allocations: 54.73 kB / 365.8 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001782/0.09967, allocations: 20.75 kB / 365.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.09987, allocations: 204.2 kB / 366 MB, free: 5.422 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.09989, allocations: 8.656 kB / 366.1 MB, free: 5.414 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.478e-05/0.09993, allocations: 12.38 kB / 366.1 MB, free: 5.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004042/0.1003, allocations: 221.4 kB / 366.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.1004, allocations: 0 / 366.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.1004, allocations: 8 kB / 366.3 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1004, allocations: 4 kB / 366.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003566/0.1008, allocations: 159.8 kB / 366.4 MB, free: 4.996 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.1021, allocations: 0.9401 MB / 367.4 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004025/0.1025, allocations: 154.6 kB / 367.5 MB, free: 3.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.1027, allocations: 56.83 kB / 367.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000569/0.1032, allocations: 0.4993 MB / 368.1 MB, free: 3.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.496e-05/0.1033, allocations: 34.56 kB / 368.1 MB, free: 3.156 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.1033, allocations: 0 / 368.1 MB, free: 3.156 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.002565/0.1058, allocations: 0.7765 MB / 368.9 MB, free: 2.332 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/0.1059, allocations: 55.41 kB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.106, allocations: 153.4 kB / 369.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.1061, allocations: 33.7 kB / 369.1 MB, free: 2.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.563e-05/0.1062, allocations: 147.7 kB / 369.3 MB, free: 1.922 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.008e-05/0.1062, allocations: 67 kB / 369.4 MB, free: 1.855 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.659e-05/0.1063, allocations: 57.7 kB / 369.4 MB, free: 1.793 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1064, allocations: 326.8 kB / 369.7 MB, free: 1.465 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.1067, allocations: 87.69 kB / 369.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003078/0.107, allocations: 185.7 kB / 370 MB, free: 1.148 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.1076, allocations: 297.4 kB / 370.3 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1076, allocations: 8 kB / 370.3 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007144/0.1083, allocations: 321.2 kB / 370.6 MB, free: 492 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.1084, allocations: 4 kB / 370.6 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1084, allocations: 4 kB / 370.6 MB, free: 484 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1084, allocations: 11.94 kB / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003821/0.1088, allocations: 87.81 kB / 370.7 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1088, allocations: 4 kB / 370.7 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002287/0.109, allocations: 16.2 kB / 370.7 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.177e-05/0.1091, allocations: 24 kB / 370.8 MB, free: 340 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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.0001172/0.1092, allocations: 145.6 kB / 370.9 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.214e-05/0.1093, allocations: 15.81 kB / 370.9 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1364/0.2457, allocations: 232.4 kB / 371.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.323e-06/0.2458, allocations: 3.312 kB / 371.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.2458, allocations: 0.7031 kB / 371.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2458, allocations: 2.625 kB / 371.1 MB, free: 20.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001319/0.2471, allocations: 0.5927 MB / 371.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2471, allocations: 2.625 kB / 371.7 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.2474, allocations: 55.44 kB / 371.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.2474, allocations: 2.719 kB / 371.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.2475, allocations: 9.391 kB / 371.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.06e-06/0.2475, allocations: 4.219 kB / 371.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.135e-06/0.2475, allocations: 2.203 kB / 371.8 MB, free: 20.52 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008008/0.2483, allocations: 411.5 kB / 372.2 MB, free: 20.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.777e-05/0.2484, allocations: 102.3 kB / 372.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.2484, allocations: 6.234 kB / 372.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002485/0.2487, allocations: 18.77 kB / 372.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.2487, allocations: 10.19 kB / 372.3 MB, free: 20.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/0.2487, allocations: 12.81 kB / 372.4 MB, free: 20.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.325e-05/0.2488, allocations: 115.9 kB / 372.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2488, allocations: 0 / 372.5 MB, free: 20.19 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.2492, allocations: 62.2 kB / 372.5 MB, free: 20.19 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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 Backend phase and start with SimCode phase: time 0.001143/0.2504, allocations: 0.9653 MB / 373.5 MB, free: 19.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.2511, allocations: 231.2 kB / 373.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2511, allocations: 4.547 kB / 373.7 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002611/0.2513, allocations: 98.14 kB / 373.8 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.2517, allocations: 40.69 kB / 373.9 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00303/0.2548, allocations: 2.356 MB / 376.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000141/0.2549, allocations: 0.7246 MB / 376.9 MB, free: 17.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000269/0.2552, allocations: 42.97 kB / 377 MB, free: 17.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.2553, allocations: 52.03 kB / 377 MB, free: 17 MB / 302.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2553, allocations: 0 / 377 MB, free: 17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02084/0.2762, allocations: 4.46 MB / 381.5 MB, free: 16.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.356/7.632, allocations: 9.734 kB / 381.5 MB, free: 16.44 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Modelica_trunk_Modelica_Media_Examples_SimpleLiquidWater.fmu > Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SimpleLiquidWater/SimpleLiquidWater.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.SimpleLiquidWater.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches