Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion",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.00423/0.00423, allocations: 97.92 kB / 15.73 MB, free: 6.062 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.001263/0.001263, allocations: 194.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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.821/2.821, allocations: 482.4 MB / 0.7548 GB, free: 6.871 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 67 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2752/0.2771, allocations: 162.2 MB / 1.241 GB, free: 9.203 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1658/0.4429, allocations: 148.3 MB / 1.386 GB, free: 4.34 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.0001312/0.4431, allocations: 51.81 kB / 1.386 GB, free: 4.289 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.148e-05/0.4431, allocations: 0 / 1.386 GB, free: 4.289 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 9.792e-05/0.4433, allocations: 3.984 kB / 1.386 GB, free: 4.285 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 7.362e-05/0.4433, allocations: 15.92 kB / 1.386 GB, free: 4.27 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.000713/0.4441, allocations: 219.2 kB / 1.387 GB, free: 4.055 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 8.764e-05/0.4442, allocations: 35.84 kB / 1.387 GB, free: 4.02 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 3.124e-05/0.4442, allocations: 0 / 1.387 GB, free: 4.02 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 3.757e-05/0.4442, allocations: 12 kB / 1.387 GB, free: 4.008 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 6.192e-05/0.4443, allocations: 15.91 kB / 1.387 GB, free: 3.992 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.4443, allocations: 0 / 1.387 GB, free: 3.992 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004278/0.4448, allocations: 203.4 kB / 1.387 GB, free: 3.793 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 3.916e-05/0.4448, allocations: 11.98 kB / 1.387 GB, free: 3.781 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 3.233e-05/0.4449, allocations: 11.94 kB / 1.387 GB, free: 3.77 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.4451, allocations: 111.9 kB / 1.387 GB, free: 3.66 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.4451, allocations: 4 kB / 1.387 GB, free: 3.656 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4451, allocations: 0 / 1.387 GB, free: 3.656 MB / 1.107 GB Notification: Performance of Transformations before backend: time 5.942e-06/0.4451, allocations: 3.984 kB / 1.387 GB, free: 3.652 MB / 1.107 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004077/0.4456, allocations: 339.3 kB / 1.387 GB, free: 3.273 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.4456, allocations: 12.03 kB / 1.387 GB, free: 3.262 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.907e-05/0.4456, allocations: 38.75 kB / 1.387 GB, free: 3.215 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002959/0.4459, allocations: 28.91 kB / 1.387 GB, free: 3.188 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.4461, allocations: 168.1 kB / 1.387 GB, free: 2.984 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/0.4461, allocations: 25.7 kB / 1.387 GB, free: 2.953 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.4462, allocations: 4 kB / 1.387 GB, free: 2.949 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001271/0.4463, allocations: 53.66 kB / 1.388 GB, free: 2.891 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.143e-06/0.4463, allocations: 3.938 kB / 1.388 GB, free: 2.887 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.829e-06/0.4463, allocations: 0 / 1.388 GB, free: 2.887 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.4464, allocations: 0 / 1.388 GB, free: 2.887 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.691e-05/0.4464, allocations: 31.92 kB / 1.388 GB, free: 2.855 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003521/0.4468, allocations: 252.9 kB / 1.388 GB, free: 2.559 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 5.005e-05/0.4468, allocations: 26.58 kB / 1.388 GB, free: 2.523 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.848e-05/0.4469, allocations: 4.859 kB / 1.388 GB, free: 2.516 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001613/0.447, allocations: 97.16 kB / 1.388 GB, free: 2.402 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.906e-05/0.4471, allocations: 34.56 kB / 1.388 GB, free: 2.359 MB / 1.107 GB Notification: Performance of pre-optimization done (n=2): time 3.025e-06/0.4471, allocations: 0 / 1.388 GB, free: 2.359 MB / 1.107 GB Notification: Performance of matching and sorting (n=2): time 0.0002335/0.4473, allocations: 49.62 kB / 1.388 GB, free: 2.305 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.4474, allocations: 59.34 kB / 1.388 GB, free: 2.234 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.147e-05/0.4474, allocations: 97.84 kB / 1.388 GB, free: 2.129 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.4475, allocations: 29.7 kB / 1.388 GB, free: 2.094 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 5.236e-05/0.4475, allocations: 96.2 kB / 1.388 GB, free: 1.996 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 8.606e-06/0.4476, allocations: 3.953 kB / 1.388 GB, free: 1.992 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.652e-05/0.4476, allocations: 21.7 kB / 1.388 GB, free: 1.965 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.4477, allocations: 310.8 kB / 1.389 GB, free: 1.652 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.942e-05/0.4477, allocations: 4 kB / 1.389 GB, free: 1.648 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.228e-05/0.4478, allocations: 30.5 kB / 1.389 GB, free: 1.609 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.099e-05/0.4478, allocations: 34.52 kB / 1.389 GB, free: 1.566 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.4478, allocations: 4 kB / 1.389 GB, free: 1.562 MB / 1.107 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.836e-05/0.4479, allocations: 53.62 kB / 1.389 GB, free: 1.504 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.448, allocations: 4 kB / 1.389 GB, free: 1.5 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.448, allocations: 0 / 1.389 GB, free: 1.5 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.06e-05/0.448, allocations: 0 / 1.389 GB, free: 1.5 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.39e-05/0.448, allocations: 8.094 kB / 1.389 GB, free: 1.492 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.4481, allocations: 11.88 kB / 1.389 GB, free: 1.48 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.404e-05/0.4481, allocations: 11.89 kB / 1.389 GB, free: 1.469 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.4481, allocations: 0 / 1.389 GB, free: 1.469 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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.199e-05/0.4482, allocations: 114.4 kB / 1.389 GB, free: 1.348 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.4482, allocations: 0 / 1.389 GB, free: 1.348 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.956e-05/0.4483, allocations: 7.125 kB / 1.389 GB, free: 1.344 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.4483, allocations: 0 / 1.389 GB, free: 1.344 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4483, allocations: 3.938 kB / 1.389 GB, free: 1.34 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-06/0.4483, allocations: 4 kB / 1.389 GB, free: 1.336 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003225/0.4486, allocations: 363.6 kB / 1.389 GB, free: 0.918 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.4486, allocations: 0 / 1.389 GB, free: 0.918 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.92e-05/0.4487, allocations: 7.938 kB / 1.389 GB, free: 0.9102 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.4487, allocations: 0 / 1.389 GB, free: 0.9102 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-06/0.4487, allocations: 0 / 1.389 GB, free: 0.9102 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.029e-06/0.4487, allocations: 7.984 kB / 1.389 GB, free: 0.9023 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4487, allocations: 7.938 kB / 1.389 GB, free: 0.8945 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.865e-05/0.4488, allocations: 77.94 kB / 1.389 GB, free: 0.7969 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 4.481e-05/0.4488, allocations: 85.05 kB / 1.389 GB, free: 0.6953 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.4489, allocations: 0 / 1.389 GB, free: 0.6953 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.199e-05/0.4489, allocations: 0 / 1.389 GB, free: 0.6953 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.959e-05/0.449, allocations: 7.984 kB / 1.389 GB, free: 0.6875 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.494e-06/0.449, allocations: 288 / 1.389 GB, free: 0.6875 MB / 1.107 GB Notification: Performance of sorting global known variables: time 4.79e-05/0.449, allocations: 91.3 kB / 1.39 GB, free: 0.5977 MB / 1.107 GB Notification: Performance of sort global known variables: time 2.01e-07/0.449, allocations: 0 / 1.39 GB, free: 0.5977 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.0002042/0.4492, allocations: 8 kB / 1.39 GB, free: 0.5898 MB / 1.107 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0004179/0.4497, allocations: 0.6094 MB / 1.39 GB, free: 15.95 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 8.228e-05/0.4498, allocations: 11.94 kB / 1.39 GB, free: 15.94 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4498, allocations: 0 / 1.39 GB, free: 15.94 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 1.492e-05/0.4498, allocations: 15.86 kB / 1.39 GB, free: 15.92 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.45, allocations: 8 kB / 1.39 GB, free: 15.91 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003613/0.4504, allocations: 141.5 kB / 1.39 GB, free: 15.73 MB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002863/0.4507, allocations: 0.6768 MB / 1.391 GB, free: 15.03 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 4.727e-05/0.4507, allocations: 4 kB / 1.391 GB, free: 15.02 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.344e-05/0.4508, allocations: 15.42 kB / 1.391 GB, free: 15.01 MB / 1.123 GB Notification: Performance of SimCode: time 2.41e-07/0.4508, allocations: 0 / 1.391 GB, free: 15.01 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.4717, allocations: 1.455 MB / 1.392 GB, free: 13.66 MB / 1.123 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.439/7.911, allocations: 7.875 kB / 1.392 GB, free: 13.65 MB / 1.123 GB (rm -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Examples_AirTemperatureEnthalpyInversion.fmu > Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches