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: 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.001043/0.001043, allocations: 91.06 kB / 15.06 MB, free: 1.098 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.001408/0.001408, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.552/1.552, allocations: 223.3 MB / 240 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.912/2.912, allocations: 462.6 MB / 0.736 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003986, allocations: 10.56 kB / 0.9021 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3652/0.3656, allocations: 159.6 MB / 1.058 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04102/0.4067, allocations: 38.32 MB / 1.095 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01442/0.4212, allocations: 9.756 MB / 1.105 GB, free: 5.16 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001789/0.423, allocations: 47.69 kB / 1.105 GB, free: 5.113 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001466/0.4245, allocations: 465 kB / 1.105 GB, free: 4.656 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004184/0.4287, allocations: 1.468 MB / 1.107 GB, free: 3.184 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002591/0.4313, allocations: 0.861 MB / 1.108 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.004859/0.4361, allocations: 3.85 MB / 1.111 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001308/0.4375, allocations: 0.7414 MB / 1.112 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002447/0.4399, allocations: 0.9877 MB / 1.113 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.4412, allocations: 0.8049 MB / 1.114 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 9.649e-05/0.4413, allocations: 40 kB / 1.114 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001722/0.443, allocations: 494.8 kB / 1.114 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002873/0.4433, allocations: 199.1 kB / 1.115 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003685/0.4437, allocations: 261.1 kB / 1.115 GB, free: 10.94 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001624/0.4453, allocations: 1.38 MB / 1.116 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.4453, allocations: 0 / 1.116 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.873e-06/0.4453, allocations: 0 / 1.116 GB, free: 9.555 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 2.116e-05/0.4454, allocations: 4 kB / 1.116 GB, free: 9.551 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.002168/0.4475, allocations: 1.308 MB / 1.118 GB, free: 8.188 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4476, allocations: 8.031 kB / 1.118 GB, free: 8.18 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003182/0.4479, allocations: 130.5 kB / 1.118 GB, free: 8.051 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.4495, allocations: 1.041 MB / 1.119 GB, free: 6.969 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.019e-05/0.4496, allocations: 58 kB / 1.119 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.4497, allocations: 72 kB / 1.119 GB, free: 6.84 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001617/0.4514, allocations: 0.806 MB / 1.12 GB, free: 6 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.306e-05/0.4514, allocations: 3.953 kB / 1.12 GB, free: 5.996 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.084e-05/0.4515, allocations: 28 kB / 1.12 GB, free: 5.969 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.235e-05/0.4515, allocations: 24 kB / 1.12 GB, free: 5.945 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.4527, allocations: 0.5828 MB / 1.12 GB, free: 5.363 MB / 0.8731 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.004655/0.4574, allocations: 3.54 MB / 1.124 GB, free: 1.598 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006353/0.4581, allocations: 270.6 kB / 1.124 GB, free: 1.324 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.4584, allocations: 189.3 kB / 1.124 GB, free: 1.137 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006466/0.4591, allocations: 0.6609 MB / 1.125 GB, free: 336 kB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.206e-05/0.4591, allocations: 38.56 kB / 1.125 GB, free: 288 kB / 0.8731 GB Notification: Performance of pre-optimization done (n=31): time 3.346e-06/0.4591, allocations: 0 / 1.125 GB, free: 288 kB / 0.8731 GB Notification: Performance of matching and sorting (n=31): time 0.001254/0.4604, allocations: 0.5514 MB / 1.125 GB, free: 15.72 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.719e-05/0.4605, allocations: 55.41 kB / 1.125 GB, free: 15.66 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00119/0.4616, allocations: 0.9221 MB / 1.126 GB, free: 14.71 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.4617, allocations: 29.7 kB / 1.126 GB, free: 14.68 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005319/0.4622, allocations: 0.4956 MB / 1.127 GB, free: 14.18 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.4624, allocations: 114.4 kB / 1.127 GB, free: 14.06 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.4624, allocations: 12 kB / 1.127 GB, free: 14.05 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4626, allocations: 330 kB / 1.127 GB, free: 13.72 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000343/0.4629, allocations: 169 kB / 1.127 GB, free: 13.56 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004927/0.4634, allocations: 358.9 kB / 1.128 GB, free: 13.13 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004202/0.4638, allocations: 239.8 kB / 1.128 GB, free: 12.9 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.4639, allocations: 3.953 kB / 1.128 GB, free: 12.89 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001142/0.465, allocations: 0.6367 MB / 1.129 GB, free: 12.25 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.465, allocations: 4 kB / 1.129 GB, free: 12.25 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.4651, allocations: 8.062 kB / 1.129 GB, free: 12.24 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.4651, allocations: 12.44 kB / 1.129 GB, free: 12.23 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004332/0.4655, allocations: 131.8 kB / 1.129 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.34e-05/0.4655, allocations: 11.94 kB / 1.129 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006397/0.4662, allocations: 111.2 kB / 1.129 GB, free: 11.98 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.696e-05/0.4662, allocations: 24 kB / 1.129 GB, free: 11.95 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003562/0.4666, allocations: 281.6 kB / 1.129 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.4667, allocations: 102.7 kB / 1.129 GB, free: 11.57 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009462/0.4677, allocations: 0.5034 MB / 1.13 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.4677, allocations: 4 kB / 1.13 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4677, allocations: 0 / 1.13 GB, free: 11.05 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007152/0.4684, allocations: 470.1 kB / 1.13 GB, free: 10.57 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002036/0.4705, allocations: 1.37 MB / 1.132 GB, free: 9.125 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4705, allocations: 0 / 1.132 GB, free: 9.125 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.4708, allocations: 91.81 kB / 1.132 GB, free: 9.035 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.4709, allocations: 4 kB / 1.132 GB, free: 9.031 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.821e-05/0.4709, allocations: 8 kB / 1.132 GB, free: 9.023 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.4709, allocations: 4.156 kB / 1.132 GB, free: 9.02 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4709, allocations: 4 kB / 1.132 GB, free: 9.016 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001256/0.4722, allocations: 0.7994 MB / 1.132 GB, free: 8.188 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003022/0.4725, allocations: 239.8 kB / 1.133 GB, free: 7.934 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001191/0.4726, allocations: 8 kB / 1.133 GB, free: 7.926 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005245/0.4731, allocations: 63.84 kB / 1.133 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.613e-05/0.4732, allocations: 27.92 kB / 1.133 GB, free: 7.836 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.304e-05/0.4733, allocations: 23.92 kB / 1.133 GB, free: 7.812 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0008156/0.4741, allocations: 0.6432 MB / 1.133 GB, free: 7.16 MB / 0.8887 GB Notification: Performance of sort global known variables: time 4.3e-07/0.4741, allocations: 0 / 1.133 GB, free: 7.16 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001011/0.4751, allocations: 327.4 kB / 1.134 GB, free: 6.84 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008575/0.476, allocations: 365.5 kB / 1.134 GB, free: 6.484 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0008554/0.4769, allocations: 440 kB / 1.134 GB, free: 6.055 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.4769, allocations: 0 / 1.134 GB, free: 6.055 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.4773, allocations: 200.6 kB / 1.135 GB, free: 5.859 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002646/0.4799, allocations: 0.5958 MB / 1.135 GB, free: 5.273 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/0.4829, allocations: 1.954 MB / 1.137 GB, free: 3.27 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006868/0.4836, allocations: 1.04 MB / 1.138 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0008432/0.4844, allocations: 201.4 kB / 1.138 GB, free: 2 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001821/0.4846, allocations: 79.42 kB / 1.138 GB, free: 1.926 MB / 0.8887 GB Notification: Performance of SimCode: time 8.11e-07/0.4846, allocations: 3.938 kB / 1.138 GB, free: 1.922 MB / 0.8887 GB Notification: Performance of Templates: time 0.03553/0.5202, allocations: 19.52 MB / 1.158 GB, free: 14.67 MB / 0.92 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