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.005765/0.005766, allocations: 101.4 kB / 15.73 MB, free: 6.055 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.001189/0.00119, allocations: 199.9 kB / 16.68 MB, free: 5.969 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.336/1.336, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.252/2.252, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.91 kB / 0.9504 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8389/0.8403, allocations: 140.3 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.004659/0.845, allocations: 4.018 MB / 1.091 GB, free: 2.395 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0002269/0.8452, allocations: 157 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.8453, allocations: 0.625 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.8454, allocations: 9.969 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.836e-05/0.8455, allocations: 12.62 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004036/0.8459, allocations: 82.67 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001182/0.8461, allocations: 33.86 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.702e-05/0.8461, allocations: 2.266 kB / 1.092 GB, free: 2.219 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.392e-05/0.8462, allocations: 15.88 kB / 1.092 GB, free: 2.215 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 8.991e-05/0.8463, allocations: 16.42 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.8463, allocations: 4.812 kB / 1.092 GB, free: 2.203 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002099/0.8465, allocations: 61.14 kB / 1.092 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.714e-05/0.8466, allocations: 8.734 kB / 1.092 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.106e-05/0.8466, allocations: 10.27 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.8467, allocations: 39.8 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.8467, allocations: 1.094 kB / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8468, allocations: 0 / 1.092 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.8468, allocations: 0 / 1.092 GB, free: 2.16 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.0003466/0.8471, allocations: 338 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.8472, allocations: 13.25 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.923e-05/0.8472, allocations: 32.39 kB / 1.092 GB, free: 1.758 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.297e-05/0.8472, allocations: 6.469 kB / 1.092 GB, free: 1.754 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.822e-05/0.8473, allocations: 162.5 kB / 1.092 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.8474, allocations: 28.36 kB / 1.092 GB, free: 1.527 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.8474, allocations: 13.12 kB / 1.092 GB, free: 1.516 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.8475, allocations: 43.75 kB / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.8475, allocations: 0 / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.378e-06/0.8475, allocations: 0 / 1.092 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.737e-05/0.8476, allocations: 6.844 kB / 1.092 GB, free: 1.477 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.602e-05/0.8476, allocations: 19.81 kB / 1.092 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003846/0.848, allocations: 336.9 kB / 1.093 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 3.153e-05/0.848, allocations: 16.89 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.503e-05/0.8481, allocations: 10.38 kB / 1.093 GB, free: 1.062 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 6.977e-05/0.8481, allocations: 84.14 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.805e-05/0.8482, allocations: 36.03 kB / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=1): time 1.203e-06/0.8482, allocations: 0 / 1.093 GB, free: 0.9258 MB / 0.8575 GB Notification: Performance of matching and sorting (n=1): time 0.0001353/0.8483, allocations: 41.52 kB / 1.093 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.12e-05/0.8483, allocations: 52.06 kB / 1.093 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.087e-05/0.8484, allocations: 103.3 kB / 1.093 GB, free: 0.7227 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.8484, allocations: 25.7 kB / 1.093 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.947e-05/0.8485, allocations: 87 kB / 1.093 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.071e-06/0.8485, allocations: 12.62 kB / 1.093 GB, free: 0.5938 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-05/0.8485, allocations: 15.19 kB / 1.093 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.331e-05/0.8486, allocations: 320.6 kB / 1.094 GB, free: 264 kB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.8486, allocations: 2.891 kB / 1.094 GB, free: 264 kB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.127e-05/0.8486, allocations: 15.55 kB / 1.094 GB, free: 248 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.494e-05/0.8486, allocations: 25.34 kB / 1.094 GB, free: 224 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8486, allocations: 4 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.714e-05/0.8487, allocations: 46.58 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/0.8488, allocations: 7.594 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.8488, allocations: 0.75 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.8488, allocations: 5.453 kB / 1.094 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.544e-05/0.8488, allocations: 6.234 kB / 1.094 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.8488, allocations: 4.5 kB / 1.094 GB, free: 176 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.948e-05/0.8489, allocations: 5.656 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.8489, allocations: 2.594 kB / 1.094 GB, free: 172 kB / 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 4.538e-05/0.8489, allocations: 116.2 kB / 1.094 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.849, allocations: 1.406 kB / 1.094 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001116/0.8491, allocations: 118.5 kB / 1.094 GB, free: 15.92 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.73e-05/0.8491, allocations: 182.1 kB / 1.094 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.478e-05/0.8492, allocations: 185.8 kB / 1.094 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.848e-05/0.8493, allocations: 186.1 kB / 1.094 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000211/0.8495, allocations: 408.1 kB / 1.095 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.41e-05/0.8495, allocations: 102.3 kB / 1.095 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.973e-05/0.8496, allocations: 110.7 kB / 1.095 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.759e-05/0.8496, allocations: 181.8 kB / 1.095 GB, free: 14.51 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.745e-05/0.8497, allocations: 182.5 kB / 1.095 GB, free: 14.33 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.126e-05/0.8498, allocations: 181.8 kB / 1.096 GB, free: 14.14 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.888e-05/0.8498, allocations: 181.5 kB / 1.096 GB, free: 13.96 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001262/0.85, allocations: 311 kB / 1.096 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.825e-05/0.85, allocations: 183.9 kB / 1.096 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.724e-05/0.8501, allocations: 183 kB / 1.096 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.8503, allocations: 108.9 kB / 1.096 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.224e-05/0.8503, allocations: 178.3 kB / 1.097 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.126e-05/0.8504, allocations: 102.6 kB / 1.097 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.876e-05/0.8504, allocations: 86.12 kB / 1.097 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.01e-07/0.8504, allocations: 0 / 1.097 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002544/0.8507, allocations: 21.33 kB / 1.097 GB, free: 12.77 MB / 0.8731 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.0005116/0.8512, allocations: 0.8268 MB / 1.098 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 7.789e-05/0.8513, allocations: 11.38 kB / 1.098 GB, free: 11.96 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.8513, allocations: 5 kB / 1.098 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 2.866e-06/0.8513, allocations: 7.875 kB / 1.098 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.8518, allocations: 456.3 kB / 1.098 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009998/0.8528, allocations: 1.33 MB / 1.099 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002252/0.853, allocations: 0.6742 MB / 1.1 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.073e-05/0.8531, allocations: 5.594 kB / 1.1 GB, free: 9.465 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.8531, allocations: 13.5 kB / 1.1 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of SimCode: time 5.51e-07/0.8531, allocations: 0 / 1.1 GB, free: 9.453 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.8704, allocations: 1.502 MB / 1.102 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.532/8.403, allocations: 11.7 kB / 1.102 GB, free: 9.055 MB / 0.8731 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