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.404/2.404, allocations: 390.5 MB / 398 MB, free: 10.95 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.001944/0.001944, allocations: 188.3 kB / 491.2 MB, free: 1.574 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.97/1.97, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.0008633/0.0008632, allocations: 106.6 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.05e-05, allocations: 4.938 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3187, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.879/6.198, allocations: 1.922 GB / 3.134 GB, free: 408.6 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/6.199, allocations: 67.97 kB / 3.134 GB, free: 408.5 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.09035/6.289, allocations: 47.37 MB / 3.18 GB, free: 360.6 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.613e-06/6.289, allocations: 0 / 3.18 GB, free: 360.6 MB / 1.151 GB Notification: Performance of Transformations before backend: time 8.927e-06/6.289, allocations: 4 kB / 3.18 GB, free: 360.6 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.0008898/6.29, allocations: 0.5537 MB / 3.181 GB, free: 360 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/6.29, allocations: 11.97 kB / 3.181 GB, free: 360 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001078/6.291, allocations: 135.6 kB / 3.181 GB, free: 359.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002163/6.291, allocations: 222.8 kB / 3.181 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/6.291, allocations: 12 kB / 3.181 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/6.291, allocations: 8 kB / 3.181 GB, free: 359.6 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004292/6.292, allocations: 312.6 kB / 3.181 GB, free: 359.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003665/6.292, allocations: 289.7 kB / 3.182 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/6.292, allocations: 0 / 3.182 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.737e-05/6.292, allocations: 0 / 3.182 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/6.292, allocations: 16 kB / 3.182 GB, free: 359 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/6.293, allocations: 1.101 MB / 3.183 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003545/6.294, allocations: 174.7 kB / 3.183 GB, free: 357.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.766e-05/6.294, allocations: 73.02 kB / 3.183 GB, free: 357.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003111/6.294, allocations: 352.4 kB / 3.183 GB, free: 357.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.286e-05/6.294, allocations: 42.5 kB / 3.183 GB, free: 357.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=21): time 1.453e-06/6.294, allocations: 0 / 3.183 GB, free: 357.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=21): time 0.0004137/6.295, allocations: 177.3 kB / 3.184 GB, free: 356.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.101e-05/6.295, allocations: 59.39 kB / 3.184 GB, free: 356.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.853e-05/6.295, allocations: 139.9 kB / 3.184 GB, free: 356.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.334e-05/6.295, allocations: 29.69 kB / 3.184 GB, free: 356.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 5.341e-05/6.295, allocations: 152 kB / 3.184 GB, free: 356.5 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/6.295, allocations: 70.95 kB / 3.184 GB, free: 356.4 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/6.295, allocations: 0 / 3.184 GB, free: 356.4 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.048e-05/6.295, allocations: 322.8 kB / 3.184 GB, free: 356.1 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.82e-05/6.295, allocations: 68.23 kB / 3.184 GB, free: 356 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001086/6.295, allocations: 147.6 kB / 3.184 GB, free: 355.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001418/6.295, allocations: 84.64 kB / 3.185 GB, free: 355.8 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/6.295, allocations: 4 kB / 3.185 GB, free: 355.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003542/6.296, allocations: 250.6 kB / 3.185 GB, free: 355.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.846e-05/6.296, allocations: 5.094 kB / 3.185 GB, free: 355.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/6.296, allocations: 11.92 kB / 3.185 GB, free: 355.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/6.296, allocations: 4 kB / 3.185 GB, free: 355.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/6.296, allocations: 55.92 kB / 3.185 GB, free: 355.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.146e-06/6.296, allocations: 4.109 kB / 3.185 GB, free: 355.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001812/6.296, allocations: 28.14 kB / 3.185 GB, free: 355.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.047e-05/6.296, allocations: 12 kB / 3.185 GB, free: 355.4 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.133e-05/6.296, allocations: 116.8 kB / 3.185 GB, free: 355.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.4e-05/6.296, allocations: 15.81 kB / 3.185 GB, free: 355.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000363/6.297, allocations: 215.8 kB / 3.185 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/6.297, allocations: 0 / 3.185 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/6.297, allocations: 0 / 3.185 GB, free: 355.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/6.297, allocations: 4 kB / 3.185 GB, free: 355 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004973/6.297, allocations: 0.4897 MB / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/6.297, allocations: 4 kB / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/6.298, allocations: 35.98 kB / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/6.298, allocations: 0 / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/6.298, allocations: 4 kB / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/6.298, allocations: 0 / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/6.298, allocations: 0 / 3.186 GB, free: 354.5 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002945/6.298, allocations: 316.4 kB / 3.186 GB, free: 354.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 8.146e-05/6.298, allocations: 116.9 kB / 3.186 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/6.298, allocations: 0 / 3.186 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002347/6.298, allocations: 19.89 kB / 3.186 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/6.298, allocations: 7.984 kB / 3.186 GB, free: 354 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.618e-05/6.298, allocations: 19.98 kB / 3.186 GB, free: 353.9 MB / 1.151 GB Notification: Performance of sorting global known variables: time 5.316e-05/6.298, allocations: 113.1 kB / 3.186 GB, free: 353.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.3e-07/6.298, allocations: 0 / 3.186 GB, free: 353.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0005591/6.299, allocations: 135.9 kB / 3.186 GB, free: 353.7 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.0007935/6.3, allocations: 0.7273 MB / 3.187 GB, free: 353 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002766/6.3, allocations: 177.4 kB / 3.187 GB, free: 352.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.756e-06/6.3, allocations: 4 kB / 3.187 GB, free: 352.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 8.49e-05/6.3, allocations: 75.84 kB / 3.187 GB, free: 352.7 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003786/6.3, allocations: 44.83 kB / 3.187 GB, free: 352.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/6.301, allocations: 227.3 kB / 3.188 GB, free: 352.4 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001527/6.301, allocations: 0.7443 MB / 3.188 GB, free: 351.7 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.000266/6.301, allocations: 53.81 kB / 3.188 GB, free: 351.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.039e-05/6.301, allocations: 19.44 kB / 3.188 GB, free: 351.6 MB / 1.151 GB Notification: Performance of SimCode: time 2.4e-07/6.301, allocations: 0 / 3.188 GB, free: 351.6 MB / 1.151 GB Notification: Performance of Templates: time 0.01021/6.312, allocations: 6.926 MB / 3.195 GB, free: 344.7 MB / 1.151 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.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