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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007728/0.007729, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001798/0.001798, allocations: 188.6 kB / 16.67 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.361/1.361, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.441/2.441, allocations: 390.2 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 63.95 kB / 0.9504 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3263/0.3284, allocations: 140.4 MB / 1.087 GB, free: 2.117 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04391/0.3724, allocations: 41.57 MB / 1.128 GB, free: 8.387 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01548/0.3879, allocations: 10.4 MB / 1.138 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00214/0.3901, allocations: 59.62 kB / 1.138 GB, free: 13.9 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.3922, allocations: 0.6404 MB / 1.139 GB, free: 13.26 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005664/0.3979, allocations: 1.879 MB / 1.141 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003366/0.4013, allocations: 1.192 MB / 1.142 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.00497/0.4063, allocations: 3.402 MB / 1.145 GB, free: 6.781 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002015/0.4083, allocations: 1.063 MB / 1.146 GB, free: 5.703 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003516/0.4119, allocations: 1.261 MB / 1.147 GB, free: 4.441 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.414, allocations: 0.8789 MB / 1.148 GB, free: 3.559 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0004017/0.4144, allocations: 100 kB / 1.148 GB, free: 3.461 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002502/0.4169, allocations: 0.8656 MB / 1.149 GB, free: 2.594 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003581/0.4173, allocations: 279 kB / 1.15 GB, free: 2.32 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0008511/0.4181, allocations: 0.6376 MB / 1.15 GB, free: 1.68 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003036/0.4212, allocations: 1.917 MB / 1.152 GB, free: 15.75 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.4212, allocations: 0 / 1.152 GB, free: 15.75 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4212, allocations: 0 / 1.152 GB, free: 15.75 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.961e-05/0.4212, allocations: 0 / 1.152 GB, free: 15.75 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.002474/0.4237, allocations: 1.518 MB / 1.154 GB, free: 14.19 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.4238, allocations: 11.97 kB / 1.154 GB, free: 14.18 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001316/0.4239, allocations: 114.7 kB / 1.154 GB, free: 14.05 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003436/0.4242, allocations: 131.4 kB / 1.154 GB, free: 13.93 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/0.4261, allocations: 1.115 MB / 1.155 GB, free: 12.77 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.4262, allocations: 50 kB / 1.155 GB, free: 12.72 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.4263, allocations: 75.94 kB / 1.155 GB, free: 12.64 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4277, allocations: 0.7905 MB / 1.156 GB, free: 11.82 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/0.4277, allocations: 4 kB / 1.156 GB, free: 11.81 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.268e-05/0.4278, allocations: 28 kB / 1.156 GB, free: 11.79 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.4278, allocations: 20 kB / 1.156 GB, free: 11.77 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.4289, allocations: 0.5672 MB / 1.156 GB, free: 11.2 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.004006/0.433, allocations: 3.547 MB / 1.16 GB, free: 7.422 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005711/0.4335, allocations: 273.5 kB / 1.16 GB, free: 7.148 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003338/0.4339, allocations: 182.8 kB / 1.16 GB, free: 6.969 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004891/0.4344, allocations: 0.6532 MB / 1.161 GB, free: 6.168 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.4344, allocations: 38.56 kB / 1.161 GB, free: 6.121 MB / 0.92 GB Notification: Performance of pre-optimization done (n=31): time 3.586e-06/0.4344, allocations: 7.984 kB / 1.161 GB, free: 6.113 MB / 0.92 GB Notification: Performance of matching and sorting (n=31): time 0.001215/0.4357, allocations: 0.5085 MB / 1.161 GB, free: 5.598 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.4357, allocations: 55.41 kB / 1.162 GB, free: 5.531 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.4368, allocations: 0.9456 MB / 1.162 GB, free: 4.566 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/0.4369, allocations: 37.7 kB / 1.162 GB, free: 4.523 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.4373, allocations: 0.4918 MB / 1.163 GB, free: 4.027 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.4374, allocations: 110.4 kB / 1.163 GB, free: 3.918 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001509/0.4375, allocations: 114.1 kB / 1.163 GB, free: 3.801 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.4376, allocations: 333.9 kB / 1.163 GB, free: 3.469 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003589/0.438, allocations: 165 kB / 1.164 GB, free: 3.305 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004715/0.4385, allocations: 350.9 kB / 1.164 GB, free: 2.887 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008/0.4393, allocations: 0.5147 MB / 1.164 GB, free: 2.301 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.4393, allocations: 4 kB / 1.164 GB, free: 2.297 MB / 0.92 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001182/0.4405, allocations: 0.6059 MB / 1.165 GB, free: 1.684 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.4405, allocations: 8 kB / 1.165 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.4406, allocations: 8.031 kB / 1.165 GB, free: 1.668 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.4406, allocations: 11.98 kB / 1.165 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004425/0.441, allocations: 127.8 kB / 1.165 GB, free: 1.531 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.334e-05/0.4411, allocations: 8 kB / 1.165 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006393/0.4417, allocations: 87.25 kB / 1.165 GB, free: 1.438 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.4418, allocations: 31.92 kB / 1.165 GB, free: 1.406 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.0003997/0.4422, allocations: 277.7 kB / 1.166 GB, free: 1.125 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001616/0.4423, allocations: 98.78 kB / 1.166 GB, free: 1.027 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009957/0.4433, allocations: 499.4 kB / 1.166 GB, free: 0.5312 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.304e-05/0.4434, allocations: 4 kB / 1.166 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4434, allocations: 0 / 1.166 GB, free: 0.5273 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007296/0.4441, allocations: 453.5 kB / 1.167 GB, free: 56 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002057/0.4462, allocations: 1.368 MB / 1.168 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.4462, allocations: 0 / 1.168 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003344/0.4465, allocations: 79.83 kB / 1.168 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.4466, allocations: 0 / 1.168 GB, free: 14.54 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.748e-05/0.4466, allocations: 12 kB / 1.168 GB, free: 14.53 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4466, allocations: 4 kB / 1.168 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.4466, allocations: 4 kB / 1.168 GB, free: 14.52 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001319/0.4479, allocations: 0.7671 MB / 1.169 GB, free: 13.72 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000389/0.4483, allocations: 231.6 kB / 1.169 GB, free: 13.47 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.4485, allocations: 8 kB / 1.169 GB, free: 13.46 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004812/0.4489, allocations: 27.97 kB / 1.169 GB, free: 13.44 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.693e-05/0.449, allocations: 28.03 kB / 1.169 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.692e-05/0.4491, allocations: 19.98 kB / 1.169 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0008096/0.4499, allocations: 0.6588 MB / 1.17 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4499, allocations: 0 / 1.17 GB, free: 12.72 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0009653/0.4509, allocations: 331.5 kB / 1.17 GB, free: 12.4 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.002189/0.4531, allocations: 1.599 MB / 1.172 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009069/0.454, allocations: 425.1 kB / 1.172 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.454, allocations: 0 / 1.172 GB, free: 10.35 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0003863/0.4544, allocations: 188.8 kB / 1.172 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002789/0.4572, allocations: 0.6179 MB / 1.173 GB, free: 9.566 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009179/0.4664, allocations: 6.808 MB / 1.179 GB, free: 2.461 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000593/0.467, allocations: 1.04 MB / 1.18 GB, free: 1.391 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0007314/0.4678, allocations: 196.3 kB / 1.181 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004716/0.4682, allocations: 371.3 kB / 1.181 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of SimCode: time 8.12e-07/0.4683, allocations: 0 / 1.181 GB, free: 0.8359 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05723/0.5255, allocations: 30.17 MB / 1.21 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.62, allocations: 4.609 kB / 1.21 GB, free: 2.996 MB / 0.9669 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches