Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 106.4 kB / 16.35 MB, free: 5.824 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.001737/0.001737, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.336/1.336, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.53/2.53, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001264, allocations: 64.94 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2814, allocations: 153 MB / 1.027 GB, free: 2.074 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger): time 0.5436/0.8251, allocations: 77.16 MB / 1.102 GB, free: 11.43 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0268/0.8519, allocations: 18.89 MB / 1.121 GB, free: 2.426 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005733/0.8577, allocations: 114.1 kB / 1.121 GB, free: 2.383 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004674/0.8625, allocations: 1.24 MB / 1.122 GB, free: 1.621 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.01246/0.875, allocations: 3.633 MB / 1.125 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.007914/0.8829, allocations: 2.101 MB / 1.127 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0117/0.8946, allocations: 6.673 MB / 1.134 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003804/0.8985, allocations: 2.097 MB / 1.136 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007266/0.9058, allocations: 2.313 MB / 1.138 GB, free: 8.949 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004811/0.9106, allocations: 1.76 MB / 1.14 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0007807/0.9114, allocations: 198.8 kB / 1.14 GB, free: 8.133 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006644/0.9181, allocations: 1.616 MB / 1.142 GB, free: 7.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001141/0.9192, allocations: 0.5324 MB / 1.142 GB, free: 7.152 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003056/0.9223, allocations: 1.254 MB / 1.143 GB, free: 6.387 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.008883/0.9312, allocations: 3.724 MB / 1.147 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.9312, allocations: 1.219 kB / 1.147 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.144e-06/0.9313, allocations: 0 / 1.147 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.701e-05/0.9314, allocations: 0 / 1.147 GB, free: 4.977 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.006227/0.9376, allocations: 2.715 MB / 1.15 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.9376, allocations: 9.062 kB / 1.15 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008932/0.9385, allocations: 266 kB / 1.15 GB, free: 3.129 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00387/0.9424, allocations: 2.016 MB / 1.152 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-05/0.9425, allocations: 112.7 kB / 1.152 GB, free: 1.969 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00022/0.9428, allocations: 144.1 kB / 1.152 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002927/0.9457, allocations: 1.518 MB / 1.154 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.9458, allocations: 2.75 kB / 1.154 GB, free: 0.957 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/0.9459, allocations: 65.03 kB / 1.154 GB, free: 0.9062 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.025e-05/0.946, allocations: 40.44 kB / 1.154 GB, free: 0.9023 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002397/0.9484, allocations: 1.125 MB / 1.155 GB, free: 344 kB / 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.01021/0.9586, allocations: 7.599 MB / 1.162 GB, free: 9.492 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.9596, allocations: 481.1 kB / 1.163 GB, free: 9.258 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006514/0.9603, allocations: 338.1 kB / 1.163 GB, free: 9.094 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008946/0.9612, allocations: 1.148 MB / 1.164 GB, free: 7.746 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.954e-05/0.9612, allocations: 43.31 kB / 1.164 GB, free: 7.695 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=59): time 4.649e-06/0.9612, allocations: 4 kB / 1.164 GB, free: 7.691 MB / 0.8731 GB Notification: Performance of matching and sorting (n=59): time 0.00247/0.9637, allocations: 0.9644 MB / 1.165 GB, free: 7.219 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.9638, allocations: 58.75 kB / 1.165 GB, free: 7.156 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002602/0.9664, allocations: 1.782 MB / 1.167 GB, free: 6.168 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.9665, allocations: 43.2 kB / 1.167 GB, free: 6.125 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008512/0.9674, allocations: 0.9303 MB / 1.168 GB, free: 5.301 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002628/0.9677, allocations: 222.7 kB / 1.168 GB, free: 5.109 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003304/0.968, allocations: 229.2 kB / 1.168 GB, free: 4.973 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.9682, allocations: 347.9 kB / 1.169 GB, free: 4.637 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007007/0.9689, allocations: 333.3 kB / 1.169 GB, free: 4.477 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/0.9699, allocations: 0.6908 MB / 1.17 GB, free: 3.855 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.9716, allocations: 1.008 MB / 1.171 GB, free: 3.086 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/0.9716, allocations: 4.281 kB / 1.171 GB, free: 3.086 MB / 0.8731 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002506/0.9742, allocations: 1.213 MB / 1.172 GB, free: 2.48 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.9742, allocations: 15.03 kB / 1.172 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.9742, allocations: 7.812 kB / 1.172 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.9742, allocations: 16.97 kB / 1.172 GB, free: 2.477 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009486/0.9752, allocations: 283.6 kB / 1.172 GB, free: 2.406 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-05/0.9752, allocations: 25.02 kB / 1.172 GB, free: 2.398 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.9769, allocations: 168.3 kB / 1.172 GB, free: 2.285 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.062e-05/0.977, allocations: 48.59 kB / 1.172 GB, free: 2.277 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (135): * Single equations (assignments): 135 * 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.0008628/0.9779, allocations: 446.3 kB / 1.173 GB, free: 1.953 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004556/0.9783, allocations: 192.8 kB / 1.173 GB, free: 1.855 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001715/0.98, allocations: 0.8642 MB / 1.174 GB, free: 1.379 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.9801, allocations: 19.39 kB / 1.174 GB, free: 1.367 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.9801, allocations: 0 / 1.174 GB, free: 1.367 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001273/0.9814, allocations: 0.7956 MB / 1.175 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004361/0.9857, allocations: 2.446 MB / 1.177 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.562e-06/0.9858, allocations: 2.5 kB / 1.177 GB, free: 15.12 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.9866, allocations: 187.6 kB / 1.177 GB, free: 15.06 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.255e-06/0.9866, allocations: 2.844 kB / 1.177 GB, free: 15.06 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.9866, allocations: 18.73 kB / 1.177 GB, free: 15.05 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.9866, allocations: 8.875 kB / 1.177 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.9866, allocations: 3.906 kB / 1.177 GB, free: 15.04 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002479/0.9891, allocations: 1.336 MB / 1.179 GB, free: 14.24 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009158/0.9901, allocations: 373.4 kB / 1.179 GB, free: 13.93 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002896/0.9904, allocations: 17.16 kB / 1.179 GB, free: 13.92 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009657/0.9913, allocations: 63.39 kB / 1.179 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.9915, allocations: 50.5 kB / 1.179 GB, free: 13.85 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.961e-05/0.9915, allocations: 36.47 kB / 1.179 GB, free: 13.84 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001734/0.9933, allocations: 1.241 MB / 1.18 GB, free: 13.15 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.91e-07/0.9933, allocations: 0 / 1.18 GB, free: 13.15 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.002054/0.9953, allocations: 0.6557 MB / 1.181 GB, free: 12.99 MB / 0.8887 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.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 (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001229/0.9966, allocations: 0.6093 MB / 1.182 GB, free: 12.66 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001801/0.9984, allocations: 0.8187 MB / 1.182 GB, free: 12.31 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.9984, allocations: 7.031 kB / 1.182 GB, free: 12.3 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.9992, allocations: 356.6 kB / 1.183 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005257/1.004, allocations: 1.193 MB / 1.184 GB, free: 11.23 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004812/1.009, allocations: 3.051 MB / 1.187 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009208/1.01, allocations: 1.409 MB / 1.188 GB, free: 6.672 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0015/1.012, allocations: 379 kB / 1.189 GB, free: 6.305 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/1.012, allocations: 151.4 kB / 1.189 GB, free: 6.16 MB / 0.8887 GB Notification: Performance of SimCode: time 1.012e-06/1.012, allocations: 0 / 1.189 GB, free: 6.16 MB / 0.8887 GB Notification: Performance of Templates: time 0.06883/1.081, allocations: 41.65 MB / 1.229 GB, free: 13 MB / 0.9356 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches