Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.AirProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Media.Examples.AirProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|hLiq|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirProperties") translateModel(Buildings.Media.Examples.AirProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|hLiq|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.AirProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.302/2.302, allocations: 390.3 MB / 402.8 MB, free: 6.648 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 172.8 kB / 496.1 MB, free: 12.82 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.618/1.618, allocations: 221.3 MB / 0.7915 GB, free: 5.391 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009732/0.0009729, allocations: 95.11 kB / 0.9317 GB, free: 5.703 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.62e-05/3.628e-05, allocations: 0 / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3186, allocations: 143 MB / 1.219 GB, free: 13.51 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.839/6.158, allocations: 1.922 GB / 3.141 GB, free: 337.3 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002635/6.158, allocations: 75.08 kB / 3.141 GB, free: 337.3 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.09882/6.257, allocations: 48.09 MB / 3.188 GB, free: 296.7 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.774e-06/6.257, allocations: 4 kB / 3.188 GB, free: 296.7 MB / 1.167 GB Notification: Performance of Transformations before backend: time 9.438e-06/6.257, allocations: 4 kB / 3.188 GB, free: 296.7 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009605/6.258, allocations: 0.5452 MB / 3.189 GB, free: 296.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/6.258, allocations: 8.031 kB / 3.189 GB, free: 296.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/6.259, allocations: 138.3 kB / 3.189 GB, free: 296 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002304/6.259, allocations: 214.2 kB / 3.189 GB, free: 295.8 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/6.259, allocations: 15.38 kB / 3.189 GB, free: 295.8 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.255e-05/6.259, allocations: 15.81 kB / 3.189 GB, free: 295.8 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005195/6.26, allocations: 352.3 kB / 3.189 GB, free: 295.5 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/6.26, allocations: 4 kB / 3.189 GB, free: 295.5 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/6.26, allocations: 11.62 kB / 3.189 GB, free: 295.5 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.798e-05/6.26, allocations: 15.75 kB / 3.189 GB, free: 295.4 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004521/6.26, allocations: 316.6 kB / 3.19 GB, free: 295.2 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001339/6.262, allocations: 1.166 MB / 3.191 GB, free: 294 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/6.262, allocations: 183.9 kB / 3.191 GB, free: 293.9 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/6.262, allocations: 79.08 kB / 3.191 GB, free: 293.8 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003495/6.263, allocations: 359.7 kB / 3.191 GB, free: 293.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.06e-05/6.263, allocations: 38.5 kB / 3.191 GB, free: 293.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=21): time 3.226e-06/6.263, allocations: 0 / 3.191 GB, free: 293.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=21): time 0.0004585/6.263, allocations: 189.7 kB / 3.192 GB, free: 293.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.455e-05/6.263, allocations: 51.41 kB / 3.192 GB, free: 293.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001473/6.263, allocations: 187.5 kB / 3.192 GB, free: 293 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 2.623e-05/6.263, allocations: 33.45 kB / 3.192 GB, free: 292.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 6.389e-05/6.263, allocations: 150.6 kB / 3.192 GB, free: 292.8 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/6.263, allocations: 66.45 kB / 3.192 GB, free: 292.7 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/6.263, allocations: 3.5 kB / 3.192 GB, free: 292.7 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.079e-05/6.264, allocations: 334.3 kB / 3.192 GB, free: 292.4 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001041/6.264, allocations: 70.75 kB / 3.192 GB, free: 292.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/6.264, allocations: 159.1 kB / 3.193 GB, free: 292.2 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/6.264, allocations: 93.69 kB / 3.193 GB, free: 292.1 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/6.264, allocations: 0 / 3.193 GB, free: 292.1 MB / 1.167 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003782/6.264, allocations: 271.2 kB / 3.193 GB, free: 291.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/6.264, allocations: 8 kB / 3.193 GB, free: 291.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/6.264, allocations: 4.109 kB / 3.193 GB, free: 291.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/6.264, allocations: 7.938 kB / 3.193 GB, free: 291.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002493/6.265, allocations: 59.72 kB / 3.193 GB, free: 291.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/6.265, allocations: 4 kB / 3.193 GB, free: 291.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/6.265, allocations: 35.39 kB / 3.193 GB, free: 291.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/6.265, allocations: 8.25 kB / 3.193 GB, free: 291.7 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.636e-05/6.265, allocations: 135.8 kB / 3.193 GB, free: 291.6 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.916e-05/6.265, allocations: 23.72 kB / 3.193 GB, free: 291.6 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003791/6.265, allocations: 214.8 kB / 3.193 GB, free: 291.4 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/6.265, allocations: 7.984 kB / 3.193 GB, free: 291.4 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/6.265, allocations: 7.938 kB / 3.193 GB, free: 291.4 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/6.265, allocations: 0 / 3.193 GB, free: 291.4 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005338/6.266, allocations: 0.5359 MB / 3.194 GB, free: 290.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/6.266, allocations: 0 / 3.194 GB, free: 290.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/6.266, allocations: 35.92 kB / 3.194 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-06/6.266, allocations: 0 / 3.194 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/6.266, allocations: 7.125 kB / 3.194 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/6.266, allocations: 0 / 3.194 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/6.266, allocations: 0 / 3.194 GB, free: 290.8 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003089/6.267, allocations: 334.1 kB / 3.194 GB, free: 290.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/6.267, allocations: 116.6 kB / 3.194 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/6.267, allocations: 3.812 kB / 3.194 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000245/6.267, allocations: 15.61 kB / 3.194 GB, free: 290.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/6.267, allocations: 19.94 kB / 3.194 GB, free: 290.3 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.797e-05/6.267, allocations: 15.67 kB / 3.194 GB, free: 290.3 MB / 1.167 GB Notification: Performance of sorting global known variables: time 9.579e-05/6.267, allocations: 150.7 kB / 3.195 GB, free: 290.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.6e-07/6.267, allocations: 0 / 3.195 GB, free: 290.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0006328/6.268, allocations: 145.6 kB / 3.195 GB, free: 290.1 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007761/6.269, allocations: 0.6406 MB / 3.195 GB, free: 289.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0003098/6.269, allocations: 185.7 kB / 3.195 GB, free: 289.3 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/6.269, allocations: 0 / 3.195 GB, free: 289.3 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001001/6.269, allocations: 84 kB / 3.196 GB, free: 289.2 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/6.27, allocations: 102 kB / 3.196 GB, free: 289.1 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000462/6.27, allocations: 249.3 kB / 3.196 GB, free: 288.9 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001584/6.27, allocations: 0.7333 MB / 3.197 GB, free: 288.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.000287/6.27, allocations: 54.03 kB / 3.197 GB, free: 288.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.183e-05/6.271, allocations: 27.44 kB / 3.197 GB, free: 288.1 MB / 1.167 GB Notification: Performance of SimCode: time 7.31e-07/6.271, allocations: 0 / 3.197 GB, free: 288.1 MB / 1.167 GB Notification: Performance of Templates: time 0.01636/6.287, allocations: 13.58 MB / 3.21 GB, free: 274.6 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.AirProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.AirProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.AirProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.AirProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.AirProperties.sim & ./Buildings_latest_Buildings.Media.Examples.AirProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.AirProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.AirProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_AirProperties.csv","../files/Buildings_latest_Buildings.Media.Examples.AirProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,p,X[1],d,eta,h,hLiq,u,s,g,f,hIse,beta,kappa,ddpT,ddTp,dddX[1],cp,cv,lambda,pMed,TMed,MM Variables in the result:MM,TMax,TMed,TMin,X[1],X[2],basPro.X[1],basPro.Xi[1],basPro.p,basPro.preferredMediumStates,basPro.standardOrderComponents,basPro.state.X[1],basPro.state.p,beta,cp,cv,d,ddTp,dddX[1],ddpT,errAbs,eta,f,g,h,hIse,hLiq,kappa,lambda,p,pMed,s,state_pTX.X[1],state_pTX.X[2],state_pTX.p,state_phX.X[1],state_phX.X[2],state_phX.p,time,u