Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_10_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.001122/0.001127, allocations: 107.4 kB / 16.27 MB, free: 5.984 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.001126/0.001126, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.334/1.334, allocations: 222.9 MB / 240.9 MB, free: 4.125 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.73/2.73, allocations: 437.1 MB / 0.711 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 67.89 kB / 0.8699 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6376/0.639, allocations: 151.6 MB / 1.018 GB, free: 2.574 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1615/0.8005, allocations: 148.3 MB / 1.163 GB, free: 13.73 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0001541/0.8007, allocations: 55.84 kB / 1.163 GB, free: 13.67 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.678e-05/0.8007, allocations: 0 / 1.163 GB, free: 13.67 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.8008, allocations: 3.938 kB / 1.163 GB, free: 13.67 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.748e-05/0.801, allocations: 19.91 kB / 1.163 GB, free: 13.65 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000785/0.8018, allocations: 211.2 kB / 1.163 GB, free: 13.44 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.318e-05/0.8019, allocations: 35.84 kB / 1.163 GB, free: 13.41 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.8019, allocations: 0 / 1.163 GB, free: 13.41 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.978e-05/0.802, allocations: 23.92 kB / 1.163 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.496e-05/0.802, allocations: 7.984 kB / 1.163 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.327e-05/0.8021, allocations: 0 / 1.163 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000419/0.8025, allocations: 203.4 kB / 1.163 GB, free: 13.18 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.688e-05/0.8025, allocations: 11.97 kB / 1.163 GB, free: 13.16 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.081e-05/0.8026, allocations: 11.92 kB / 1.163 GB, free: 13.15 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002594/0.8029, allocations: 109.8 kB / 1.163 GB, free: 13.05 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.8029, allocations: 0 / 1.163 GB, free: 13.05 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.543e-06/0.8029, allocations: 0 / 1.163 GB, free: 13.05 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.8029, allocations: 4 kB / 1.163 GB, free: 13.04 MB / 0.92 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.8033, allocations: 339.4 kB / 1.164 GB, free: 12.66 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.8033, allocations: 12.03 kB / 1.164 GB, free: 12.65 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003372/0.8037, allocations: 32.89 kB / 1.164 GB, free: 12.62 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.8038, allocations: 164.3 kB / 1.164 GB, free: 12.42 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.571e-05/0.8039, allocations: 33.64 kB / 1.164 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.726e-06/0.8039, allocations: 0 / 1.164 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001393/0.804, allocations: 53.66 kB / 1.164 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.8041, allocations: 0 / 1.164 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.8041, allocations: 0 / 1.164 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.8041, allocations: 7.938 kB / 1.164 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.23e-05/0.8042, allocations: 23.98 kB / 1.164 GB, free: 12.29 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003508/0.8045, allocations: 260.8 kB / 1.164 GB, free: 11.99 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 5.219e-05/0.8046, allocations: 22.52 kB / 1.164 GB, free: 11.96 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.312e-05/0.8046, allocations: 12.92 kB / 1.164 GB, free: 11.94 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/0.8048, allocations: 93.09 kB / 1.164 GB, free: 11.83 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.8048, allocations: 34.56 kB / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.8048, allocations: 0 / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0002412/0.8051, allocations: 49.62 kB / 1.165 GB, free: 11.73 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.8051, allocations: 55.41 kB / 1.165 GB, free: 11.67 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.607e-05/0.8052, allocations: 105.8 kB / 1.165 GB, free: 11.55 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.8052, allocations: 25.83 kB / 1.165 GB, free: 11.52 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.8053, allocations: 91.98 kB / 1.165 GB, free: 11.43 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 8.035e-06/0.8053, allocations: 15.84 kB / 1.165 GB, free: 11.41 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.987e-05/0.8053, allocations: 17.7 kB / 1.165 GB, free: 11.39 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.421e-05/0.8054, allocations: 310.8 kB / 1.165 GB, free: 11.08 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.733e-05/0.8054, allocations: 8 kB / 1.165 GB, free: 11.07 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.604e-05/0.8055, allocations: 22.56 kB / 1.165 GB, free: 11.04 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.47e-05/0.8055, allocations: 34.52 kB / 1.165 GB, free: 11 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.8055, allocations: 0 / 1.165 GB, free: 11 MB / 0.92 GB Notification: Performance of matching and sorting (n=4) (initialization): time 7.435e-05/0.8056, allocations: 53.62 kB / 1.165 GB, free: 10.94 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.8056, allocations: 8 kB / 1.165 GB, free: 10.93 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.8056, allocations: 0 / 1.165 GB, free: 10.93 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.204e-05/0.8056, allocations: 0 / 1.165 GB, free: 10.93 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.657e-05/0.8057, allocations: 12.09 kB / 1.165 GB, free: 10.92 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.8057, allocations: 3.938 kB / 1.165 GB, free: 10.91 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.8058, allocations: 0 / 1.165 GB, free: 10.91 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.8058, allocations: 8 kB / 1.165 GB, free: 10.91 MB / 0.92 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 6.617e-05/0.8058, allocations: 110.7 kB / 1.165 GB, free: 10.79 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.8059, allocations: 7.906 kB / 1.165 GB, free: 10.78 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.124e-05/0.8059, allocations: 7.125 kB / 1.165 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.8059, allocations: 0 / 1.165 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.8059, allocations: 3.938 kB / 1.165 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.8059, allocations: 4 kB / 1.165 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002679/0.8062, allocations: 359.6 kB / 1.166 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.8062, allocations: 0 / 1.166 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.356e-05/0.8062, allocations: 0 / 1.166 GB, free: 10.35 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.8062, allocations: 7.938 kB / 1.166 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.8063, allocations: 7.938 kB / 1.166 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.8063, allocations: 0 / 1.166 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.8063, allocations: 0 / 1.166 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.534e-05/0.8064, allocations: 82.05 kB / 1.166 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.222e-05/0.8064, allocations: 84.98 kB / 1.166 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.8064, allocations: 288 / 1.166 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.216e-05/0.8065, allocations: 4 kB / 1.166 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.561e-05/0.8065, allocations: 3.984 kB / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.8065, allocations: 4.031 kB / 1.166 GB, free: 10.12 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.952e-05/0.8066, allocations: 87.27 kB / 1.166 GB, free: 10.04 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.944e-06/0.8066, allocations: 0 / 1.166 GB, free: 10.04 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0001915/0.8068, allocations: 11.94 kB / 1.166 GB, free: 10.02 MB / 0.92 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.0001169/0.8069, allocations: 103.2 kB / 1.166 GB, free: 9.914 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 8.384e-05/0.807, allocations: 11.98 kB / 1.166 GB, free: 9.902 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.807, allocations: 8.188 kB / 1.166 GB, free: 9.895 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.161e-05/0.807, allocations: 7.938 kB / 1.166 GB, free: 9.887 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002212/0.8073, allocations: 9.484 kB / 1.166 GB, free: 9.879 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000264/0.8075, allocations: 145 kB / 1.166 GB, free: 9.703 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002232/0.8078, allocations: 0.6768 MB / 1.167 GB, free: 9 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.512e-05/0.8078, allocations: 15.56 kB / 1.167 GB, free: 8.984 MB / 0.92 GB Notification: Performance of SimCode: time 2.41e-07/0.8078, allocations: 0 / 1.167 GB, free: 8.984 MB / 0.92 GB Notification: Performance of Templates: time 0.001836/0.8096, allocations: 0.6014 MB / 1.168 GB, free: 8.383 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches