Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.AirTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_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.005775/0.005775, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001395/0.001395, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.425/2.425, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 65.92 kB / 0.9508 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3688/0.3704, allocations: 140.4 MB / 1.088 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1802/0.5506, allocations: 148.3 MB / 1.233 GB, free: 12.64 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0001898/0.5509, allocations: 51.86 kB / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.851e-05/0.5509, allocations: 0 / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001517/0.5511, allocations: 7.938 kB / 1.233 GB, free: 12.59 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.5513, allocations: 15.91 kB / 1.233 GB, free: 12.57 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.5523, allocations: 216.7 kB / 1.233 GB, free: 12.36 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.5524, allocations: 31.91 kB / 1.233 GB, free: 12.33 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.772e-05/0.5525, allocations: 11.94 kB / 1.233 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.669e-05/0.5526, allocations: 19.91 kB / 1.233 GB, free: 12.3 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.549e-05/0.5527, allocations: 8 kB / 1.233 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.5527, allocations: 0 / 1.233 GB, free: 12.29 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005397/0.5532, allocations: 203.4 kB / 1.233 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 5.658e-05/0.5533, allocations: 11.94 kB / 1.233 GB, free: 12.08 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 3.698e-05/0.5533, allocations: 11.98 kB / 1.233 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.5537, allocations: 115.7 kB / 1.233 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.5537, allocations: 0 / 1.233 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.944e-06/0.5537, allocations: 0 / 1.233 GB, free: 11.95 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.155e-06/0.5537, allocations: 0 / 1.233 GB, free: 11.95 MB / 0.9981 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.0005465/0.5543, allocations: 339.5 kB / 1.234 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.5543, allocations: 8.031 kB / 1.234 GB, free: 11.57 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004067/0.5548, allocations: 24.91 kB / 1.234 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.5549, allocations: 168.3 kB / 1.234 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.098e-05/0.555, allocations: 41.56 kB / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.483e-05/0.555, allocations: 3.938 kB / 1.234 GB, free: 11.29 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.5552, allocations: 45.69 kB / 1.234 GB, free: 11.24 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.5552, allocations: 3.984 kB / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.5552, allocations: 0 / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.5552, allocations: 4 kB / 1.234 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.395e-05/0.5553, allocations: 19.98 kB / 1.234 GB, free: 11.21 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004351/0.5558, allocations: 268.9 kB / 1.234 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 6.384e-05/0.5558, allocations: 22.52 kB / 1.234 GB, free: 10.87 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.526e-05/0.5559, allocations: 8.922 kB / 1.234 GB, free: 10.86 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001782/0.5561, allocations: 93.09 kB / 1.234 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.5561, allocations: 42.5 kB / 1.234 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.163e-06/0.5561, allocations: 0 / 1.234 GB, free: 10.7 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0002739/0.5564, allocations: 45.69 kB / 1.234 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.607e-05/0.5564, allocations: 51.41 kB / 1.235 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.182e-05/0.5565, allocations: 113.7 kB / 1.235 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.5566, allocations: 25.7 kB / 1.235 GB, free: 10.43 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 4.906e-05/0.5566, allocations: 84.17 kB / 1.235 GB, free: 10.34 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.171e-05/0.5566, allocations: 19.83 kB / 1.235 GB, free: 10.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-05/0.5567, allocations: 13.72 kB / 1.235 GB, free: 10.3 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5568, allocations: 314.8 kB / 1.235 GB, free: 9.988 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.867e-05/0.5568, allocations: 4 kB / 1.235 GB, free: 9.984 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.049e-05/0.5568, allocations: 26.56 kB / 1.235 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.128e-05/0.5569, allocations: 34.52 kB / 1.235 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5569, allocations: 0 / 1.235 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.888e-05/0.557, allocations: 53.62 kB / 1.235 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.557, allocations: 4 kB / 1.235 GB, free: 9.844 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.557, allocations: 4 kB / 1.235 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.5571, allocations: 0 / 1.235 GB, free: 9.84 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.301e-05/0.5571, allocations: 4 kB / 1.235 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.5571, allocations: 7.938 kB / 1.235 GB, free: 9.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.141e-05/0.5572, allocations: 8 kB / 1.235 GB, free: 9.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.5572, allocations: 0 / 1.235 GB, free: 9.82 MB / 0.9981 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.141e-05/0.5573, allocations: 117.8 kB / 1.235 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.657e-05/0.5573, allocations: 0 / 1.235 GB, free: 9.695 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.649e-05/0.5573, allocations: 7.125 kB / 1.235 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.5574, allocations: 0 / 1.235 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5574, allocations: 3.938 kB / 1.235 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.5574, allocations: 0 / 1.235 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003097/0.5577, allocations: 363.6 kB / 1.236 GB, free: 9.266 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.5577, allocations: 4 kB / 1.236 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.44e-05/0.5577, allocations: 0 / 1.236 GB, free: 9.262 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.5577, allocations: 7.938 kB / 1.236 GB, free: 9.254 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.5578, allocations: 7.938 kB / 1.236 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.5578, allocations: 0 / 1.236 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.5578, allocations: 3.938 kB / 1.236 GB, free: 9.242 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.691e-05/0.5579, allocations: 74.05 kB / 1.236 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.717e-05/0.5579, allocations: 88.89 kB / 1.236 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.616e-05/0.5579, allocations: 0 / 1.236 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.447e-05/0.558, allocations: 11.98 kB / 1.236 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.727e-05/0.5581, allocations: 0 / 1.236 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.5581, allocations: 0 / 1.236 GB, free: 9.031 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.415e-05/0.5581, allocations: 83.55 kB / 1.236 GB, free: 8.949 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5581, allocations: 4.031 kB / 1.236 GB, free: 8.945 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001973/0.5583, allocations: 8 kB / 1.236 GB, free: 8.938 MB / 0.9981 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.0001438/0.5585, allocations: 99.78 kB / 1.236 GB, free: 8.832 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001006/0.5586, allocations: 19.92 kB / 1.236 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5586, allocations: 0 / 1.236 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.5586, allocations: 8.125 kB / 1.236 GB, free: 8.805 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.5589, allocations: 12.12 kB / 1.236 GB, free: 8.793 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003407/0.5592, allocations: 123.4 kB / 1.236 GB, free: 8.645 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002636/0.5595, allocations: 0.6768 MB / 1.237 GB, free: 7.941 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.729e-05/0.5596, allocations: 11.98 kB / 1.237 GB, free: 7.93 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.632e-05/0.5596, allocations: 11.44 kB / 1.237 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of SimCode: time 6.41e-07/0.5596, allocations: 0 / 1.237 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of Templates: time 0.003166/0.5628, allocations: 0.5816 MB / 1.237 GB, free: 7.344 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches