Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.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_9_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_9_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.005641/0.005641, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001256/0.001256, allocations: 201.6 kB / 16.68 MB, free: 5.969 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 4.352 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.459/2.459, allocations: 390.2 MB / 0.6648 GB, free: 192 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 66.92 kB / 0.9509 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3072/0.3087, allocations: 140.4 MB / 1.088 GB, free: 1.605 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04916/0.3579, allocations: 41.58 MB / 1.129 GB, free: 7.867 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01719/0.3751, allocations: 10.39 MB / 1.139 GB, free: 13.45 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002484/0.3776, allocations: 59.62 kB / 1.139 GB, free: 13.39 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00242/0.3801, allocations: 0.6599 MB / 1.139 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.006605/0.3868, allocations: 1.973 MB / 1.141 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003763/0.3905, allocations: 1.192 MB / 1.142 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.005724/0.3963, allocations: 3.41 MB / 1.146 GB, free: 6.148 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.3982, allocations: 1.06 MB / 1.147 GB, free: 5.07 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003423/0.4016, allocations: 1.265 MB / 1.148 GB, free: 3.805 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.4033, allocations: 0.8867 MB / 1.149 GB, free: 2.914 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0003183/0.4037, allocations: 100 kB / 1.149 GB, free: 2.816 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.4061, allocations: 0.8617 MB / 1.15 GB, free: 1.953 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000418/0.4065, allocations: 279 kB / 1.15 GB, free: 1.68 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001225/0.4078, allocations: 0.6337 MB / 1.151 GB, free: 1.043 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003758/0.4115, allocations: 1.935 MB / 1.153 GB, free: 15.1 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4116, allocations: 0 / 1.153 GB, free: 15.1 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.463e-06/0.4116, allocations: 4 kB / 1.153 GB, free: 15.09 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.565e-05/0.4116, allocations: 0 / 1.153 GB, free: 15.09 MB / 0.92 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.003021/0.4146, allocations: 1.548 MB / 1.154 GB, free: 13.49 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4147, allocations: 16.03 kB / 1.154 GB, free: 13.48 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000449/0.4152, allocations: 140.1 kB / 1.154 GB, free: 13.34 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002192/0.4174, allocations: 1.112 MB / 1.155 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.495e-05/0.4174, allocations: 54 kB / 1.155 GB, free: 12.13 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001218/0.4176, allocations: 71.95 kB / 1.156 GB, free: 12.06 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001548/0.4191, allocations: 0.7905 MB / 1.156 GB, free: 11.23 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.939e-05/0.4192, allocations: 4 kB / 1.156 GB, free: 11.23 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.838e-05/0.4192, allocations: 28 kB / 1.156 GB, free: 11.2 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.4193, allocations: 19.94 kB / 1.156 GB, free: 11.18 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/0.4205, allocations: 0.575 MB / 1.157 GB, free: 10.61 MB / 0.92 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.004722/0.4253, allocations: 3.552 MB / 1.16 GB, free: 6.828 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006029/0.4259, allocations: 262.4 kB / 1.161 GB, free: 6.562 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003633/0.4263, allocations: 182.9 kB / 1.161 GB, free: 6.383 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005235/0.4268, allocations: 0.6571 MB / 1.161 GB, free: 5.578 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.845e-05/0.4269, allocations: 34.56 kB / 1.161 GB, free: 5.535 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 2.214e-06/0.4269, allocations: 0 / 1.161 GB, free: 5.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.001298/0.4282, allocations: 0.5246 MB / 1.162 GB, free: 5.004 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.4282, allocations: 51.41 kB / 1.162 GB, free: 4.941 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.4295, allocations: 0.9456 MB / 1.163 GB, free: 3.977 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.647e-05/0.4296, allocations: 37.7 kB / 1.163 GB, free: 3.934 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.000424/0.43, allocations: 0.4965 MB / 1.163 GB, free: 3.434 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001207/0.4301, allocations: 119 kB / 1.164 GB, free: 3.316 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001728/0.4303, allocations: 122.1 kB / 1.164 GB, free: 3.191 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.4304, allocations: 329.9 kB / 1.164 GB, free: 2.863 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003824/0.4308, allocations: 161 kB / 1.164 GB, free: 2.703 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005073/0.4314, allocations: 354.9 kB / 1.165 GB, free: 2.281 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008634/0.4322, allocations: 0.5148 MB / 1.165 GB, free: 1.695 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4322, allocations: 3.938 kB / 1.165 GB, free: 1.691 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001305/0.4336, allocations: 0.6177 MB / 1.166 GB, free: 1.066 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.357e-05/0.4336, allocations: 8 kB / 1.166 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.4336, allocations: 4 kB / 1.166 GB, free: 1.055 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.4336, allocations: 8 kB / 1.166 GB, free: 1.047 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.4341, allocations: 124.2 kB / 1.166 GB, free: 0.9258 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.863e-05/0.4341, allocations: 19.88 kB / 1.166 GB, free: 0.9062 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007393/0.4349, allocations: 87.41 kB / 1.166 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.753e-05/0.435, allocations: 31.98 kB / 1.166 GB, free: 0.7891 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.0004041/0.4354, allocations: 273.6 kB / 1.166 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.4356, allocations: 103.3 kB / 1.166 GB, free: 420 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001063/0.4367, allocations: 492.3 kB / 1.167 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.4367, allocations: 11.97 kB / 1.167 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4367, allocations: 0 / 1.167 GB, free: 15.91 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007203/0.4374, allocations: 445.5 kB / 1.167 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.4397, allocations: 1.372 MB / 1.169 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.139e-06/0.4397, allocations: 4 kB / 1.169 GB, free: 14 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003568/0.4401, allocations: 80.05 kB / 1.169 GB, free: 13.92 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.909e-06/0.4401, allocations: 7.938 kB / 1.169 GB, free: 13.91 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.013e-05/0.4401, allocations: 11.98 kB / 1.169 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.4401, allocations: 0 / 1.169 GB, free: 13.9 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4401, allocations: 4 kB / 1.169 GB, free: 13.89 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.4415, allocations: 0.7713 MB / 1.169 GB, free: 13.09 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003839/0.4419, allocations: 232.4 kB / 1.17 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001666/0.4421, allocations: 8 kB / 1.17 GB, free: 12.84 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005939/0.4427, allocations: 35.95 kB / 1.17 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.155e-05/0.4428, allocations: 23.97 kB / 1.17 GB, free: 12.78 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.071e-05/0.4428, allocations: 15.98 kB / 1.17 GB, free: 12.76 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0009302/0.4437, allocations: 0.6588 MB / 1.17 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4437, allocations: 4 kB / 1.17 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001232/0.445, allocations: 351.2 kB / 1.171 GB, free: 11.75 MB / 0.9356 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.001196/0.4462, allocations: 387.3 kB / 1.171 GB, free: 11.37 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.001466/0.4477, allocations: 420.6 kB / 1.171 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.4477, allocations: 7.938 kB / 1.171 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000537/0.4483, allocations: 188.7 kB / 1.172 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003479/0.4518, allocations: 0.6185 MB / 1.172 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.4546, allocations: 1.615 MB / 1.174 GB, free: 8.508 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/0.4553, allocations: 1.036 MB / 1.175 GB, free: 7.441 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0008079/0.4561, allocations: 199.8 kB / 1.175 GB, free: 7.246 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001845/0.4563, allocations: 83.41 kB / 1.175 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of SimCode: time 7.11e-07/0.4563, allocations: 0 / 1.175 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of Templates: time 0.03721/0.4935, allocations: 21.36 MB / 1.196 GB, free: 2.066 MB / 0.9512 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches