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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.002331/0.002331, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.004326/0.004327, allocations: 195.9 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.243/2.243, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 4.217/4.217, allocations: 461.9 MB / 0.7343 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 66.17 kB / 0.8987 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5265/0.5278, allocations: 157.4 MB / 1.052 GB, free: 8.645 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterTemperatureEnthalpyInversion): time 0.006709/0.5346, allocations: 4.06 MB / 1.056 GB, free: 4.555 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0002424/0.5349, allocations: 167.4 kB / 1.057 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.659e-05/0.5349, allocations: 0 / 1.057 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.535, allocations: 3.984 kB / 1.057 GB, free: 4.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 9.196e-05/0.5352, allocations: 15.92 kB / 1.057 GB, free: 4.371 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003819/0.5356, allocations: 79.75 kB / 1.057 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.198e-05/0.5357, allocations: 27.92 kB / 1.057 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.621e-05/0.5357, allocations: 4 kB / 1.057 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.215e-05/0.5358, allocations: 11.98 kB / 1.057 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.516e-05/0.5359, allocations: 23.86 kB / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.374e-05/0.5359, allocations: 0 / 1.057 GB, free: 4.227 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.5361, allocations: 55.8 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 4.78e-05/0.5362, allocations: 12 kB / 1.057 GB, free: 4.16 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.34e-05/0.5362, allocations: 7.984 kB / 1.057 GB, free: 4.152 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001466/0.5364, allocations: 44.17 kB / 1.057 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.5364, allocations: 4 kB / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5364, allocations: 0 / 1.057 GB, free: 4.105 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.5364, allocations: 0 / 1.057 GB, free: 4.105 MB / 0.8106 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.0004728/0.5369, allocations: 335.5 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.5369, allocations: 8.625 kB / 1.057 GB, free: 3.723 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.823e-05/0.537, allocations: 34.73 kB / 1.057 GB, free: 3.68 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.537, allocations: 8.938 kB / 1.057 GB, free: 3.672 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.5372, allocations: 164.3 kB / 1.057 GB, free: 3.473 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.055e-05/0.5373, allocations: 26.27 kB / 1.057 GB, free: 3.441 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.576e-05/0.5373, allocations: 12.06 kB / 1.057 GB, free: 3.43 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.5375, allocations: 49.61 kB / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.5375, allocations: 0 / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.147e-05/0.5375, allocations: 0 / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.354e-05/0.5375, allocations: 0 / 1.057 GB, free: 3.375 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.983e-05/0.5376, allocations: 15.98 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000549/0.5381, allocations: 338 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.203e-05/0.5382, allocations: 22.52 kB / 1.058 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.883e-05/0.5382, allocations: 4.859 kB / 1.058 GB, free: 2.922 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001113/0.5383, allocations: 89.16 kB / 1.058 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.5384, allocations: 30.56 kB / 1.058 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.5384, allocations: 7.938 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.000176/0.5386, allocations: 33.7 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.5386, allocations: 51.41 kB / 1.058 GB, free: 2.668 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.5387, allocations: 105.8 kB / 1.058 GB, free: 2.555 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.895e-05/0.5388, allocations: 25.7 kB / 1.058 GB, free: 2.523 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.5388, allocations: 95.98 kB / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 6.523e-06/0.5388, allocations: 0 / 1.058 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.14e-05/0.5389, allocations: 21.61 kB / 1.058 GB, free: 2.398 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.5391, allocations: 322.9 kB / 1.059 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.874e-05/0.5391, allocations: 4 kB / 1.059 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.775e-05/0.5391, allocations: 17.7 kB / 1.059 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.982e-05/0.5392, allocations: 17.72 kB / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.5392, allocations: 0 / 1.059 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.164e-05/0.5393, allocations: 57.66 kB / 1.059 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.5393, allocations: 4 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.5393, allocations: 0 / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.5393, allocations: 0 / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.5394, allocations: 8 kB / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.5394, allocations: 0 / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.129e-05/0.5394, allocations: 0 / 1.059 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.5394, allocations: 0 / 1.059 GB, free: 1.949 MB / 0.8106 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 9.926e-05/0.5395, allocations: 117.8 kB / 1.059 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.172e-05/0.5396, allocations: 7.922 kB / 1.059 GB, free: 1.816 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000119/0.5397, allocations: 121 kB / 1.059 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.603e-05/0.5398, allocations: 176.3 kB / 1.059 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.758e-05/0.5399, allocations: 184.2 kB / 1.059 GB, free: 1.32 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.331e-05/0.54, allocations: 180.5 kB / 1.059 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000275/0.5402, allocations: 417.1 kB / 1.06 GB, free: 0.6719 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-05/0.5403, allocations: 101 kB / 1.06 GB, free: 0.5664 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.484e-05/0.5403, allocations: 101 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.216e-05/0.5404, allocations: 180.2 kB / 1.06 GB, free: 284 kB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-05/0.5405, allocations: 188.2 kB / 1.06 GB, free: 88 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001085/0.5406, allocations: 192.1 kB / 1.06 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.732e-05/0.5407, allocations: 180.3 kB / 1.061 GB, free: 15.71 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001966/0.5409, allocations: 307.8 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.951e-05/0.541, allocations: 182.1 kB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.5411, allocations: 196.2 kB / 1.061 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001911/0.5413, allocations: 109 kB / 1.061 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5414, allocations: 184.2 kB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.757e-05/0.5415, allocations: 105 kB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.201e-05/0.5416, allocations: 83.28 kB / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5416, allocations: 0 / 1.062 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003082/0.5419, allocations: 15.94 kB / 1.062 GB, free: 14.47 MB / 0.8262 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.0007436/0.5426, allocations: 0.836 MB / 1.063 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.924e-05/0.5427, allocations: 7.984 kB / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.5428, allocations: 0 / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.334e-06/0.5428, allocations: 0 / 1.063 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.5432, allocations: 467.1 kB / 1.063 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.5446, allocations: 1.324 MB / 1.064 GB, free: 11.73 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003429/0.545, allocations: 0.6729 MB / 1.065 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 5.518e-05/0.5451, allocations: 8 kB / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.646e-05/0.5451, allocations: 11.44 kB / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of SimCode: time 8.01e-07/0.5451, allocations: 0 / 1.065 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.499/1.044, allocations: 1.399 MB / 1.066 GB, free: 9.75 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003238/1.044, allocations: 213.9 kB / 1.067 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.83/4.875, allocations: 7.938 kB / 1.067 GB, free: 9.488 MB / 0.8262 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Media_Examples_WaterTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterTemperatureEnthalpyInversion_res.mat","/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