Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00186/0.001859, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001785/0.001785, allocations: 194.6 kB / 16.25 MB, free: 6.621 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.481/1.481, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.022/3.022, allocations: 482.3 MB / 0.7542 GB, free: 11.27 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 70.72 kB / 0.9232 GB, free: 29.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4199/0.4219, allocations: 162.2 MB / 1.082 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04655/0.4685, allocations: 41.33 MB / 1.122 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01866/0.4872, allocations: 10.33 MB / 1.132 GB, free: 9.898 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00342/0.4906, allocations: 55.62 kB / 1.132 GB, free: 9.844 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002747/0.4935, allocations: 0.5596 MB / 1.133 GB, free: 9.281 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00664/0.5002, allocations: 1.753 MB / 1.134 GB, free: 7.523 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003856/0.504, allocations: 1.097 MB / 1.135 GB, free: 6.438 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.005604/0.5096, allocations: 3.418 MB / 1.139 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001802/0.5115, allocations: 1.041 MB / 1.14 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005541/0.517, allocations: 1.409 MB / 1.141 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002143/0.5192, allocations: 0.8984 MB / 1.142 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0002373/0.5194, allocations: 100 kB / 1.142 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002516/0.522, allocations: 0.8655 MB / 1.143 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0004377/0.5224, allocations: 283 kB / 1.143 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0008946/0.5233, allocations: 0.6299 MB / 1.144 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003047/0.5264, allocations: 1.924 MB / 1.146 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.5264, allocations: 0 / 1.146 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of FrontEnd: time 4.799e-06/0.5264, allocations: 0 / 1.146 GB, free: 11.83 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.657e-05/0.5265, allocations: 0 / 1.146 GB, free: 11.83 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003105/0.5296, allocations: 1.515 MB / 1.147 GB, free: 10.27 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.5296, allocations: 12.03 kB / 1.147 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003916/0.53, allocations: 131.4 kB / 1.147 GB, free: 10.12 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001923/0.532, allocations: 1.085 MB / 1.148 GB, free: 8.996 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.378e-05/0.532, allocations: 54 kB / 1.148 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.5322, allocations: 72 kB / 1.149 GB, free: 8.875 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.5337, allocations: 0.7905 MB / 1.149 GB, free: 8.047 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.5338, allocations: 4 kB / 1.149 GB, free: 8.043 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.407e-05/0.5338, allocations: 27.98 kB / 1.149 GB, free: 8.016 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.006e-05/0.5339, allocations: 31.98 kB / 1.149 GB, free: 7.984 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.5351, allocations: 0.5633 MB / 1.15 GB, free: 7.418 MB / 0.9044 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.005024/0.5401, allocations: 3.694 MB / 1.154 GB, free: 3.457 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006068/0.5407, allocations: 270.2 kB / 1.154 GB, free: 3.184 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.5411, allocations: 186 kB / 1.154 GB, free: 3 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006407/0.5417, allocations: 0.6532 MB / 1.155 GB, free: 2.199 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.5418, allocations: 38.56 kB / 1.155 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=31): time 2.425e-06/0.5418, allocations: 0 / 1.155 GB, free: 2.152 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31): time 0.001381/0.5432, allocations: 0.5163 MB / 1.155 GB, free: 1.629 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.5433, allocations: 55.41 kB / 1.155 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.5445, allocations: 0.9299 MB / 1.156 GB, free: 0.6133 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.31e-05/0.5446, allocations: 37.7 kB / 1.156 GB, free: 0.5703 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004615/0.545, allocations: 499.6 kB / 1.157 GB, free: 80 kB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.5452, allocations: 118.4 kB / 1.157 GB, free: 15.96 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.5454, allocations: 118.1 kB / 1.157 GB, free: 15.84 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001686/0.5456, allocations: 329.9 kB / 1.157 GB, free: 15.51 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.546, allocations: 165 kB / 1.157 GB, free: 15.35 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005481/0.5465, allocations: 346.9 kB / 1.158 GB, free: 14.94 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.5474, allocations: 0.5147 MB / 1.158 GB, free: 14.35 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.5474, allocations: 4 kB / 1.158 GB, free: 14.35 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001316/0.5488, allocations: 0.6093 MB / 1.159 GB, free: 13.73 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.5488, allocations: 8 kB / 1.159 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.5488, allocations: 4 kB / 1.159 GB, free: 13.72 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.148e-05/0.5488, allocations: 11.98 kB / 1.159 GB, free: 13.71 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004871/0.5493, allocations: 128.4 kB / 1.159 GB, free: 13.58 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.283e-05/0.5494, allocations: 11.94 kB / 1.159 GB, free: 13.57 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008589/0.5502, allocations: 107.1 kB / 1.159 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.5503, allocations: 28 kB / 1.159 GB, free: 13.44 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (65): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0005633/0.5509, allocations: 281.5 kB / 1.159 GB, free: 13.15 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.5511, allocations: 98.78 kB / 1.159 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001093/0.5522, allocations: 490.7 kB / 1.16 GB, free: 12.56 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.5522, allocations: 4 kB / 1.16 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.5522, allocations: 0 / 1.16 GB, free: 12.55 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007659/0.553, allocations: 450.7 kB / 1.16 GB, free: 12.09 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.5554, allocations: 1.351 MB / 1.162 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.5554, allocations: 4.031 kB / 1.162 GB, free: 10.66 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003622/0.5558, allocations: 75.89 kB / 1.162 GB, free: 10.59 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.383e-05/0.5558, allocations: 11.92 kB / 1.162 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.5558, allocations: 8 kB / 1.162 GB, free: 10.57 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.823e-06/0.5558, allocations: 4 kB / 1.162 GB, free: 10.56 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5558, allocations: 0 / 1.162 GB, free: 10.56 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001452/0.5573, allocations: 0.7666 MB / 1.162 GB, free: 9.766 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003865/0.5577, allocations: 239.6 kB / 1.163 GB, free: 9.512 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.5578, allocations: 11.94 kB / 1.163 GB, free: 9.5 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005757/0.5584, allocations: 51.91 kB / 1.163 GB, free: 9.449 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.217e-05/0.5585, allocations: 27.91 kB / 1.163 GB, free: 9.422 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.342e-05/0.5585, allocations: 19.98 kB / 1.163 GB, free: 9.402 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0009654/0.5595, allocations: 0.6471 MB / 1.163 GB, free: 8.746 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5595, allocations: 4 kB / 1.163 GB, free: 8.742 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001141/0.5607, allocations: 331.4 kB / 1.164 GB, free: 8.418 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * 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 (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.0009017/0.5616, allocations: 381.3 kB / 1.164 GB, free: 8.047 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.001058/0.5626, allocations: 460.4 kB / 1.165 GB, free: 7.598 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5627, allocations: 0 / 1.165 GB, free: 7.598 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003838/0.5631, allocations: 185.2 kB / 1.165 GB, free: 7.418 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002601/0.5657, allocations: 0.6153 MB / 1.165 GB, free: 6.828 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003297/0.569, allocations: 1.93 MB / 1.167 GB, free: 4.848 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008572/0.5698, allocations: 1.048 MB / 1.168 GB, free: 3.77 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0008422/0.5707, allocations: 199.4 kB / 1.168 GB, free: 3.574 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.5709, allocations: 79.42 kB / 1.169 GB, free: 3.496 MB / 0.92 GB Notification: Performance of SimCode: time 7.41e-07/0.5709, allocations: 0 / 1.169 GB, free: 3.496 MB / 0.92 GB Notification: Performance of Templates: time 0.04176/0.6126, allocations: 20.72 MB / 1.189 GB, free: 15.05 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches