Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_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.00509/0.00509, allocations: 99.95 kB / 15.73 MB, free: 6.059 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.001314/0.001314, allocations: 189.4 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.617/2.617, allocations: 469.4 MB / 0.7422 GB, free: 3.48 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.00128, allocations: 59.89 kB / 1.064 GB, free: 14.28 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7238/0.7251, allocations: 159.1 MB / 1.22 GB, free: 2.23 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.005067/0.7302, allocations: 4.023 MB / 1.224 GB, free: 14.17 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001938/0.7304, allocations: 159.5 kB / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.677e-05/0.7305, allocations: 0 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 9.272e-05/0.7306, allocations: 0 / 1.224 GB, free: 14.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.049e-05/0.7306, allocations: 11.92 kB / 1.224 GB, free: 14 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.731, allocations: 79.75 kB / 1.224 GB, free: 13.93 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.683e-05/0.7311, allocations: 39.78 kB / 1.224 GB, free: 13.89 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.095e-05/0.7312, allocations: 8 kB / 1.224 GB, free: 13.88 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.089e-05/0.7312, allocations: 15.97 kB / 1.224 GB, free: 13.86 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.824e-05/0.7313, allocations: 11.94 kB / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.7313, allocations: 0 / 1.224 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002028/0.7315, allocations: 55.81 kB / 1.224 GB, free: 13.8 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.978e-05/0.7316, allocations: 15.91 kB / 1.224 GB, free: 13.78 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.662e-05/0.7316, allocations: 8 kB / 1.224 GB, free: 13.77 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.7317, allocations: 42.56 kB / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.7318, allocations: 0 / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7318, allocations: 0 / 1.224 GB, free: 13.73 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.068e-06/0.7318, allocations: 4 kB / 1.224 GB, free: 13.73 MB / 0.9512 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.0003556/0.7321, allocations: 332.4 kB / 1.224 GB, free: 13.36 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.7322, allocations: 12.62 kB / 1.224 GB, free: 13.35 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.349e-05/0.7322, allocations: 34.75 kB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.7323, allocations: 0.9375 kB / 1.224 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.7324, allocations: 168.3 kB / 1.225 GB, free: 13.1 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.615e-05/0.7324, allocations: 30.27 kB / 1.225 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.837e-06/0.7324, allocations: 4.125 kB / 1.225 GB, free: 13.06 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.7326, allocations: 49.62 kB / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.141e-06/0.7326, allocations: 0 / 1.225 GB, free: 13.01 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.156e-05/0.7326, allocations: 4 kB / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.673e-05/0.7326, allocations: 0 / 1.225 GB, free: 13 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.176e-05/0.7327, allocations: 11.98 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004557/0.7331, allocations: 334 kB / 1.225 GB, free: 12.6 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 3.64e-05/0.7332, allocations: 14.58 kB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.727e-05/0.7332, allocations: 20.86 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 9.853e-05/0.7333, allocations: 93.03 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/0.7333, allocations: 30.56 kB / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.523e-06/0.7333, allocations: 0 / 1.225 GB, free: 12.4 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001455/0.7335, allocations: 33.7 kB / 1.225 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.7335, allocations: 51.41 kB / 1.225 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.732e-05/0.7336, allocations: 109.8 kB / 1.225 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.7336, allocations: 29.83 kB / 1.225 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.861e-05/0.7337, allocations: 84.09 kB / 1.225 GB, free: 12.06 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 6.563e-06/0.7337, allocations: 7.891 kB / 1.225 GB, free: 12.05 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.7338, allocations: 21.7 kB / 1.225 GB, free: 12.03 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.7339, allocations: 314.8 kB / 1.226 GB, free: 11.71 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.7339, allocations: 7.938 kB / 1.226 GB, free: 11.7 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.342e-05/0.7339, allocations: 17.72 kB / 1.226 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.676e-05/0.7339, allocations: 25.7 kB / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.734, allocations: 0 / 1.226 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.663e-05/0.734, allocations: 45.64 kB / 1.226 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.7341, allocations: 7.984 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.7341, allocations: 4 kB / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.171e-05/0.7341, allocations: 0 / 1.226 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.362e-05/0.7341, allocations: 4 kB / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.7341, allocations: 0 / 1.226 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.142e-05/0.7342, allocations: 8 kB / 1.226 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.7342, allocations: 4 kB / 1.226 GB, free: 11.57 MB / 0.9512 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 8.109e-05/0.7343, allocations: 114.3 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.773e-05/0.7343, allocations: 4 kB / 1.226 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.7344, allocations: 116.9 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-05/0.7345, allocations: 184.3 kB / 1.226 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.921e-05/0.7346, allocations: 184.2 kB / 1.226 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-05/0.7347, allocations: 184.2 kB / 1.227 GB, free: 10.76 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.7349, allocations: 409.2 kB / 1.227 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.178e-05/0.7349, allocations: 104.9 kB / 1.227 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.851e-05/0.735, allocations: 105 kB / 1.227 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.872e-05/0.735, allocations: 188.2 kB / 1.227 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.463e-05/0.7351, allocations: 176.3 kB / 1.228 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.281e-05/0.7352, allocations: 180.2 kB / 1.228 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.637e-05/0.7353, allocations: 180.2 kB / 1.228 GB, free: 9.348 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.7354, allocations: 319.7 kB / 1.228 GB, free: 9.012 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.654e-05/0.7355, allocations: 178.1 kB / 1.228 GB, free: 8.812 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.416e-05/0.7356, allocations: 184.2 kB / 1.229 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001517/0.7357, allocations: 109 kB / 1.229 GB, free: 8.512 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.7358, allocations: 176.3 kB / 1.229 GB, free: 8.332 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.541e-05/0.7359, allocations: 104.9 kB / 1.229 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.928e-05/0.7359, allocations: 95.2 kB / 1.229 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.613e-06/0.7359, allocations: 0 / 1.229 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002763/0.7362, allocations: 27.81 kB / 1.229 GB, free: 8.102 MB / 0.9512 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.0004672/0.7367, allocations: 0.8282 MB / 1.23 GB, free: 7.246 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.024e-05/0.7368, allocations: 15.92 kB / 1.23 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.7368, allocations: 0 / 1.23 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.573e-06/0.7368, allocations: 0 / 1.23 GB, free: 7.23 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.7372, allocations: 461.4 kB / 1.23 GB, free: 6.777 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009622/0.7381, allocations: 1.317 MB / 1.232 GB, free: 5.375 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.7384, allocations: 0.6806 MB / 1.232 GB, free: 4.668 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 4.099e-05/0.7385, allocations: 4 kB / 1.232 GB, free: 4.664 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.7385, allocations: 11.44 kB / 1.232 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of SimCode: time 2.5e-07/0.7385, allocations: 0 / 1.232 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.7562, allocations: 1.517 MB / 1.234 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/8.138, allocations: 13.88 kB / 1.234 GB, free: 3.238 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches