Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Media.Examples.AirProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.017/2.017, allocations: 387.4 MB / 394.9 MB, free: 13.4 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.00104/0.00104, allocations: 180.8 kB / 487.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 221.5 MB / 0.7824 GB, free: 0.918 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008215/0.0008215, allocations: 113.9 kB / 0.9219 GB, free: 2.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 1.359e-05/1.362e-05, allocations: 1.062 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2428, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.624/4.866, allocations: 1.921 GB / 3.127 GB, free: 354.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002303/4.867, allocations: 71.67 kB / 3.127 GB, free: 354.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.08843/4.955, allocations: 47.37 MB / 3.173 GB, free: 341.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.503e-06/4.955, allocations: 0 / 3.173 GB, free: 341.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.576e-06/4.955, allocations: 3.906 kB / 3.173 GB, free: 341.2 MB / 1.151 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.0009419/4.956, allocations: 0.5542 MB / 3.174 GB, free: 340.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/4.956, allocations: 7.812 kB / 3.174 GB, free: 340.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/4.957, allocations: 136.9 kB / 3.174 GB, free: 340.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000203/4.957, allocations: 210.1 kB / 3.174 GB, free: 340.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.339e-05/4.957, allocations: 7.812 kB / 3.174 GB, free: 340.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/4.957, allocations: 11.78 kB / 3.174 GB, free: 340.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004185/4.958, allocations: 322.2 kB / 3.174 GB, free: 340.4 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/4.958, allocations: 274 kB / 3.175 GB, free: 340.3 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/4.958, allocations: 0 / 3.175 GB, free: 340.3 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/4.958, allocations: 7.953 kB / 3.175 GB, free: 340.3 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.928e-05/4.958, allocations: 19.17 kB / 3.175 GB, free: 340.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001224/4.96, allocations: 1.102 MB / 3.176 GB, free: 339.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/4.96, allocations: 175.2 kB / 3.176 GB, free: 339.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.891e-05/4.96, allocations: 85.78 kB / 3.176 GB, free: 339.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003262/4.96, allocations: 358.6 kB / 3.176 GB, free: 338.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/4.96, allocations: 34.31 kB / 3.176 GB, free: 338.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/4.96, allocations: 4 kB / 3.176 GB, free: 338.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=21): time 0.0004001/4.961, allocations: 174.6 kB / 3.176 GB, free: 338.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.088e-05/4.961, allocations: 55.28 kB / 3.176 GB, free: 338.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/4.961, allocations: 145.3 kB / 3.177 GB, free: 338.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/4.961, allocations: 25.7 kB / 3.177 GB, free: 338.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/4.961, allocations: 150.9 kB / 3.177 GB, free: 338.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/4.961, allocations: 73.62 kB / 3.177 GB, free: 338.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.211e-05/4.961, allocations: 0 / 3.177 GB, free: 338.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.792e-05/4.961, allocations: 330.2 kB / 3.177 GB, free: 338.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.213e-05/4.961, allocations: 60.41 kB / 3.177 GB, free: 338.1 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/4.961, allocations: 147.6 kB / 3.177 GB, free: 337.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001414/4.962, allocations: 86.75 kB / 3.177 GB, free: 337.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/4.962, allocations: 3.953 kB / 3.177 GB, free: 337.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00035/4.962, allocations: 247.6 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.599e-05/4.962, allocations: 9.719 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/4.962, allocations: 3.844 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/4.962, allocations: 3.406 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/4.962, allocations: 60.47 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/4.962, allocations: 4.344 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/4.962, allocations: 26.94 kB / 3.178 GB, free: 337.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.049e-05/4.962, allocations: 10.88 kB / 3.178 GB, free: 337.8 MB / 1.151 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.42e-05/4.963, allocations: 127.8 kB / 3.178 GB, free: 337.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/4.963, allocations: 15.16 kB / 3.178 GB, free: 337.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003526/4.963, allocations: 204.9 kB / 3.178 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.249e-06/4.963, allocations: 3.875 kB / 3.178 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/4.963, allocations: 8.094 kB / 3.178 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/4.963, allocations: 3.938 kB / 3.178 GB, free: 337.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004968/4.963, allocations: 492.7 kB / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/4.963, allocations: 3.688 kB / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001657/4.964, allocations: 38.66 kB / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/4.964, allocations: 0 / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/4.964, allocations: 0 / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/4.964, allocations: 11.81 kB / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/4.964, allocations: 0 / 3.179 GB, free: 337.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00029/4.964, allocations: 309.1 kB / 3.179 GB, free: 337 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 7.883e-05/4.964, allocations: 112.4 kB / 3.179 GB, free: 336.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/4.964, allocations: 7.75 kB / 3.179 GB, free: 336.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002202/4.964, allocations: 11.7 kB / 3.179 GB, free: 336.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/4.964, allocations: 14.86 kB / 3.179 GB, free: 336.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.366e-05/4.964, allocations: 15.17 kB / 3.179 GB, free: 336.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 5.413e-05/4.964, allocations: 115.5 kB / 3.179 GB, free: 336.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/4.964, allocations: 0 / 3.179 GB, free: 336.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0005546/4.965, allocations: 140 kB / 3.179 GB, free: 336.8 MB / 1.151 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.0007736/4.966, allocations: 0.7118 MB / 3.18 GB, free: 336.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002792/4.966, allocations: 178.4 kB / 3.18 GB, free: 336.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/4.966, allocations: 2.438 kB / 3.18 GB, free: 336.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 8.443e-05/4.966, allocations: 75.06 kB / 3.18 GB, free: 336.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003771/4.967, allocations: 48.58 kB / 3.18 GB, free: 336.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004306/4.967, allocations: 230 kB / 3.181 GB, free: 336.2 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/4.967, allocations: 0.7427 MB / 3.181 GB, free: 335.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0002816/4.967, allocations: 48.45 kB / 3.181 GB, free: 335.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/4.968, allocations: 22.59 kB / 3.181 GB, free: 335.4 MB / 1.151 GB Notification: Performance of SimCode: time 2.5e-07/4.968, allocations: 0 / 3.181 GB, free: 335.4 MB / 1.151 GB Notification: Performance of Templates: time 0.009644/4.977, allocations: 6.934 MB / 3.188 GB, free: 328.9 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirProperties.sim & ./Buildings_9_Buildings.Media.Examples.AirProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirProperties.csv","../files/Buildings_9_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.preferredMediumStates,basPro.standardOrderComponents,beta,cp,cv,d,ddTp,dddX[1],ddpT,errAbs,eta,f,g,h,hIse,hLiq,kappa,lambda,p,pMed,s,time,u