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.309/2.309, allocations: 387.1 MB / 399.7 MB, free: 9.516 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.001367/0.001367, allocations: 167.3 kB / 492.3 MB, free: 0.6406 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.581/1.581, allocations: 221.3 MB / 0.7872 GB, free: 12.93 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.000985/0.000985, allocations: 87.91 kB / 0.9267 GB, free: 14.01 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.691e-05/3.694e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3354, allocations: 142.3 MB / 1.212 GB, free: 38.53 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.847/6.183, allocations: 1.921 GB / 3.134 GB, free: 346.1 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/6.183, allocations: 76.61 kB / 3.134 GB, free: 346.1 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 0.1025/6.286, allocations: 48.08 MB / 3.181 GB, free: 309.8 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.354e-06/6.286, allocations: 0 / 3.181 GB, free: 309.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 1.116e-05/6.286, allocations: 7.938 kB / 3.181 GB, free: 309.8 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.001093/6.287, allocations: 0.5535 MB / 3.181 GB, free: 309.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.69e-05/6.287, allocations: 8.031 kB / 3.181 GB, free: 309.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/6.288, allocations: 135 kB / 3.182 GB, free: 309.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/6.288, allocations: 214.3 kB / 3.182 GB, free: 308.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.806e-05/6.288, allocations: 16.06 kB / 3.182 GB, free: 308.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.448e-05/6.288, allocations: 19.88 kB / 3.182 GB, free: 308.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/6.289, allocations: 342.1 kB / 3.182 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/6.289, allocations: 4 kB / 3.182 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-05/6.289, allocations: 3.875 kB / 3.182 GB, free: 308.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.599e-05/6.289, allocations: 19.89 kB / 3.182 GB, free: 308.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004595/6.289, allocations: 320.9 kB / 3.182 GB, free: 308.3 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/6.291, allocations: 1.152 MB / 3.184 GB, free: 307.1 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004288/6.291, allocations: 189.2 kB / 3.184 GB, free: 307 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/6.291, allocations: 84.52 kB / 3.184 GB, free: 306.9 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003606/6.292, allocations: 360.2 kB / 3.184 GB, free: 306.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/6.292, allocations: 38.44 kB / 3.184 GB, free: 306.4 MB / 1.151 GB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/6.292, allocations: 0 / 3.184 GB, free: 306.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=21): time 0.0004565/6.292, allocations: 192.4 kB / 3.184 GB, free: 306.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.669e-05/6.292, allocations: 51.41 kB / 3.184 GB, free: 306.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/6.292, allocations: 185.4 kB / 3.185 GB, free: 306 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.226e-05/6.292, allocations: 29.39 kB / 3.185 GB, free: 306 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/6.293, allocations: 154.9 kB / 3.185 GB, free: 305.9 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.923e-05/6.293, allocations: 66.69 kB / 3.185 GB, free: 305.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.188e-05/6.293, allocations: 3.938 kB / 3.185 GB, free: 305.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.104e-05/6.293, allocations: 326.7 kB / 3.185 GB, free: 305.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-05/6.293, allocations: 71.62 kB / 3.185 GB, free: 305.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001377/6.293, allocations: 163.6 kB / 3.185 GB, free: 305.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/6.293, allocations: 88.81 kB / 3.185 GB, free: 305.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/6.293, allocations: 7.938 kB / 3.185 GB, free: 305.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0003644/6.293, allocations: 272.6 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/6.293, allocations: 8 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/6.293, allocations: 4 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/6.294, allocations: 4 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/6.294, allocations: 60.28 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/6.294, allocations: 4 kB / 3.186 GB, free: 304.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/6.294, allocations: 31.47 kB / 3.186 GB, free: 304.8 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.718e-05/6.294, allocations: 23.75 kB / 3.186 GB, free: 304.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 8.053e-05/6.294, allocations: 120.5 kB / 3.186 GB, free: 304.7 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-05/6.294, allocations: 19.81 kB / 3.186 GB, free: 304.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/6.295, allocations: 232.1 kB / 3.186 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/6.295, allocations: 8 kB / 3.186 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/6.295, allocations: 0 / 3.186 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/6.295, allocations: 0 / 3.186 GB, free: 304.5 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005297/6.295, allocations: 0.5343 MB / 3.187 GB, free: 304 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/6.295, allocations: 0 / 3.187 GB, free: 304 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/6.295, allocations: 35.92 kB / 3.187 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/6.295, allocations: 0 / 3.187 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/6.295, allocations: 7.688 kB / 3.187 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/6.295, allocations: 4 kB / 3.187 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/6.295, allocations: 0 / 3.187 GB, free: 303.9 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003081/6.296, allocations: 331.5 kB / 3.187 GB, free: 303.6 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001098/6.296, allocations: 120.6 kB / 3.187 GB, free: 303.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/6.296, allocations: 0 / 3.187 GB, free: 303.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/6.296, allocations: 15.42 kB / 3.187 GB, free: 303.4 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.407e-05/6.296, allocations: 11.98 kB / 3.187 GB, free: 303.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/6.296, allocations: 19.56 kB / 3.187 GB, free: 303.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 9.983e-05/6.296, allocations: 150.4 kB / 3.187 GB, free: 303.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/6.296, allocations: 0 / 3.187 GB, free: 303.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0007616/6.297, allocations: 147.3 kB / 3.188 GB, free: 303.2 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.0009849/6.298, allocations: 0.6506 MB / 3.188 GB, free: 302.5 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0003301/6.298, allocations: 177.7 kB / 3.188 GB, free: 302.4 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/6.298, allocations: 4 kB / 3.188 GB, free: 302.4 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001038/6.298, allocations: 82.48 kB / 3.188 GB, free: 302.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005749/6.299, allocations: 93.2 kB / 3.189 GB, free: 302.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005641/6.3, allocations: 249.7 kB / 3.189 GB, free: 302 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/6.3, allocations: 0.7367 MB / 3.189 GB, free: 301.2 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0002855/6.3, allocations: 58.03 kB / 3.19 GB, free: 301.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.627e-05/6.3, allocations: 23.44 kB / 3.19 GB, free: 301.2 MB / 1.151 GB Notification: Performance of SimCode: time 2.2e-07/6.3, allocations: 0 / 3.19 GB, free: 301.2 MB / 1.151 GB Notification: Performance of Templates: time 0.01923/6.32, allocations: 13.59 MB / 3.203 GB, free: 287.6 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.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