Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion,fileNamePrefix="Buildings_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion",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.004825/0.004825, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001242/0.001242, allocations: 197.8 kB / 16.67 MB, free: 5.973 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.566/2.566, allocations: 437 MB / 0.7105 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 63.91 kB / 1.018 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2586, allocations: 151.6 MB / 1.166 GB, free: 7.352 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion): time 0.004543/0.2631, allocations: 3.284 MB / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 9.984e-05/0.2633, allocations: 47.88 kB / 1.169 GB, free: 3.996 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.312e-05/0.2633, allocations: 4 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 9.494e-05/0.2634, allocations: 7.922 kB / 1.169 GB, free: 3.984 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.724e-05/0.2635, allocations: 11.92 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.2641, allocations: 191.1 kB / 1.17 GB, free: 3.789 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.2642, allocations: 39.84 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.2642, allocations: 4 kB / 1.17 GB, free: 3.746 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.437e-05/0.2643, allocations: 19.97 kB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.899e-05/0.2644, allocations: 11.94 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.243e-05/0.2644, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003709/0.2647, allocations: 171.6 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.911e-05/0.2648, allocations: 15.91 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.642e-05/0.2648, allocations: 8 kB / 1.17 GB, free: 3.523 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003133/0.2652, allocations: 131.9 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2652, allocations: 4 kB / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2652, allocations: 0 / 1.17 GB, free: 3.391 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.278e-06/0.2652, allocations: 4 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004052/0.2656, allocations: 343.4 kB / 1.17 GB, free: 3.004 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2657, allocations: 8.031 kB / 1.17 GB, free: 2.996 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.396e-05/0.2657, allocations: 34.69 kB / 1.17 GB, free: 2.953 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.628e-05/0.2657, allocations: 4.938 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.2658, allocations: 164.3 kB / 1.171 GB, free: 2.75 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.432e-05/0.2659, allocations: 30.27 kB / 1.171 GB, free: 2.715 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.376e-05/0.2659, allocations: 8.125 kB / 1.171 GB, free: 2.707 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.2661, allocations: 49.61 kB / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.2661, allocations: 0 / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.07e-05/0.2661, allocations: 0 / 1.171 GB, free: 2.652 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.2661, allocations: 3.984 kB / 1.171 GB, free: 2.648 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.567e-05/0.2662, allocations: 19.94 kB / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.2668, allocations: 0.5794 MB / 1.171 GB, free: 1.926 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 3.979e-05/0.2669, allocations: 22.58 kB / 1.171 GB, free: 1.895 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.685e-05/0.2669, allocations: 12.84 kB / 1.171 GB, free: 1.879 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002325/0.2671, allocations: 340.4 kB / 1.172 GB, free: 1.473 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.504e-05/0.2672, allocations: 34.56 kB / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.2672, allocations: 0 / 1.172 GB, free: 1.43 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001682/0.2673, allocations: 37.64 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.118e-05/0.2674, allocations: 51.41 kB / 1.172 GB, free: 1.324 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.74e-05/0.2675, allocations: 114 kB / 1.172 GB, free: 1.203 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.2675, allocations: 25.7 kB / 1.172 GB, free: 1.172 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.2675, allocations: 84.09 kB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.36e-06/0.2675, allocations: 0 / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.433e-05/0.2676, allocations: 25.66 kB / 1.172 GB, free: 1.055 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.27e-05/0.2677, allocations: 322.8 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.253e-05/0.2677, allocations: 0 / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.351e-05/0.2677, allocations: 17.7 kB / 1.172 GB, free: 0.707 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.505e-05/0.2678, allocations: 29.66 kB / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2678, allocations: 0 / 1.172 GB, free: 0.6719 MB / 0.92 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.147e-05/0.2679, allocations: 45.69 kB / 1.172 GB, free: 0.6211 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.2679, allocations: 8 kB / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.419e-06/0.2679, allocations: 0 / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.2679, allocations: 0 / 1.172 GB, free: 0.6133 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.477e-05/0.268, allocations: 7.938 kB / 1.172 GB, free: 0.6055 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.268, allocations: 4.062 kB / 1.172 GB, free: 0.6016 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.109e-05/0.268, allocations: 7.938 kB / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.268, allocations: 0 / 1.172 GB, free: 0.5938 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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 6.618e-05/0.2681, allocations: 117.8 kB / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.765e-05/0.2681, allocations: 0 / 1.172 GB, free: 480 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001017/0.2682, allocations: 117 kB / 1.173 GB, free: 352 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.488e-05/0.2683, allocations: 180.2 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.394e-05/0.2683, allocations: 184.2 kB / 1.173 GB, free: 15.97 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.529e-05/0.2684, allocations: 184.2 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.2686, allocations: 409.2 kB / 1.173 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-05/0.2687, allocations: 105 kB / 1.174 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.997e-05/0.2687, allocations: 108.9 kB / 1.174 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.238e-05/0.2688, allocations: 184.3 kB / 1.174 GB, free: 14.92 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.641e-05/0.2688, allocations: 180.2 kB / 1.174 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.688e-05/0.2689, allocations: 188.1 kB / 1.174 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.076e-05/0.2689, allocations: 180.3 kB / 1.174 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.2691, allocations: 315.7 kB / 1.175 GB, free: 14.03 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.788e-05/0.2691, allocations: 186 kB / 1.175 GB, free: 13.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.764e-05/0.2692, allocations: 180.3 kB / 1.175 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.2694, allocations: 105 kB / 1.175 GB, free: 13.53 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.465e-05/0.2694, allocations: 184.2 kB / 1.175 GB, free: 13.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/0.2695, allocations: 109 kB / 1.175 GB, free: 13.23 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 3.93e-05/0.2695, allocations: 83.28 kB / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2695, allocations: 0 / 1.176 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002839/0.2698, allocations: 43.8 kB / 1.176 GB, free: 13.1 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (0): * Single equations (assignments): 0 * 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.0005109/0.2703, allocations: 0.8632 MB / 1.176 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 6.445e-05/0.2704, allocations: 7.984 kB / 1.176 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.2704, allocations: 0 / 1.176 GB, free: 12.2 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.591e-06/0.2704, allocations: 7.938 kB / 1.176 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004309/0.2709, allocations: 463.8 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009493/0.2718, allocations: 1.321 MB / 1.178 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.272, allocations: 0.6768 MB / 1.179 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.181e-05/0.2721, allocations: 14.81 kB / 1.179 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.31e-05/0.2721, allocations: 7.438 kB / 1.179 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of SimCode: time 3.61e-07/0.2721, allocations: 0 / 1.179 GB, free: 9.605 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.033/0.3051, allocations: 2.17 MB / 1.181 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.253/7.558, allocations: 12.11 kB / 1.181 GB, free: 7.621 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.fmu > Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Water_Examples_TemperatureDependentDensityTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Water.Examples.TemperatureDependentDensityTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches