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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001601/0.001601, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001448/0.001448, allocations: 198.4 kB / 16.14 MB, free: 6.793 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.393/1.393, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.821/2.821, allocations: 461.9 MB / 0.7342 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 73.17 kB / 0.8984 GB, free: 37.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.342, allocations: 157.4 MB / 1.052 GB, free: 8.852 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirTemperatureEnthalpyInversion): time 0.1697/0.5118, allocations: 146 MB / 1.195 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0001639/0.512, allocations: 51.86 kB / 1.195 GB, free: 6.203 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.854e-05/0.512, allocations: 0 / 1.195 GB, free: 6.203 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.5122, allocations: 3.938 kB / 1.195 GB, free: 6.199 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 8.838e-05/0.5123, allocations: 15.97 kB / 1.195 GB, free: 6.184 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008972/0.5132, allocations: 198.5 kB / 1.195 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001198/0.5133, allocations: 59.86 kB / 1.195 GB, free: 5.934 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.831e-05/0.5134, allocations: 4 kB / 1.195 GB, free: 5.93 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.536e-05/0.5134, allocations: 15.88 kB / 1.195 GB, free: 5.914 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.455e-05/0.5135, allocations: 19.97 kB / 1.195 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.429e-05/0.5136, allocations: 0 / 1.195 GB, free: 5.895 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005342/0.5141, allocations: 231.3 kB / 1.195 GB, free: 5.668 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.455e-05/0.5142, allocations: 7.984 kB / 1.195 GB, free: 5.66 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.5142, allocations: 11.92 kB / 1.195 GB, free: 5.648 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0003448/0.5146, allocations: 131.9 kB / 1.195 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.5146, allocations: 0 / 1.195 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of FrontEnd: time 9.42e-07/0.5146, allocations: 0 / 1.195 GB, free: 5.52 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.5146, allocations: 0 / 1.195 GB, free: 5.52 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.0004812/0.5151, allocations: 341 kB / 1.196 GB, free: 5.141 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.5151, allocations: 8.031 kB / 1.196 GB, free: 5.133 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.5155, allocations: 28.91 kB / 1.196 GB, free: 5.105 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.5156, allocations: 164.3 kB / 1.196 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.515e-05/0.5157, allocations: 33.62 kB / 1.196 GB, free: 4.867 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.5157, allocations: 4 kB / 1.196 GB, free: 4.863 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001553/0.5159, allocations: 53.61 kB / 1.196 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.5159, allocations: 0 / 1.196 GB, free: 4.805 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.5159, allocations: 4 kB / 1.196 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.234e-05/0.516, allocations: 0 / 1.196 GB, free: 4.801 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.222e-05/0.516, allocations: 23.98 kB / 1.196 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004103/0.5165, allocations: 260.8 kB / 1.196 GB, free: 4.473 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.843e-05/0.5165, allocations: 22.52 kB / 1.196 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.5166, allocations: 8.859 kB / 1.196 GB, free: 4.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001636/0.5167, allocations: 97.16 kB / 1.196 GB, free: 4.316 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.638e-05/0.5168, allocations: 30.56 kB / 1.196 GB, free: 4.277 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.5168, allocations: 0 / 1.196 GB, free: 4.277 MB / 0.9512 GB Notification: Performance of matching and sorting (n=2): time 0.0002771/0.5171, allocations: 53.62 kB / 1.196 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.5171, allocations: 55.47 kB / 1.197 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.769e-05/0.5172, allocations: 117.8 kB / 1.197 GB, free: 4.027 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.5172, allocations: 25.7 kB / 1.197 GB, free: 3.996 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.832e-05/0.5173, allocations: 84.05 kB / 1.197 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.601e-05/0.5173, allocations: 11.89 kB / 1.197 GB, free: 3.898 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.066e-05/0.5173, allocations: 17.66 kB / 1.197 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001109/0.5175, allocations: 314.8 kB / 1.197 GB, free: 3.559 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.602e-05/0.5175, allocations: 4 kB / 1.197 GB, free: 3.555 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.093e-05/0.5175, allocations: 26.56 kB / 1.197 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.826e-05/0.5176, allocations: 30.58 kB / 1.197 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.5176, allocations: 0 / 1.197 GB, free: 3.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.743e-05/0.5177, allocations: 53.62 kB / 1.197 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.5177, allocations: 7.938 kB / 1.197 GB, free: 3.414 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.5177, allocations: 4.094 kB / 1.197 GB, free: 3.41 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.5177, allocations: 4 kB / 1.197 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.096e-05/0.5178, allocations: 4 kB / 1.197 GB, free: 3.402 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.046e-06/0.5178, allocations: 7.938 kB / 1.197 GB, free: 3.395 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.391e-05/0.5178, allocations: 11.94 kB / 1.197 GB, free: 3.383 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.5179, allocations: 0 / 1.197 GB, free: 3.383 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 8.799e-05/0.5179, allocations: 115.4 kB / 1.197 GB, free: 3.262 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.913e-05/0.518, allocations: 3.906 kB / 1.197 GB, free: 3.258 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.399e-05/0.518, allocations: 7.125 kB / 1.197 GB, free: 3.254 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.518, allocations: 4 kB / 1.197 GB, free: 3.25 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.281e-06/0.518, allocations: 7.938 kB / 1.197 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.518, allocations: 0 / 1.197 GB, free: 3.242 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002969/0.5183, allocations: 355.6 kB / 1.198 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.5183, allocations: 0 / 1.198 GB, free: 2.832 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.652e-05/0.5184, allocations: 4 kB / 1.198 GB, free: 2.828 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5184, allocations: 3.938 kB / 1.198 GB, free: 2.824 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.5184, allocations: 4.062 kB / 1.198 GB, free: 2.82 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.5184, allocations: 4 kB / 1.198 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.5184, allocations: 0 / 1.198 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.814e-05/0.5185, allocations: 73.92 kB / 1.198 GB, free: 2.723 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.673e-05/0.5186, allocations: 85.05 kB / 1.198 GB, free: 2.621 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.5186, allocations: 0 / 1.198 GB, free: 2.621 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.152e-05/0.5187, allocations: 12.02 kB / 1.198 GB, free: 2.609 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.383e-05/0.5187, allocations: 3.938 kB / 1.198 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.756e-06/0.5187, allocations: 0 / 1.198 GB, free: 2.605 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.873e-05/0.5188, allocations: 83.28 kB / 1.198 GB, free: 2.523 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5188, allocations: 0 / 1.198 GB, free: 2.523 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.000203/0.519, allocations: 8 kB / 1.198 GB, free: 2.516 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.0001508/0.5191, allocations: 103.2 kB / 1.198 GB, free: 2.406 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.5193, allocations: 19.94 kB / 1.198 GB, free: 2.387 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.5193, allocations: 4 kB / 1.198 GB, free: 2.383 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.163e-05/0.5193, allocations: 4 kB / 1.198 GB, free: 2.379 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003225/0.5196, allocations: 10.61 kB / 1.198 GB, free: 2.371 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003251/0.5199, allocations: 125.4 kB / 1.198 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002569/0.5202, allocations: 0.677 MB / 1.199 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 7.086e-05/0.5203, allocations: 12.39 kB / 1.199 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.209e-05/0.5203, allocations: 11.44 kB / 1.199 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of SimCode: time 7.82e-07/0.5203, allocations: 0 / 1.199 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of Templates: time 0.003147/0.5235, allocations: 0.5516 MB / 1.199 GB, free: 0.9453 MB / 0.9512 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.AirTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches