Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",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.007381/0.007381, allocations: 99.47 kB / 15.73 MB, free: 6.449 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.00186/0.00186, allocations: 200 kB / 16.68 MB, free: 6.352 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.381/2.381, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 62 kB / 0.9504 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2623/0.2636, allocations: 140.4 MB / 1.087 GB, free: 2.023 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.009855/0.2735, allocations: 4.014 MB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003697/0.274, allocations: 159.4 kB / 1.092 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.721e-05/0.274, allocations: 0 / 1.092 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.2743, allocations: 0 / 1.092 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.2744, allocations: 19.91 kB / 1.092 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.275, allocations: 86.19 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.2751, allocations: 27.92 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.706e-05/0.2752, allocations: 7.984 kB / 1.092 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.966e-05/0.2752, allocations: 15.92 kB / 1.092 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000111/0.2754, allocations: 15.94 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.2754, allocations: 3.984 kB / 1.092 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003/0.2757, allocations: 55.81 kB / 1.092 GB, free: 13.6 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.524e-05/0.2758, allocations: 11.98 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.547e-05/0.2758, allocations: 4 kB / 1.092 GB, free: 13.59 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002036/0.2761, allocations: 52.11 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2761, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2761, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.2761, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 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.0005662/0.2767, allocations: 331.5 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.2768, allocations: 12.03 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.2768, allocations: 30.75 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.064e-05/0.2769, allocations: 8.875 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.277, allocations: 160.4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.358e-05/0.2771, allocations: 38.2 kB / 1.092 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.206e-05/0.2772, allocations: 4.125 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/0.2773, allocations: 45.67 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.2774, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.2774, allocations: 4 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.206e-05/0.2774, allocations: 0 / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.269e-05/0.2775, allocations: 19.97 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005626/0.2781, allocations: 338 kB / 1.093 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.92e-05/0.2782, allocations: 18.52 kB / 1.093 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.021e-05/0.2782, allocations: 12.86 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000119/0.2783, allocations: 85.09 kB / 1.093 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.29e-05/0.2784, allocations: 30.56 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.664e-06/0.2784, allocations: 0 / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001922/0.2786, allocations: 37.8 kB / 1.093 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.818e-05/0.2786, allocations: 59.38 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.2788, allocations: 101.8 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.2788, allocations: 29.7 kB / 1.093 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.961e-05/0.2789, allocations: 88.03 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.298e-06/0.2789, allocations: 3.953 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.547e-05/0.2789, allocations: 17.7 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000154/0.2791, allocations: 322.7 kB / 1.094 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.464e-05/0.2792, allocations: 8 kB / 1.094 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.439e-05/0.2792, allocations: 13.72 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.317e-05/0.2793, allocations: 25.7 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2793, allocations: 0 / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000117/0.2794, allocations: 49.62 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.2794, allocations: 4 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.2795, allocations: 4.062 kB / 1.094 GB, free: 11.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.2795, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.356e-05/0.2795, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.2796, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.051e-05/0.2796, allocations: 0 / 1.094 GB, free: 11.38 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.2796, allocations: 4 kB / 1.094 GB, free: 11.38 MB / 0.8575 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 0.0001013/0.2797, allocations: 113.7 kB / 1.094 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.551e-05/0.2798, allocations: 11.94 kB / 1.094 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001519/0.28, allocations: 117 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.391e-05/0.28, allocations: 184.2 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.668e-05/0.2801, allocations: 176.3 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.194e-05/0.2802, allocations: 184.2 kB / 1.094 GB, free: 10.56 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003236/0.2806, allocations: 417.1 kB / 1.095 GB, free: 10.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.614e-05/0.2806, allocations: 105 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.072e-05/0.2807, allocations: 104.9 kB / 1.095 GB, free: 9.875 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.732e-05/0.2808, allocations: 184.3 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.557e-05/0.2808, allocations: 176.3 kB / 1.095 GB, free: 9.508 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-05/0.2809, allocations: 180.2 kB / 1.096 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.26e-05/0.281, allocations: 184.2 kB / 1.096 GB, free: 9.137 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.2812, allocations: 315.7 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.2813, allocations: 178.1 kB / 1.096 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.2814, allocations: 184.2 kB / 1.096 GB, free: 8.418 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2816, allocations: 105 kB / 1.096 GB, free: 8.309 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.229e-05/0.2817, allocations: 184.2 kB / 1.097 GB, free: 8.121 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.263e-05/0.2818, allocations: 105 kB / 1.097 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.441e-05/0.2819, allocations: 87.28 kB / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2819, allocations: 0 / 1.097 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004315/0.2823, allocations: 19.88 kB / 1.097 GB, free: 7.906 MB / 0.8575 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.0006948/0.283, allocations: 0.8321 MB / 1.098 GB, free: 7.047 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001146/0.2831, allocations: 11.98 kB / 1.098 GB, free: 7.035 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.2832, allocations: 4 kB / 1.098 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.274e-06/0.2832, allocations: 0 / 1.098 GB, free: 7.031 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005863/0.2838, allocations: 463.8 kB / 1.098 GB, free: 6.574 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/0.2852, allocations: 1.317 MB / 1.099 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.2855, allocations: 0.6768 MB / 1.1 GB, free: 4.469 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.964e-05/0.2856, allocations: 8.422 kB / 1.1 GB, free: 4.461 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.2857, allocations: 19.42 kB / 1.1 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.2857, allocations: 0 / 1.1 GB, free: 4.441 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02238/0.3081, allocations: 1.506 MB / 1.102 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.541/7.849, allocations: 4 kB / 1.102 GB, free: 3.031 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches