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.001015/0.001015, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006436/0.006436, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.436/1.436, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.72/2.72, allocations: 462.6 MB / 0.7364 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004349, allocations: 14.73 kB / 0.9029 GB, free: 36.44 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3402/0.3406, allocations: 159.6 MB / 1.059 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04276/0.3834, allocations: 40.49 MB / 1.098 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0179/0.4014, allocations: 10.35 MB / 1.108 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002687/0.4041, allocations: 47.69 kB / 1.108 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.4061, allocations: 0.5244 MB / 1.109 GB, free: 1.27 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.005718/0.4118, allocations: 1.749 MB / 1.111 GB, free: 15.52 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.415, allocations: 1.082 MB / 1.112 GB, free: 14.45 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.006072/0.4211, allocations: 4.51 MB / 1.116 GB, free: 9.926 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001636/0.4228, allocations: 0.8465 MB / 1.117 GB, free: 9.062 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002506/0.4253, allocations: 1.019 MB / 1.118 GB, free: 8.039 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.4267, allocations: 0.8592 MB / 1.119 GB, free: 7.176 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001603/0.4269, allocations: 36 kB / 1.119 GB, free: 7.141 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.4291, allocations: 0.7716 MB / 1.12 GB, free: 6.367 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002656/0.4294, allocations: 215 kB / 1.12 GB, free: 6.156 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0007447/0.4302, allocations: 0.5807 MB / 1.12 GB, free: 5.566 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00254/0.4327, allocations: 1.838 MB / 1.122 GB, free: 3.723 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.698e-06/0.4327, allocations: 0 / 1.122 GB, free: 3.723 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.144e-06/0.4327, allocations: 0 / 1.122 GB, free: 3.723 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.565e-05/0.4328, allocations: 0 / 1.122 GB, free: 3.723 MB / 0.8731 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.002169/0.4349, allocations: 1.293 MB / 1.123 GB, free: 2.375 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.435, allocations: 15.95 kB / 1.123 GB, free: 2.359 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000143/0.4351, allocations: 114.7 kB / 1.124 GB, free: 2.238 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003043/0.4354, allocations: 135.4 kB / 1.124 GB, free: 2.105 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.4371, allocations: 1.091 MB / 1.125 GB, free: 0.9727 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.105e-05/0.4371, allocations: 54 kB / 1.125 GB, free: 0.918 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.4373, allocations: 72 kB / 1.125 GB, free: 0.8477 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00134/0.4386, allocations: 0.8022 MB / 1.126 GB, free: 12 kB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.4386, allocations: 3.984 kB / 1.126 GB, free: 8 kB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.963e-05/0.4387, allocations: 28.08 kB / 1.126 GB, free: 15.98 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.268e-05/0.4388, allocations: 24 kB / 1.126 GB, free: 15.95 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001116/0.4399, allocations: 0.5906 MB / 1.126 GB, free: 15.36 MB / 0.8887 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.00393/0.4438, allocations: 3.548 MB / 1.13 GB, free: 11.59 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.4444, allocations: 278.3 kB / 1.13 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.4448, allocations: 186.5 kB / 1.13 GB, free: 11.13 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000517/0.4453, allocations: 0.6571 MB / 1.131 GB, free: 10.32 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4454, allocations: 42.5 kB / 1.131 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.364e-06/0.4454, allocations: 0 / 1.131 GB, free: 10.27 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001233/0.4466, allocations: 0.5481 MB / 1.131 GB, free: 9.719 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.963e-05/0.4467, allocations: 51.41 kB / 1.131 GB, free: 9.656 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.4478, allocations: 0.9417 MB / 1.132 GB, free: 8.695 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.137e-05/0.4479, allocations: 33.64 kB / 1.132 GB, free: 8.656 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004324/0.4483, allocations: 499.6 kB / 1.133 GB, free: 8.16 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.4484, allocations: 118.4 kB / 1.133 GB, free: 8.043 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.4485, allocations: 53.69 kB / 1.133 GB, free: 7.984 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4486, allocations: 329.9 kB / 1.133 GB, free: 7.656 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003618/0.449, allocations: 173 kB / 1.134 GB, free: 7.488 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004975/0.4495, allocations: 363 kB / 1.134 GB, free: 7.059 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008871/0.4504, allocations: 0.5303 MB / 1.134 GB, free: 6.457 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.4504, allocations: 0 / 1.134 GB, free: 6.457 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001152/0.4516, allocations: 0.6444 MB / 1.135 GB, free: 5.805 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.4516, allocations: 8.5 kB / 1.135 GB, free: 5.797 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.4516, allocations: 8 kB / 1.135 GB, free: 5.789 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.4517, allocations: 8 kB / 1.135 GB, free: 5.781 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.4521, allocations: 139.8 kB / 1.135 GB, free: 5.645 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.4521, allocations: 11.94 kB / 1.135 GB, free: 5.633 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007525/0.4529, allocations: 115.2 kB / 1.135 GB, free: 5.52 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.729e-05/0.453, allocations: 24 kB / 1.135 GB, free: 5.496 MB / 0.8887 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.0004348/0.4534, allocations: 281.6 kB / 1.136 GB, free: 5.211 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.4536, allocations: 98.78 kB / 1.136 GB, free: 5.113 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001021/0.4546, allocations: 0.4888 MB / 1.136 GB, free: 4.613 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.4546, allocations: 4 kB / 1.136 GB, free: 4.609 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4546, allocations: 3.938 kB / 1.136 GB, free: 4.605 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007632/0.4554, allocations: 479 kB / 1.137 GB, free: 4.109 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.4576, allocations: 1.37 MB / 1.138 GB, free: 2.668 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.4576, allocations: 3.938 kB / 1.138 GB, free: 2.664 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003255/0.458, allocations: 83.88 kB / 1.138 GB, free: 2.582 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.458, allocations: 8.156 kB / 1.138 GB, free: 2.574 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.458, allocations: 8 kB / 1.138 GB, free: 2.566 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.458, allocations: 4 kB / 1.138 GB, free: 2.562 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.458, allocations: 0 / 1.138 GB, free: 2.562 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001268/0.4593, allocations: 0.8017 MB / 1.139 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003456/0.4597, allocations: 247.6 kB / 1.139 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001033/0.4598, allocations: 8 kB / 1.139 GB, free: 1.461 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005769/0.4604, allocations: 56 kB / 1.139 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.898e-05/0.4605, allocations: 23.97 kB / 1.139 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.843e-05/0.4605, allocations: 19.98 kB / 1.139 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008983/0.4614, allocations: 0.651 MB / 1.14 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4614, allocations: 0 / 1.14 GB, free: 0.7031 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00114/0.4626, allocations: 335.4 kB / 1.14 GB, free: 384 kB / 0.8887 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.002385/0.465, allocations: 1.614 MB / 1.142 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0009008/0.4659, allocations: 452.2 kB / 1.142 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.4659, allocations: 0 / 1.142 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.4663, allocations: 196.6 kB / 1.142 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003021/0.4693, allocations: 0.605 MB / 1.143 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01212/0.4814, allocations: 7.583 MB / 1.15 GB, free: 5.523 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006366/0.4821, allocations: 1.04 MB / 1.151 GB, free: 4.453 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.001061/0.4832, allocations: 195.3 kB / 1.152 GB, free: 4.262 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004676/0.4837, allocations: 375.3 kB / 1.152 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of SimCode: time 1.222e-06/0.4837, allocations: 0 / 1.152 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06004/0.5437, allocations: 28.32 MB / 1.18 GB, free: 8.008 MB / 0.9356 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002404/0.544, allocations: 262.8 kB / 1.18 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.555/3.099, allocations: 0 / 1.18 GB, free: 7.68 MB / 0.9356 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