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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 179.3 kB / 16.92 MB, free: 6.652 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.402/1.402, allocations: 223.3 MB / 241 MB, free: 5.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.715/2.715, allocations: 462.7 MB / 0.7371 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003912/0.0003912, allocations: 8.781 kB / 0.9034 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3254, allocations: 159.6 MB / 1.059 GB, free: 4.957 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1578/0.4833, allocations: 144.2 MB / 1.2 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001113/0.4835, allocations: 43.88 kB / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.685e-05/0.4835, allocations: 0 / 1.2 GB, free: 4.199 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001044/0.4836, allocations: 7.922 kB / 1.2 GB, free: 4.191 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 7.365e-05/0.4837, allocations: 11.98 kB / 1.2 GB, free: 4.18 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006572/0.4844, allocations: 202.2 kB / 1.2 GB, free: 3.984 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.824e-05/0.4845, allocations: 51.88 kB / 1.2 GB, free: 3.934 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.211e-05/0.4845, allocations: 11.98 kB / 1.2 GB, free: 3.922 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.702e-05/0.4845, allocations: 15.88 kB / 1.2 GB, free: 3.906 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.737e-05/0.4846, allocations: 15.97 kB / 1.2 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.123e-05/0.4846, allocations: 0 / 1.2 GB, free: 3.891 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004247/0.4851, allocations: 231.3 kB / 1.201 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 4.316e-05/0.4851, allocations: 12 kB / 1.201 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.893e-05/0.4852, allocations: 37.62 kB / 1.201 GB, free: 3.609 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.4854, allocations: 80.11 kB / 1.201 GB, free: 3.531 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.4854, allocations: 0 / 1.201 GB, free: 3.531 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4854, allocations: 0 / 1.201 GB, free: 3.531 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.847e-06/0.4854, allocations: 0 / 1.201 GB, free: 3.531 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003578/0.4857, allocations: 331.6 kB / 1.201 GB, free: 3.16 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.4858, allocations: 11.97 kB / 1.201 GB, free: 3.148 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003123/0.4861, allocations: 24.92 kB / 1.201 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.4862, allocations: 172.3 kB / 1.201 GB, free: 2.918 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.316e-05/0.4863, allocations: 33.58 kB / 1.201 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.4863, allocations: 0 / 1.201 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001321/0.4864, allocations: 53.62 kB / 1.201 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.4865, allocations: 0 / 1.201 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.4865, allocations: 0 / 1.201 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.4865, allocations: 3.984 kB / 1.201 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.577e-05/0.4866, allocations: 23.98 kB / 1.201 GB, free: 2.793 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003375/0.4869, allocations: 256.8 kB / 1.202 GB, free: 2.492 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.614e-05/0.487, allocations: 34.56 kB / 1.202 GB, free: 2.449 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.906e-05/0.487, allocations: 4.859 kB / 1.202 GB, free: 2.441 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001573/0.4872, allocations: 101 kB / 1.202 GB, free: 2.324 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.4872, allocations: 42.56 kB / 1.202 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.4872, allocations: 0 / 1.202 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0002289/0.4875, allocations: 45.69 kB / 1.202 GB, free: 2.223 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.4875, allocations: 51.41 kB / 1.202 GB, free: 2.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.771e-05/0.4876, allocations: 101.8 kB / 1.202 GB, free: 2.051 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.4876, allocations: 29.7 kB / 1.202 GB, free: 2.016 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.384e-05/0.4877, allocations: 92.16 kB / 1.202 GB, free: 1.922 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.4877, allocations: 7.906 kB / 1.202 GB, free: 1.914 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.4877, allocations: 9.719 kB / 1.202 GB, free: 1.898 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001028/0.4878, allocations: 318.8 kB / 1.202 GB, free: 1.578 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.805e-05/0.4878, allocations: 7.984 kB / 1.202 GB, free: 1.57 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.719e-05/0.4879, allocations: 22.52 kB / 1.202 GB, free: 1.539 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.315e-05/0.4879, allocations: 30.58 kB / 1.202 GB, free: 1.5 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4879, allocations: 0 / 1.202 GB, free: 1.5 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.958e-05/0.488, allocations: 53.62 kB / 1.203 GB, free: 1.441 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.488, allocations: 4 kB / 1.203 GB, free: 1.438 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.488, allocations: 4 kB / 1.203 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.4881, allocations: 0 / 1.203 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.722e-05/0.4881, allocations: 11.92 kB / 1.203 GB, free: 1.422 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.047e-06/0.4881, allocations: 7.938 kB / 1.203 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.972e-05/0.4882, allocations: 12.03 kB / 1.203 GB, free: 1.402 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.958e-06/0.4882, allocations: 0 / 1.203 GB, free: 1.402 MB / 0.9512 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 7.048e-05/0.4883, allocations: 109.8 kB / 1.203 GB, free: 1.285 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.4883, allocations: 3.906 kB / 1.203 GB, free: 1.281 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.171e-05/0.4883, allocations: 15.06 kB / 1.203 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.4883, allocations: 0 / 1.203 GB, free: 1.27 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.73e-06/0.4883, allocations: 3.938 kB / 1.203 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.4883, allocations: 0 / 1.203 GB, free: 1.266 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.4886, allocations: 359.6 kB / 1.203 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.4886, allocations: 0 / 1.203 GB, free: 0.8516 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.352e-05/0.4887, allocations: 4 kB / 1.203 GB, free: 0.8477 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.4887, allocations: 3.938 kB / 1.203 GB, free: 0.8438 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.901e-06/0.4887, allocations: 4 kB / 1.203 GB, free: 0.8398 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4887, allocations: 0 / 1.203 GB, free: 0.8398 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.4887, allocations: 4.266 kB / 1.203 GB, free: 0.8359 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.438e-05/0.4888, allocations: 78 kB / 1.203 GB, free: 0.7383 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.851e-05/0.4888, allocations: 85.03 kB / 1.203 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.517e-05/0.4889, allocations: 0 / 1.203 GB, free: 0.6367 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.805e-05/0.489, allocations: 7.984 kB / 1.203 GB, free: 0.6289 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.371e-05/0.489, allocations: 0 / 1.203 GB, free: 0.6289 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.489, allocations: 4 kB / 1.203 GB, free: 0.625 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.379e-05/0.489, allocations: 83.25 kB / 1.203 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.6e-07/0.489, allocations: 4 kB / 1.203 GB, free: 0.5391 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002003/0.4893, allocations: 8 kB / 1.203 GB, free: 0.5312 MB / 0.9512 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.0001321/0.4894, allocations: 107.2 kB / 1.203 GB, free: 428 kB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 7.313e-05/0.4895, allocations: 11.94 kB / 1.203 GB, free: 416 kB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4895, allocations: 0 / 1.203 GB, free: 416 kB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.397e-05/0.4895, allocations: 12.25 kB / 1.203 GB, free: 404 kB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002183/0.4897, allocations: 11.92 kB / 1.203 GB, free: 392 kB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002803/0.49, allocations: 159 kB / 1.204 GB, free: 192 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002607/0.4903, allocations: 0.6809 MB / 1.204 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.274e-05/0.4903, allocations: 7.438 kB / 1.204 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of SimCode: time 3.01e-07/0.4903, allocations: 0 / 1.204 GB, free: 15.47 MB / 0.9669 GB Notification: Performance of Templates: time 0.001955/0.4923, allocations: 0.6012 MB / 1.205 GB, free: 14.87 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (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 & ./Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/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