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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,fileNamePrefix="Buildings_latest_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.0009224/0.0009224, allocations: 91.38 kB / 15.36 MB, free: 0.7383 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.005233/0.005233, allocations: 172.5 kB / 16.26 MB, free: 6.613 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.326/1.326, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.779/2.779, allocations: 443.4 MB / 0.7176 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003854, allocations: 10.88 kB / 0.8797 GB, free: 41.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3589/0.3593, allocations: 155.2 MB / 1.031 GB, free: 4.246 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03945/0.3988, allocations: 40.49 MB / 1.071 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01563/0.4145, allocations: 10.36 MB / 1.081 GB, free: 1.227 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002282/0.4168, allocations: 47.69 kB / 1.081 GB, free: 1.18 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001596/0.4184, allocations: 0.5283 MB / 1.081 GB, free: 0.6484 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005682/0.4241, allocations: 1.738 MB / 1.083 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.4277, allocations: 1.073 MB / 1.084 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005909/0.4336, allocations: 4.521 MB / 1.089 GB, free: 9.309 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001448/0.4351, allocations: 0.8501 MB / 1.089 GB, free: 8.438 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.4377, allocations: 1.011 MB / 1.09 GB, free: 7.422 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001603/0.4393, allocations: 0.8592 MB / 1.091 GB, free: 6.559 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.4395, allocations: 36 kB / 1.091 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/0.4417, allocations: 0.7755 MB / 1.092 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002662/0.442, allocations: 211 kB / 1.092 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0007938/0.4428, allocations: 0.5807 MB / 1.093 GB, free: 4.949 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002484/0.4453, allocations: 1.83 MB / 1.095 GB, free: 3.113 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.4453, allocations: 0 / 1.095 GB, free: 3.113 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.174e-06/0.4453, allocations: 7.875 kB / 1.095 GB, free: 3.105 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.763e-05/0.4453, allocations: 0 / 1.095 GB, free: 3.105 MB / 0.8419 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.002354/0.4477, allocations: 1.301 MB / 1.096 GB, free: 1.75 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4477, allocations: 8.031 kB / 1.096 GB, free: 1.742 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/0.4479, allocations: 114.7 kB / 1.096 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000321/0.4482, allocations: 131.4 kB / 1.096 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.4499, allocations: 1.087 MB / 1.097 GB, free: 372 kB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.483e-05/0.45, allocations: 54 kB / 1.097 GB, free: 316 kB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001055/0.4501, allocations: 83.84 kB / 1.097 GB, free: 232 kB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.4515, allocations: 0.8023 MB / 1.098 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.4515, allocations: 0 / 1.098 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.68e-05/0.4516, allocations: 32 kB / 1.098 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.051e-05/0.4516, allocations: 24 kB / 1.098 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.4528, allocations: 0.5867 MB / 1.099 GB, free: 14.75 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.004121/0.4569, allocations: 3.547 MB / 1.102 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006142/0.4575, allocations: 279.5 kB / 1.102 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003638/0.4579, allocations: 182.8 kB / 1.103 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005222/0.4585, allocations: 0.6609 MB / 1.103 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.401e-05/0.4585, allocations: 38.56 kB / 1.103 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=31): time 2.185e-06/0.4585, allocations: 0 / 1.103 GB, free: 9.66 MB / 0.8575 GB Notification: Performance of matching and sorting (n=31): time 0.001224/0.4597, allocations: 0.5432 MB / 1.104 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.917e-05/0.4598, allocations: 59.41 kB / 1.104 GB, free: 9.039 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.4609, allocations: 0.9338 MB / 1.105 GB, free: 8.086 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.265e-05/0.461, allocations: 33.7 kB / 1.105 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004102/0.4614, allocations: 0.4918 MB / 1.105 GB, free: 7.547 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.4615, allocations: 114.4 kB / 1.105 GB, free: 7.434 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.217e-05/0.4616, allocations: 49.69 kB / 1.106 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.4617, allocations: 325.9 kB / 1.106 GB, free: 7.055 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.4621, allocations: 181 kB / 1.106 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005245/0.4626, allocations: 360.5 kB / 1.106 GB, free: 6.449 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008786/0.4635, allocations: 0.5305 MB / 1.107 GB, free: 5.848 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4635, allocations: 4 kB / 1.107 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00127/0.4648, allocations: 0.6408 MB / 1.107 GB, free: 5.195 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.4649, allocations: 12.06 kB / 1.107 GB, free: 5.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4649, allocations: 4 kB / 1.107 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.4649, allocations: 8 kB / 1.108 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004556/0.4654, allocations: 127.8 kB / 1.108 GB, free: 5.047 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.4654, allocations: 11.94 kB / 1.108 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007945/0.4662, allocations: 127 kB / 1.108 GB, free: 4.91 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/0.4663, allocations: 31.98 kB / 1.108 GB, free: 4.879 MB / 0.8575 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.0004442/0.4667, allocations: 277.6 kB / 1.108 GB, free: 4.598 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.4669, allocations: 98.78 kB / 1.108 GB, free: 4.5 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001058/0.468, allocations: 0.5041 MB / 1.109 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-05/0.468, allocations: 4 kB / 1.109 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.468, allocations: 0 / 1.109 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000783/0.4688, allocations: 477.4 kB / 1.109 GB, free: 3.488 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002296/0.4711, allocations: 1.37 MB / 1.11 GB, free: 2.047 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.4711, allocations: 7.938 kB / 1.11 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003414/0.4715, allocations: 80.03 kB / 1.111 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4715, allocations: 8 kB / 1.111 GB, free: 1.953 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.4715, allocations: 12.06 kB / 1.111 GB, free: 1.941 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.4715, allocations: 4 kB / 1.111 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.4715, allocations: 0 / 1.111 GB, free: 1.938 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00132/0.4729, allocations: 0.8047 MB / 1.111 GB, free: 1.102 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/0.4732, allocations: 247.6 kB / 1.112 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/0.4733, allocations: 12 kB / 1.112 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005781/0.4739, allocations: 56 kB / 1.112 GB, free: 0.7734 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.474, allocations: 27.97 kB / 1.112 GB, free: 0.7461 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-05/0.4741, allocations: 15.98 kB / 1.112 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.000881/0.4749, allocations: 0.651 MB / 1.112 GB, free: 72 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4749, allocations: 0 / 1.112 GB, free: 72 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0009662/0.4759, allocations: 331.4 kB / 1.113 GB, free: 15.75 MB / 0.8731 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.00235/0.4783, allocations: 1.612 MB / 1.114 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000981/0.4793, allocations: 445.5 kB / 1.115 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.4793, allocations: 0 / 1.115 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003944/0.4797, allocations: 196.6 kB / 1.115 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003271/0.483, allocations: 0.6013 MB / 1.115 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.4956, allocations: 7.583 MB / 1.123 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006186/0.4963, allocations: 1.04 MB / 1.124 GB, free: 3.828 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0009271/0.4972, allocations: 192.4 kB / 1.124 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005178/0.4977, allocations: 371.3 kB / 1.124 GB, free: 3.277 MB / 0.8731 GB Notification: Performance of SimCode: time 1.222e-06/0.4978, allocations: 4 kB / 1.124 GB, free: 3.273 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05534/0.5531, allocations: 28.32 MB / 1.152 GB, free: 7.383 MB / 0.9044 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.5534, allocations: 262.8 kB / 1.152 GB, free: 7.059 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.32, allocations: 0 / 1.152 GB, free: 7.059 MB / 0.9044 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.fmu > 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches