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.001351/0.001351, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001505/0.001505, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.42/1.42, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.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.248/2.248, allocations: 390.3 MB / 0.6653 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 66.94 kB / 0.8132 GB, free: 33.06 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2885, allocations: 140.4 MB / 0.9503 GB, free: 8.898 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.6675/0.9561, allocations: 148.3 MB / 1.095 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.000131/0.9562, allocations: 61.47 kB / 1.095 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.9563, allocations: 1.031 kB / 1.095 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.9565, allocations: 1.312 kB / 1.095 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.295e-05/0.9565, allocations: 15.81 kB / 1.095 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007465/0.9573, allocations: 212.4 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.021e-05/0.9574, allocations: 34.77 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.7e-05/0.9574, allocations: 2.844 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.511e-05/0.9575, allocations: 17.28 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.631e-05/0.9575, allocations: 12.78 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.201e-05/0.9575, allocations: 2.422 kB / 1.095 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004064/0.958, allocations: 194.7 kB / 1.096 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.422e-05/0.958, allocations: 5.531 kB / 1.096 GB, free: 5.512 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.984e-05/0.958, allocations: 16.48 kB / 1.096 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.9583, allocations: 115.4 kB / 1.096 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.9583, allocations: 1.094 kB / 1.096 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9583, allocations: 0 / 1.096 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.819e-06/0.9583, allocations: 2.062 kB / 1.096 GB, free: 5.504 MB / 0.8575 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.0005443/0.9589, allocations: 344.5 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.9589, allocations: 10.11 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003285/0.9593, allocations: 25.38 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001066/0.9594, allocations: 170.1 kB / 1.096 GB, free: 20.94 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.52e-05/0.9594, allocations: 32.11 kB / 1.096 GB, free: 20.91 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.9595, allocations: 4.875 kB / 1.096 GB, free: 20.91 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.9596, allocations: 46.75 kB / 1.096 GB, free: 20.88 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.9596, allocations: 1.094 kB / 1.096 GB, free: 20.88 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.9596, allocations: 4.406 kB / 1.096 GB, free: 20.88 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.831e-05/0.9597, allocations: 2.312 kB / 1.096 GB, free: 20.88 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.78e-05/0.9597, allocations: 21 kB / 1.096 GB, free: 20.88 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003555/0.9601, allocations: 262.5 kB / 1.097 GB, free: 20.6 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 4.834e-05/0.9602, allocations: 26.52 kB / 1.097 GB, free: 20.58 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.015e-05/0.9602, allocations: 8.203 kB / 1.097 GB, free: 20.57 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001609/0.9603, allocations: 94.45 kB / 1.097 GB, free: 20.48 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.9604, allocations: 39.61 kB / 1.097 GB, free: 20.43 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.9604, allocations: 1.094 kB / 1.097 GB, free: 20.43 MB / 0.8731 GB Notification: Performance of matching and sorting (n=2): time 0.0002321/0.9606, allocations: 50.39 kB / 1.097 GB, free: 20.4 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.9607, allocations: 52.31 kB / 1.097 GB, free: 20.34 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.844e-05/0.9607, allocations: 106.5 kB / 1.097 GB, free: 20.24 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.9608, allocations: 26.77 kB / 1.097 GB, free: 20.21 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 4.19e-05/0.9608, allocations: 93.22 kB / 1.097 GB, free: 20.11 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 7.835e-06/0.9608, allocations: 10.81 kB / 1.097 GB, free: 20.11 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.868e-05/0.9609, allocations: 16.83 kB / 1.097 GB, free: 20.09 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 8.56e-05/0.9609, allocations: 312.9 kB / 1.097 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.029e-05/0.961, allocations: 8.031 kB / 1.097 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.451e-05/0.961, allocations: 22.16 kB / 1.097 GB, free: 19.75 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.995e-05/0.961, allocations: 34.62 kB / 1.097 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.9611, allocations: 1.062 kB / 1.097 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.307e-05/0.9611, allocations: 58.61 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.9612, allocations: 7.906 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.9612, allocations: 1.406 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.9612, allocations: 0.7812 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.691e-05/0.9613, allocations: 6.828 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.9613, allocations: 1.312 kB / 1.098 GB, free: 19.7 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.923e-05/0.9613, allocations: 9.469 kB / 1.098 GB, free: 19.69 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.9613, allocations: 2.156 kB / 1.098 GB, free: 19.69 MB / 0.8731 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.088e-05/0.9614, allocations: 114.3 kB / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.9614, allocations: 1.531 kB / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.823e-05/0.9614, allocations: 5.422 kB / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.9614, allocations: 0.7188 kB / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.9615, allocations: 0 / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.9615, allocations: 5.062 kB / 1.098 GB, free: 19.57 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002615/0.9617, allocations: 369.4 kB / 1.098 GB, free: 19.18 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.9617, allocations: 0.6562 kB / 1.098 GB, free: 19.18 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.645e-05/0.9618, allocations: 3.922 kB / 1.098 GB, free: 19.18 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.9618, allocations: 4.969 kB / 1.098 GB, free: 19.17 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-06/0.9618, allocations: 2.812 kB / 1.098 GB, free: 19.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.9618, allocations: 1.625 kB / 1.098 GB, free: 19.17 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.9618, allocations: 0.6875 kB / 1.098 GB, free: 19.17 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.513e-05/0.9619, allocations: 76.95 kB / 1.098 GB, free: 19.1 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 3.286e-05/0.9619, allocations: 82.59 kB / 1.098 GB, free: 19 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.947e-05/0.962, allocations: 6.359 kB / 1.098 GB, free: 19 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.44e-05/0.962, allocations: 6.031 kB / 1.098 GB, free: 19 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.9621, allocations: 1.25 kB / 1.098 GB, free: 19 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-06/0.9621, allocations: 1.797 kB / 1.098 GB, free: 19 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 4.345e-05/0.9621, allocations: 84.77 kB / 1.098 GB, free: 18.92 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9621, allocations: 5.125 kB / 1.098 GB, free: 18.92 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001974/0.9623, allocations: 6.594 kB / 1.098 GB, free: 18.92 MB / 0.8731 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.0001271/0.9625, allocations: 98.39 kB / 1.098 GB, free: 18.83 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 8.694e-05/0.9626, allocations: 18.56 kB / 1.098 GB, free: 18.83 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.9626, allocations: 0.8438 kB / 1.098 GB, free: 18.83 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/0.9626, allocations: 8.625 kB / 1.098 GB, free: 18.82 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002132/0.9628, allocations: 15.84 kB / 1.098 GB, free: 18.82 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002706/0.9631, allocations: 144.6 kB / 1.099 GB, free: 18.68 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.9633, allocations: 0.6764 MB / 1.099 GB, free: 17.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.9633, allocations: 9.062 kB / 1.099 GB, free: 17.97 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.9633, allocations: 1.094 kB / 1.099 GB, free: 17.97 MB / 0.8731 GB Notification: Performance of Templates: time 0.002107/0.9655, allocations: 0.6236 MB / 1.1 GB, free: 17.93 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches