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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001496/0.001496, allocations: 105.6 kB / 16.27 MB, free: 6.418 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.001515/0.001515, allocations: 189.6 kB / 17.2 MB, free: 5.949 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.423/1.423, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.728/2.728, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001924, allocations: 64.19 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.772/0.774, allocations: 162.2 MB / 1.083 GB, free: 1.637 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0479/0.8219, allocations: 41.63 MB / 1.124 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01744/0.8394, allocations: 10.42 MB / 1.134 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002655/0.8421, allocations: 55.22 kB / 1.134 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.8444, allocations: 0.639 MB / 1.134 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.0068/0.8513, allocations: 1.878 MB / 1.136 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.003821/0.8551, allocations: 1.174 MB / 1.137 GB, free: 10.13 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.006339/0.8614, allocations: 3.397 MB / 1.141 GB, free: 8.211 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.8637, allocations: 1.061 MB / 1.142 GB, free: 7.543 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004203/0.8679, allocations: 1.385 MB / 1.143 GB, free: 6.711 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001785/0.8697, allocations: 0.8707 MB / 1.144 GB, free: 6.184 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001934/0.8699, allocations: 102.8 kB / 1.144 GB, free: 6.18 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002502/0.8724, allocations: 0.8564 MB / 1.145 GB, free: 5.727 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0003265/0.8727, allocations: 277.1 kB / 1.145 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0008811/0.8736, allocations: 0.6296 MB / 1.146 GB, free: 5.102 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.8771, allocations: 1.913 MB / 1.148 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.8771, allocations: 0 / 1.148 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.423e-06/0.8772, allocations: 0 / 1.148 GB, free: 3.832 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.897e-05/0.8772, allocations: 1.5 kB / 1.148 GB, free: 3.832 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.002823/0.88, allocations: 1.518 MB / 1.149 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.8801, allocations: 8.656 kB / 1.149 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004045/0.8805, allocations: 132.6 kB / 1.149 GB, free: 2.594 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.8823, allocations: 1.042 MB / 1.15 GB, free: 1.758 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.8823, allocations: 51.38 kB / 1.15 GB, free: 1.738 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001125/0.8824, allocations: 79.97 kB / 1.15 GB, free: 1.707 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.8839, allocations: 0.784 MB / 1.151 GB, free: 1.203 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/0.8839, allocations: 7.938 kB / 1.151 GB, free: 1.195 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.884, allocations: 31.16 kB / 1.151 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.081e-05/0.8841, allocations: 19.47 kB / 1.151 GB, free: 1.172 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001119/0.8852, allocations: 0.5684 MB / 1.152 GB, free: 0.8906 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.004773/0.89, allocations: 3.726 MB / 1.155 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006143/0.8906, allocations: 273.2 kB / 1.156 GB, free: 13.43 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.891, allocations: 179.7 kB / 1.156 GB, free: 13.34 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005966/0.8916, allocations: 0.6551 MB / 1.156 GB, free: 12.57 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.8916, allocations: 41.28 kB / 1.157 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=31): time 2.895e-06/0.8916, allocations: 0 / 1.157 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of matching and sorting (n=31): time 0.001334/0.893, allocations: 0.5126 MB / 1.157 GB, free: 12.26 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.893, allocations: 53.94 kB / 1.157 GB, free: 12.2 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.8943, allocations: 0.9459 MB / 1.158 GB, free: 11.66 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 5.123e-05/0.8943, allocations: 32.52 kB / 1.158 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004728/0.8948, allocations: 0.4994 MB / 1.159 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.895, allocations: 109.8 kB / 1.159 GB, free: 11.08 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.8952, allocations: 119.9 kB / 1.159 GB, free: 11 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001544/0.8953, allocations: 327.3 kB / 1.159 GB, free: 10.68 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003706/0.8957, allocations: 166.3 kB / 1.159 GB, free: 10.61 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005571/0.8963, allocations: 351.3 kB / 1.16 GB, free: 10.3 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009143/0.8972, allocations: 0.5085 MB / 1.16 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.8972, allocations: 1.25 kB / 1.16 GB, free: 9.906 MB / 0.8887 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00125/0.8985, allocations: 0.619 MB / 1.161 GB, free: 9.586 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.8985, allocations: 9.844 kB / 1.161 GB, free: 9.586 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.8985, allocations: 5.125 kB / 1.161 GB, free: 9.586 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.665e-05/0.8985, allocations: 12.8 kB / 1.161 GB, free: 9.582 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004519/0.899, allocations: 122.1 kB / 1.161 GB, free: 9.555 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.825e-05/0.899, allocations: 15.03 kB / 1.161 GB, free: 9.547 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007889/0.8998, allocations: 87.38 kB / 1.161 GB, free: 9.488 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-05/0.8999, allocations: 28.92 kB / 1.161 GB, free: 9.48 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.0005419/0.9005, allocations: 273.4 kB / 1.161 GB, free: 9.266 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002291/0.9007, allocations: 99.88 kB / 1.161 GB, free: 9.215 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.9019, allocations: 485.7 kB / 1.162 GB, free: 8.934 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.782e-05/0.902, allocations: 4.281 kB / 1.162 GB, free: 8.934 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.902, allocations: 0 / 1.162 GB, free: 8.934 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009099/0.9029, allocations: 459.8 kB / 1.162 GB, free: 8.625 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002731/0.9056, allocations: 1.365 MB / 1.164 GB, free: 7.605 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.9057, allocations: 1.219 kB / 1.164 GB, free: 7.605 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003658/0.906, allocations: 72.8 kB / 1.164 GB, free: 7.59 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.231e-05/0.9061, allocations: 6.469 kB / 1.164 GB, free: 7.586 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.413e-05/0.9061, allocations: 12.83 kB / 1.164 GB, free: 7.578 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.759e-06/0.9061, allocations: 6.125 kB / 1.164 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.9061, allocations: 2.219 kB / 1.164 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001597/0.9077, allocations: 0.7599 MB / 1.164 GB, free: 7.094 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004531/0.9082, allocations: 230.5 kB / 1.165 GB, free: 6.887 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001321/0.9083, allocations: 11.5 kB / 1.165 GB, free: 6.879 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005115/0.9088, allocations: 29.59 kB / 1.165 GB, free: 6.863 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-05/0.9089, allocations: 36.7 kB / 1.165 GB, free: 6.84 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.973e-05/0.909, allocations: 19.55 kB / 1.165 GB, free: 6.832 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.001123/0.9101, allocations: 0.6644 MB / 1.165 GB, free: 6.445 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9101, allocations: 0 / 1.165 GB, free: 6.445 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00149/0.9116, allocations: 341.3 kB / 1.166 GB, free: 6.363 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 (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.0008662/0.9125, allocations: 398.9 kB / 1.166 GB, free: 6.137 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.001058/0.9136, allocations: 453.8 kB / 1.166 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.9136, allocations: 1.562 kB / 1.166 GB, free: 5.938 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003834/0.914, allocations: 192 kB / 1.167 GB, free: 5.852 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002665/0.9167, allocations: 0.6143 MB / 1.167 GB, free: 5.535 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.9193, allocations: 1.647 MB / 1.169 GB, free: 4.461 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006625/0.92, allocations: 1.042 MB / 1.17 GB, free: 3.594 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.9202, allocations: 82.33 kB / 1.17 GB, free: 3.578 MB / 0.8887 GB Notification: Performance of SimCode: time 6.31e-07/0.9202, allocations: 0 / 1.17 GB, free: 3.578 MB / 0.8887 GB Notification: Performance of Templates: time 0.02998/0.9502, allocations: 17.99 MB / 1.188 GB, free: 2.855 MB / 0.9044 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=400 -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