Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_Buildings.Media.Examples.AirProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.552/1.552, allocations: 249.3 MB / 261.8 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00124/0.00124, allocations: 184.9 kB / 321.3 MB, free: 14.62 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.758/1.758, allocations: 205.1 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 84.81 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.112e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2239, allocations: 106.3 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.846/7.07, allocations: 2.205 GB / 3.097 GB, free: 164.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/7.07, allocations: 71.97 kB / 3.097 GB, free: 164.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.1/7.17, allocations: 50.63 MB / 3.146 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.565e-06/7.17, allocations: 4 kB / 3.146 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.057e-05/7.17, allocations: 7.984 kB / 3.146 GB, free: 113.2 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001264/7.172, allocations: 0.5645 MB / 3.147 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.907e-05/7.172, allocations: 8.031 kB / 3.147 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/7.173, allocations: 139.6 kB / 3.147 GB, free: 112.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002856/7.173, allocations: 222.8 kB / 3.147 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.827e-05/7.173, allocations: 12.44 kB / 3.147 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.916e-05/7.173, allocations: 16 kB / 3.147 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005793/7.174, allocations: 351.4 kB / 3.147 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/7.174, allocations: 0 / 3.147 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.701e-05/7.174, allocations: 15.95 kB / 3.147 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.097e-05/7.174, allocations: 12.36 kB / 3.147 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004905/7.174, allocations: 312.9 kB / 3.148 GB, free: 111.5 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001506/7.176, allocations: 1.201 MB / 3.149 GB, free: 110.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004356/7.176, allocations: 185.1 kB / 3.149 GB, free: 110 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/7.176, allocations: 83.23 kB / 3.149 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003834/7.177, allocations: 356.4 kB / 3.149 GB, free: 109.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.548e-05/7.177, allocations: 34.56 kB / 3.15 GB, free: 109.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=20): time 1.513e-06/7.177, allocations: 0 / 3.15 GB, free: 109.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=20): time 0.0004804/7.177, allocations: 185.7 kB / 3.15 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/7.177, allocations: 51.41 kB / 3.15 GB, free: 109.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001869/7.178, allocations: 199.3 kB / 3.15 GB, free: 109 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/7.178, allocations: 33.7 kB / 3.15 GB, free: 108.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.2e-05/7.178, allocations: 147.9 kB / 3.15 GB, free: 108.8 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/7.178, allocations: 78.88 kB / 3.15 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.302e-05/7.178, allocations: 4 kB / 3.15 GB, free: 108.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.492e-05/7.178, allocations: 330.8 kB / 3.151 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/7.178, allocations: 68.23 kB / 3.151 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/7.178, allocations: 156.5 kB / 3.151 GB, free: 108.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001439/7.178, allocations: 91.44 kB / 3.151 GB, free: 108 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/7.178, allocations: 0 / 3.151 GB, free: 108 MB / 0.8698 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004203/7.179, allocations: 279.6 kB / 3.151 GB, free: 107.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/7.179, allocations: 8 kB / 3.151 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/7.179, allocations: 7.938 kB / 3.151 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.494e-05/7.179, allocations: 4 kB / 3.151 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002466/7.179, allocations: 51.92 kB / 3.151 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/7.179, allocations: 7.984 kB / 3.151 GB, free: 107.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002129/7.179, allocations: 39.94 kB / 3.151 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.745e-05/7.179, allocations: 12.11 kB / 3.151 GB, free: 107.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 9.201e-05/7.179, allocations: 121.3 kB / 3.151 GB, free: 107.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/7.179, allocations: 23.77 kB / 3.151 GB, free: 107.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003935/7.18, allocations: 227.1 kB / 3.152 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/7.18, allocations: 4 kB / 3.152 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/7.18, allocations: 0 / 3.152 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/7.18, allocations: 3.953 kB / 3.152 GB, free: 107.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005126/7.18, allocations: 0.516 MB / 3.152 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/7.18, allocations: 0 / 3.152 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/7.181, allocations: 27.98 kB / 3.152 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/7.181, allocations: 0 / 3.152 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.721e-05/7.181, allocations: 7.984 kB / 3.152 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/7.181, allocations: 0 / 3.152 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/7.181, allocations: 0 / 3.152 GB, free: 106.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003256/7.181, allocations: 312.1 kB / 3.152 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/7.181, allocations: 120.8 kB / 3.153 GB, free: 106.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.503e-05/7.181, allocations: 4 kB / 3.153 GB, free: 106.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/7.181, allocations: 11.98 kB / 3.153 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.938e-05/7.181, allocations: 11.98 kB / 3.153 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.657e-05/7.181, allocations: 11.98 kB / 3.153 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0001148/7.182, allocations: 159.3 kB / 3.153 GB, free: 106 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.61e-07/7.182, allocations: 0 / 3.153 GB, free: 106 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007073/7.182, allocations: 159.8 kB / 3.153 GB, free: 105.8 MB / 0.8698 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * 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.0009581/7.183, allocations: 0.6333 MB / 3.153 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003201/7.184, allocations: 178.1 kB / 3.154 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/7.184, allocations: 0.8125 kB / 3.154 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001008/7.184, allocations: 89.06 kB / 3.154 GB, free: 104.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005296/7.184, allocations: 87.91 kB / 3.154 GB, free: 104.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005223/7.185, allocations: 239.2 kB / 3.154 GB, free: 104.6 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/7.185, allocations: 0.7448 MB / 3.155 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002758/7.185, allocations: 54.03 kB / 3.155 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.008e-05/7.185, allocations: 23.44 kB / 3.155 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of SimCode: time 3.61e-07/7.185, allocations: 0 / 3.155 GB, free: 103.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.01642/7.202, allocations: 13.6 MB / 3.168 GB, free: 90.18 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.AirProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_AirProperties.csv","../files/Buildings_maint.7.0.x_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.X_steam,basPro.Xi[1],basPro.p,basPro.preferredMediumStates,basPro.standardOrderComponents,basPro.state.X[1],basPro.state.p,beta,cp,cv,d,ddTp,dddX[1],ddpT,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