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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 197.1 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.385/2.385, allocations: 390.2 MB / 0.6642 GB, free: 0.5977 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 59.91 kB / 0.8118 GB, free: 14.91 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6781/0.6794, allocations: 140.4 MB / 0.9489 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirProperties): time 0.1654/0.8449, allocations: 146.8 MB / 1.092 GB, free: 14.73 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004624/0.8496, allocations: 3.676 MB / 1.096 GB, free: 11.05 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.8497, allocations: 3.938 kB / 1.096 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000425/0.8502, allocations: 59.75 kB / 1.096 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003413/0.8506, allocations: 127.3 kB / 1.096 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.8532, allocations: 0.9342 MB / 1.097 GB, free: 9.922 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005042/0.8537, allocations: 0.4916 MB / 1.097 GB, free: 9.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.626e-05/0.8538, allocations: 13.56 kB / 1.097 GB, free: 9.414 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003728/0.8542, allocations: 175.3 kB / 1.098 GB, free: 9.242 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.8544, allocations: 139.5 kB / 1.098 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.701e-05/0.8544, allocations: 8 kB / 1.098 GB, free: 9.098 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002208/0.8566, allocations: 1.527 MB / 1.099 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.687e-05/0.8567, allocations: 71.78 kB / 1.099 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001203/0.8568, allocations: 107.5 kB / 1.099 GB, free: 7.391 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001146/0.858, allocations: 0.7421 MB / 1.1 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.858, allocations: 0 / 1.1 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.202e-06/0.858, allocations: 3.938 kB / 1.1 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.858, allocations: 0 / 1.1 GB, free: 6.645 MB / 0.8575 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.001146/0.8592, allocations: 0.585 MB / 1.101 GB, free: 6.012 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.8592, allocations: 12.03 kB / 1.101 GB, free: 6 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001166/0.8604, allocations: 128.6 kB / 1.101 GB, free: 5.875 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002469/0.8606, allocations: 224 kB / 1.101 GB, free: 5.617 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.8607, allocations: 16.31 kB / 1.101 GB, free: 5.602 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.053e-05/0.8607, allocations: 19.98 kB / 1.101 GB, free: 5.582 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005302/0.8612, allocations: 338.1 kB / 1.101 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.134e-05/0.8613, allocations: 7.938 kB / 1.101 GB, free: 5.227 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.133e-05/0.8613, allocations: 8 kB / 1.101 GB, free: 5.219 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/0.8613, allocations: 19.98 kB / 1.101 GB, free: 5.199 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005051/0.8619, allocations: 316.1 kB / 1.102 GB, free: 4.891 MB / 0.8575 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.8634, allocations: 1.113 MB / 1.103 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.864, allocations: 198.4 kB / 1.103 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.8641, allocations: 76.81 kB / 1.103 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005392/0.8646, allocations: 469.4 kB / 1.104 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.8647, allocations: 38.56 kB / 1.104 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.8647, allocations: 0 / 1.104 GB, free: 2.805 MB / 0.8575 GB Notification: Performance of matching and sorting (n=21): time 0.0006551/0.8654, allocations: 262.3 kB / 1.104 GB, free: 2.543 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.8654, allocations: 51.41 kB / 1.104 GB, free: 2.48 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.8656, allocations: 203.2 kB / 1.104 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.8656, allocations: 33.7 kB / 1.104 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.403e-05/0.8657, allocations: 147.9 kB / 1.104 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.165e-05/0.8658, allocations: 74.95 kB / 1.104 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.245e-05/0.8659, allocations: 49.7 kB / 1.104 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.866, allocations: 330.8 kB / 1.105 GB, free: 1.621 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.8661, allocations: 64.23 kB / 1.105 GB, free: 1.559 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.8663, allocations: 160.8 kB / 1.105 GB, free: 1.363 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.8666, allocations: 248.5 kB / 1.105 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.8666, allocations: 4 kB / 1.105 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004877/0.8671, allocations: 289.9 kB / 1.105 GB, free: 0.7891 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.8672, allocations: 6.031 kB / 1.105 GB, free: 0.7852 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.8672, allocations: 4 kB / 1.105 GB, free: 0.7812 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.8672, allocations: 7.938 kB / 1.105 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.8675, allocations: 60.28 kB / 1.106 GB, free: 0.7148 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.8675, allocations: 4 kB / 1.106 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.8677, allocations: 35.73 kB / 1.106 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.8677, allocations: 19.94 kB / 1.106 GB, free: 0.6562 MB / 0.8575 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.8679, allocations: 137.8 kB / 1.106 GB, free: 0.5117 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/0.868, allocations: 23.8 kB / 1.106 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004711/0.8685, allocations: 281.1 kB / 1.106 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.8685, allocations: 11.92 kB / 1.106 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.8685, allocations: 0 / 1.106 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.8685, allocations: 0 / 1.106 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006964/0.8692, allocations: 0.5792 MB / 1.107 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.8692, allocations: 7.922 kB / 1.107 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.8694, allocations: 35.92 kB / 1.107 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.8694, allocations: 4.062 kB / 1.107 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.8695, allocations: 8 kB / 1.107 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.8695, allocations: 0 / 1.107 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.8695, allocations: 4 kB / 1.107 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004874/0.87, allocations: 340.8 kB / 1.107 GB, free: 15.15 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.8701, allocations: 120.8 kB / 1.107 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.759e-05/0.8701, allocations: 4 kB / 1.107 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002649/0.8704, allocations: 17.36 kB / 1.107 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.036e-05/0.8705, allocations: 15.92 kB / 1.107 GB, free: 14.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.8705, allocations: 15.98 kB / 1.107 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001202/0.8706, allocations: 152.2 kB / 1.107 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8706, allocations: 0 / 1.107 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.00048/0.8711, allocations: 116 kB / 1.107 GB, free: 14.7 MB / 0.8731 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004338/0.8716, allocations: 219 kB / 1.108 GB, free: 14.48 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003679/0.8719, allocations: 208.3 kB / 1.108 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.8719, allocations: 4.062 kB / 1.108 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001372/0.8721, allocations: 107.7 kB / 1.108 GB, free: 14.16 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006286/0.8727, allocations: 97.09 kB / 1.108 GB, free: 14.07 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007979/0.8735, allocations: 0.5186 MB / 1.109 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003009/0.8738, allocations: 0.7367 MB / 1.109 GB, free: 12.76 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002964/0.8742, allocations: 58.25 kB / 1.109 GB, free: 12.7 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.409e-05/0.8742, allocations: 27.38 kB / 1.109 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of SimCode: time 2.61e-07/0.8742, allocations: 0 / 1.109 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of Templates: time 0.009862/0.8841, allocations: 5.32 MB / 1.115 GB, free: 7.426 MB / 0.8731 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches