Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.00164/0.00164, allocations: 109 kB / 16.41 MB, free: 6.492 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.001703/0.001704, allocations: 189.5 kB / 17.34 MB, free: 5.762 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.206/2.206, allocations: 390.3 MB / 0.6655 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.91 kB / 0.9515 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9651/0.9666, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04679/1.013, allocations: 41.57 MB / 1.129 GB, free: 7.684 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01792/1.031, allocations: 10.4 MB / 1.139 GB, free: 228 kB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003397/1.035, allocations: 60.22 kB / 1.139 GB, free: 204 kB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.002423/1.037, allocations: 0.6429 MB / 1.14 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007188/1.045, allocations: 1.88 MB / 1.142 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00406/1.049, allocations: 1.184 MB / 1.143 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0072/1.056, allocations: 3.401 MB / 1.146 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002545/1.058, allocations: 1.07 MB / 1.147 GB, free: 11.88 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004502/1.063, allocations: 1.258 MB / 1.149 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00254/1.066, allocations: 0.883 MB / 1.15 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0005101/1.066, allocations: 103.4 kB / 1.15 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/1.07, allocations: 0.8604 MB / 1.15 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006091/1.071, allocations: 276.1 kB / 1.151 GB, free: 10.37 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001429/1.072, allocations: 0.6309 MB / 1.151 GB, free: 9.984 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.00442/1.076, allocations: 1.926 MB / 1.153 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/1.076, allocations: 1.281 kB / 1.153 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.916e-06/1.076, allocations: 0.6094 kB / 1.153 GB, free: 9.262 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 2.852e-05/1.076, allocations: 0 / 1.153 GB, free: 9.262 MB / 0.9044 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.003327/1.08, allocations: 1.509 MB / 1.155 GB, free: 8.238 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.512e-05/1.08, allocations: 9.188 kB / 1.155 GB, free: 8.238 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004552/1.08, allocations: 134.2 kB / 1.155 GB, free: 8.176 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002169/1.082, allocations: 1.111 MB / 1.156 GB, free: 7.508 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.558e-05/1.083, allocations: 53.05 kB / 1.156 GB, free: 7.488 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/1.083, allocations: 72.12 kB / 1.156 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001684/1.084, allocations: 0.7893 MB / 1.157 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.235e-05/1.084, allocations: 0 / 1.157 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.327e-05/1.084, allocations: 32.52 kB / 1.157 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.271e-05/1.085, allocations: 20.02 kB / 1.157 GB, free: 7.062 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/1.086, allocations: 0.5694 MB / 1.157 GB, free: 6.867 MB / 0.9044 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.005022/1.091, allocations: 3.553 MB / 1.161 GB, free: 4.273 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006189/1.091, allocations: 264.9 kB / 1.161 GB, free: 4.172 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003912/1.092, allocations: 184.9 kB / 1.161 GB, free: 4.105 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000552/1.092, allocations: 0.6585 MB / 1.162 GB, free: 3.344 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.092, allocations: 45.94 kB / 1.162 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=31): time 2.715e-06/1.093, allocations: 0 / 1.162 GB, free: 3.293 MB / 0.9044 GB Notification: Performance of matching and sorting (n=31): time 0.001413/1.094, allocations: 0.51 MB / 1.162 GB, free: 3.098 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/1.094, allocations: 55.17 kB / 1.163 GB, free: 3.035 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/1.095, allocations: 0.9496 MB / 1.163 GB, free: 2.633 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 5.499e-05/1.095, allocations: 36.8 kB / 1.163 GB, free: 2.594 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004292/1.096, allocations: 498.8 kB / 1.164 GB, free: 2.203 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/1.096, allocations: 112 kB / 1.164 GB, free: 2.117 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/1.096, allocations: 115.3 kB / 1.164 GB, free: 2.055 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001332/1.096, allocations: 328.2 kB / 1.164 GB, free: 1.738 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003877/1.097, allocations: 162.6 kB / 1.165 GB, free: 1.688 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/1.097, allocations: 351.9 kB / 1.165 GB, free: 1.414 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000887/1.098, allocations: 0.5185 MB / 1.165 GB, free: 1.055 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/1.098, allocations: 2.469 kB / 1.165 GB, free: 1.055 MB / 0.9044 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001272/1.1, allocations: 0.6116 MB / 1.166 GB, free: 0.8008 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.5e-05/1.1, allocations: 12.89 kB / 1.166 GB, free: 0.7969 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/1.1, allocations: 5.406 kB / 1.166 GB, free: 0.7969 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.711e-05/1.1, allocations: 7.25 kB / 1.166 GB, free: 0.7969 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004801/1.1, allocations: 127.9 kB / 1.166 GB, free: 0.7812 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.961e-05/1.1, allocations: 12.31 kB / 1.166 GB, free: 0.7773 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007475/1.101, allocations: 83.61 kB / 1.166 GB, free: 0.7305 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/1.101, allocations: 25.84 kB / 1.166 GB, free: 0.7266 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.0004282/1.101, allocations: 283.3 kB / 1.167 GB, free: 0.5117 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001809/1.102, allocations: 100.5 kB / 1.167 GB, free: 472 kB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001067/1.103, allocations: 481.2 kB / 1.167 GB, free: 276 kB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.408e-05/1.103, allocations: 4.609 kB / 1.167 GB, free: 276 kB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.103, allocations: 4 kB / 1.167 GB, free: 272 kB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007953/1.103, allocations: 449 kB / 1.168 GB, free: 4 kB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/1.106, allocations: 1.37 MB / 1.169 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.106, allocations: 2.281 kB / 1.169 GB, free: 14.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/1.106, allocations: 76.52 kB / 1.169 GB, free: 14.96 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/1.106, allocations: 10.64 kB / 1.169 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/1.106, allocations: 8.312 kB / 1.169 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.106, allocations: 3.094 kB / 1.169 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.106, allocations: 5.219 kB / 1.169 GB, free: 14.95 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/1.108, allocations: 0.7631 MB / 1.17 GB, free: 14.46 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004075/1.108, allocations: 230.6 kB / 1.17 GB, free: 14.25 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001273/1.108, allocations: 7.438 kB / 1.17 GB, free: 14.25 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005117/1.109, allocations: 33.36 kB / 1.17 GB, free: 14.23 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.203e-05/1.109, allocations: 28.88 kB / 1.17 GB, free: 14.21 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.205e-05/1.109, allocations: 19.77 kB / 1.17 GB, free: 14.2 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001016/1.11, allocations: 0.6609 MB / 1.171 GB, free: 13.82 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.51e-07/1.11, allocations: 0 / 1.171 GB, free: 13.82 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.001364/1.111, allocations: 332.7 kB / 1.171 GB, free: 13.75 MB / 0.92 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.0009034/1.112, allocations: 404.3 kB / 1.171 GB, free: 13.52 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0009826/1.113, allocations: 417.2 kB / 1.172 GB, free: 13.34 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.113, allocations: 0.9375 kB / 1.172 GB, free: 13.34 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0004104/1.114, allocations: 192.1 kB / 1.172 GB, free: 13.25 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/1.116, allocations: 0.6086 MB / 1.173 GB, free: 12.94 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002747/1.119, allocations: 1.623 MB / 1.174 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005828/1.12, allocations: 1.038 MB / 1.175 GB, free: 11.02 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002231/1.12, allocations: 78.61 kB / 1.175 GB, free: 11.01 MB / 0.92 GB Notification: Performance of SimCode: time 4.61e-07/1.12, allocations: 0 / 1.175 GB, free: 11.01 MB / 0.92 GB Notification: Performance of Templates: time 0.03165/1.152, allocations: 18.1 MB / 1.193 GB, free: 1.562 MB / 0.92 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches