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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001684/0.001684, allocations: 111 kB / 15.99 MB, free: 5.891 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.00191/0.00191, allocations: 195.7 kB / 16.91 MB, free: 5.746 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.308/1.308, allocations: 222.9 MB / 240.6 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.688/2.688, allocations: 469.4 MB / 0.7423 GB, free: 7.848 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 65.86 kB / 0.9083 GB, free: 34.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3291/0.3303, allocations: 159.1 MB / 1.064 GB, free: 14.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04093/0.3713, allocations: 41.25 MB / 1.104 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01425/0.3856, allocations: 10.34 MB / 1.114 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001905/0.3875, allocations: 55.62 kB / 1.114 GB, free: 11.08 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.001755/0.3894, allocations: 0.5479 MB / 1.115 GB, free: 10.53 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004688/0.3941, allocations: 1.762 MB / 1.116 GB, free: 8.758 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.002871/0.3969, allocations: 1.085 MB / 1.117 GB, free: 7.684 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.004096/0.4011, allocations: 3.417 MB / 1.121 GB, free: 4.262 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001344/0.4024, allocations: 1.048 MB / 1.122 GB, free: 3.191 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002871/0.4053, allocations: 1.229 MB / 1.123 GB, free: 1.961 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001097/0.4064, allocations: 0.9217 MB / 1.124 GB, free: 1.035 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001458/0.4066, allocations: 100 kB / 1.124 GB, free: 0.9375 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00188/0.4084, allocations: 0.8732 MB / 1.125 GB, free: 64 kB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0002883/0.4087, allocations: 283.1 kB / 1.125 GB, free: 15.78 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0006377/0.4094, allocations: 0.626 MB / 1.126 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.001802/0.4112, allocations: 1.489 MB / 1.127 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4112, allocations: 4 kB / 1.127 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.552e-06/0.4112, allocations: 0 / 1.127 GB, free: 13.66 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.683e-05/0.4112, allocations: 0 / 1.127 GB, free: 13.66 MB / 0.8887 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.002345/0.4136, allocations: 1.507 MB / 1.129 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.4136, allocations: 12.03 kB / 1.129 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003433/0.414, allocations: 135.4 kB / 1.129 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.4155, allocations: 1.084 MB / 1.13 GB, free: 10.83 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.407e-05/0.4156, allocations: 54 kB / 1.13 GB, free: 10.78 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.4157, allocations: 75.91 kB / 1.13 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001323/0.417, allocations: 0.7905 MB / 1.131 GB, free: 9.875 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.517e-05/0.4171, allocations: 0 / 1.131 GB, free: 9.875 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.108e-05/0.4172, allocations: 32 kB / 1.131 GB, free: 9.844 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.4172, allocations: 23.98 kB / 1.131 GB, free: 9.82 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.4182, allocations: 0.571 MB / 1.131 GB, free: 9.246 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.00375/0.422, allocations: 3.54 MB / 1.135 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005626/0.4226, allocations: 267.2 kB / 1.135 GB, free: 5.199 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00033/0.4229, allocations: 187 kB / 1.135 GB, free: 5.016 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004887/0.4234, allocations: 0.6532 MB / 1.136 GB, free: 4.215 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.733e-05/0.4235, allocations: 42.56 kB / 1.136 GB, free: 4.164 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 1.764e-06/0.4235, allocations: 0 / 1.136 GB, free: 4.164 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001127/0.4246, allocations: 0.5046 MB / 1.136 GB, free: 3.652 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.4247, allocations: 59.39 kB / 1.137 GB, free: 3.582 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.4257, allocations: 0.9299 MB / 1.137 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 4.023e-05/0.4258, allocations: 37.7 kB / 1.137 GB, free: 2.59 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.4261, allocations: 499.6 kB / 1.138 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.4262, allocations: 110.4 kB / 1.138 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001597/0.4264, allocations: 114.1 kB / 1.138 GB, free: 1.871 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4265, allocations: 337.8 kB / 1.138 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000342/0.4269, allocations: 165 kB / 1.139 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004582/0.4273, allocations: 343 kB / 1.139 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007864/0.4281, allocations: 0.5225 MB / 1.139 GB, free: 380 kB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.4281, allocations: 3.938 kB / 1.139 GB, free: 376 kB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00111/0.4292, allocations: 0.6176 MB / 1.14 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.4293, allocations: 8 kB / 1.14 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4293, allocations: 4 kB / 1.14 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.065e-05/0.4293, allocations: 8 kB / 1.14 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.4297, allocations: 123.8 kB / 1.14 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.4298, allocations: 11.94 kB / 1.14 GB, free: 15.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006573/0.4304, allocations: 107.2 kB / 1.14 GB, free: 15.48 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.4305, allocations: 24 kB / 1.14 GB, free: 15.46 MB / 0.9044 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.000349/0.4308, allocations: 289.5 kB / 1.141 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.431, allocations: 98.78 kB / 1.141 GB, free: 15.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009385/0.4319, allocations: 486 kB / 1.141 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.432, allocations: 4 kB / 1.141 GB, free: 14.58 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.432, allocations: 4 kB / 1.141 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007066/0.4327, allocations: 453.5 kB / 1.142 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.4347, allocations: 1.355 MB / 1.143 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.4347, allocations: 0 / 1.143 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003229/0.435, allocations: 71.95 kB / 1.143 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.435, allocations: 8 kB / 1.143 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.039e-05/0.4351, allocations: 19.92 kB / 1.143 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.389e-06/0.4351, allocations: 8.156 kB / 1.143 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4351, allocations: 0 / 1.143 GB, free: 12.57 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001322/0.4364, allocations: 0.7593 MB / 1.144 GB, free: 11.78 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000358/0.4368, allocations: 235.6 kB / 1.144 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.4369, allocations: 8 kB / 1.144 GB, free: 11.52 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005475/0.4375, allocations: 48 kB / 1.144 GB, free: 11.48 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.99e-05/0.4375, allocations: 23.97 kB / 1.144 GB, free: 11.45 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.793e-05/0.4376, allocations: 19.98 kB / 1.144 GB, free: 11.43 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0008028/0.4384, allocations: 0.651 MB / 1.145 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4384, allocations: 0 / 1.145 GB, free: 10.77 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0009383/0.4393, allocations: 335.4 kB / 1.145 GB, free: 10.45 MB / 0.9044 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.0007646/0.4401, allocations: 386.7 kB / 1.145 GB, free: 10.07 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000963/0.4411, allocations: 468.2 kB / 1.146 GB, free: 9.613 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.4411, allocations: 4 kB / 1.146 GB, free: 9.609 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.4415, allocations: 179.8 kB / 1.146 GB, free: 9.434 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002438/0.4439, allocations: 0.6212 MB / 1.147 GB, free: 8.836 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002534/0.4465, allocations: 1.963 MB / 1.149 GB, free: 6.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.447, allocations: 1.032 MB / 1.15 GB, free: 5.758 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.4472, allocations: 83.36 kB / 1.15 GB, free: 5.676 MB / 0.9044 GB Notification: Performance of SimCode: time 5.71e-07/0.4472, allocations: 4 kB / 1.15 GB, free: 5.672 MB / 0.9044 GB Notification: Performance of Templates: time 0.02342/0.4707, allocations: 17.76 MB / 1.167 GB, free: 4.039 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/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