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.008131/0.008131, allocations: 101.9 kB / 15.73 MB, free: 6 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.001941/0.001941, allocations: 196 kB / 16.67 MB, free: 5.926 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.567/2.567, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 75.81 kB / 1.054 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8989/0.9002, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04607/0.9464, allocations: 41.58 MB / 1.248 GB, free: 3.871 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01564/0.962, allocations: 10.42 MB / 1.259 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00241/0.9645, allocations: 55.69 kB / 1.259 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002236/0.9669, allocations: 0.6481 MB / 1.259 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.006198/0.9731, allocations: 1.874 MB / 1.261 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.003475/0.9766, allocations: 1.191 MB / 1.262 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.005189/0.9818, allocations: 3.391 MB / 1.265 GB, free: 2.254 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001845/0.9836, allocations: 1.06 MB / 1.267 GB, free: 1.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003274/0.9869, allocations: 1.269 MB / 1.268 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001642/0.9886, allocations: 0.875 MB / 1.269 GB, free: 15.03 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.9888, allocations: 100 kB / 1.269 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001994/0.9908, allocations: 0.8617 MB / 1.27 GB, free: 14.07 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.991, allocations: 279 kB / 1.27 GB, free: 13.8 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006678/0.9917, allocations: 0.6338 MB / 1.27 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002412/0.9941, allocations: 1.926 MB / 1.272 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.9941, allocations: 0 / 1.272 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.482e-06/0.9942, allocations: 0 / 1.272 GB, free: 11.23 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.249e-05/0.9942, allocations: 0 / 1.272 GB, free: 11.23 MB / 0.9981 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.002277/0.9965, allocations: 1.515 MB / 1.274 GB, free: 9.664 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.9965, allocations: 12.03 kB / 1.274 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.9968, allocations: 131.4 kB / 1.274 GB, free: 9.523 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001706/0.9986, allocations: 1.1 MB / 1.275 GB, free: 8.379 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.9986, allocations: 58 kB / 1.275 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.9987, allocations: 79.84 kB / 1.275 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001301/1, allocations: 0.7905 MB / 1.276 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/1, allocations: 0 / 1.276 GB, free: 7.418 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.233e-05/1, allocations: 28 kB / 1.276 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.614e-05/1, allocations: 24 kB / 1.276 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001128/1.001, allocations: 0.5672 MB / 1.277 GB, free: 6.801 MB / 0.9981 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.004306/1.006, allocations: 3.555 MB / 1.28 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006116/1.006, allocations: 274.3 kB / 1.28 GB, free: 2.738 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/1.007, allocations: 174.6 kB / 1.28 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005278/1.007, allocations: 0.657 MB / 1.281 GB, free: 1.762 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/1.007, allocations: 34.56 kB / 1.281 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/1.007, allocations: 0 / 1.281 GB, free: 1.719 MB / 0.9981 GB Notification: Performance of matching and sorting (n=31): time 0.001189/1.008, allocations: 0.513 MB / 1.282 GB, free: 1.199 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/1.008, allocations: 59.41 kB / 1.282 GB, free: 1.129 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001071/1.01, allocations: 0.9494 MB / 1.283 GB, free: 164 kB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.384e-05/1.01, allocations: 33.64 kB / 1.283 GB, free: 124 kB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003925/1.01, allocations: 0.4957 MB / 1.283 GB, free: 15.62 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001017/1.01, allocations: 118.4 kB / 1.283 GB, free: 15.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/1.01, allocations: 114.1 kB / 1.283 GB, free: 15.39 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001138/1.01, allocations: 329.9 kB / 1.284 GB, free: 15.06 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/1.011, allocations: 165 kB / 1.284 GB, free: 14.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004655/1.011, allocations: 347 kB / 1.284 GB, free: 14.48 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007919/1.012, allocations: 0.5109 MB / 1.285 GB, free: 13.9 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/1.012, allocations: 0 / 1.285 GB, free: 13.9 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001129/1.013, allocations: 0.613 MB / 1.285 GB, free: 13.28 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/1.013, allocations: 8 kB / 1.285 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/1.013, allocations: 8.688 kB / 1.285 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/1.013, allocations: 8 kB / 1.285 GB, free: 13.26 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/1.014, allocations: 127.8 kB / 1.285 GB, free: 13.13 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/1.014, allocations: 11.94 kB / 1.285 GB, free: 13.12 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005479/1.014, allocations: 83.19 kB / 1.285 GB, free: 13.04 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/1.014, allocations: 24 kB / 1.285 GB, free: 13.02 MB / 1.014 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.0003208/1.015, allocations: 277.5 kB / 1.286 GB, free: 12.73 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/1.015, allocations: 102.8 kB / 1.286 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009535/1.016, allocations: 487.5 kB / 1.286 GB, free: 12.15 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/1.016, allocations: 7.938 kB / 1.286 GB, free: 12.14 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/1.016, allocations: 0 / 1.286 GB, free: 12.14 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007253/1.016, allocations: 457.2 kB / 1.287 GB, free: 11.66 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/1.018, allocations: 1.366 MB / 1.288 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/1.018, allocations: 0 / 1.288 GB, free: 10.23 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00033/1.019, allocations: 75.88 kB / 1.288 GB, free: 10.15 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.594e-06/1.019, allocations: 11.88 kB / 1.288 GB, free: 10.14 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.623e-05/1.019, allocations: 8 kB / 1.288 GB, free: 10.13 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/1.019, allocations: 4 kB / 1.288 GB, free: 10.13 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.019, allocations: 0 / 1.288 GB, free: 10.13 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/1.02, allocations: 0.7681 MB / 1.289 GB, free: 9.332 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003658/1.021, allocations: 227.7 kB / 1.289 GB, free: 9.09 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001079/1.021, allocations: 16.05 kB / 1.289 GB, free: 9.074 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004726/1.021, allocations: 23.97 kB / 1.289 GB, free: 9.051 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.85e-05/1.021, allocations: 23.97 kB / 1.289 GB, free: 9.027 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/1.021, allocations: 19.98 kB / 1.289 GB, free: 9.008 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008451/1.022, allocations: 0.6667 MB / 1.29 GB, free: 8.332 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/1.022, allocations: 0 / 1.29 GB, free: 8.332 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0009682/1.023, allocations: 335.4 kB / 1.29 GB, free: 8.004 MB / 1.014 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.0007653/1.024, allocations: 389 kB / 1.291 GB, free: 7.625 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0008827/1.025, allocations: 424.3 kB / 1.291 GB, free: 7.211 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/1.025, allocations: 4 kB / 1.291 GB, free: 7.207 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003821/1.025, allocations: 190.2 kB / 1.291 GB, free: 7.023 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002566/1.028, allocations: 0.6147 MB / 1.292 GB, free: 6.426 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002411/1.03, allocations: 1.598 MB / 1.293 GB, free: 4.777 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/1.031, allocations: 1.036 MB / 1.294 GB, free: 3.711 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0006296/1.031, allocations: 191 kB / 1.295 GB, free: 3.523 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001507/1.032, allocations: 87.42 kB / 1.295 GB, free: 3.438 MB / 1.014 GB Notification: Performance of SimCode: time 3.31e-07/1.032, allocations: 0 / 1.295 GB, free: 3.438 MB / 1.014 GB Notification: Performance of Templates: time 0.0381/1.07, allocations: 21.67 MB / 1.316 GB, free: 14.03 MB / 1.045 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