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.005202/0.005202, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001108/0.001109, allocations: 195.3 kB / 16.67 MB, free: 5.52 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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.078 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.758/2.758, allocations: 461.8 MB / 0.7347 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 64.14 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3211, allocations: 157.4 MB / 1.208 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.7667/1.088, allocations: 41.56 MB / 1.248 GB, free: 4.012 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0165/1.104, allocations: 10.4 MB / 1.258 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002646/1.107, allocations: 58.41 kB / 1.259 GB, free: 3.867 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002328/1.109, allocations: 0.6422 MB / 1.259 GB, free: 3.855 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.006531/1.116, allocations: 1.875 MB / 1.261 GB, free: 3.781 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003772/1.12, allocations: 1.193 MB / 1.262 GB, free: 3.75 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005085/1.125, allocations: 3.4 MB / 1.265 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00216/1.127, allocations: 1.061 MB / 1.267 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003952/1.131, allocations: 1.261 MB / 1.268 GB, free: 3.074 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001646/1.133, allocations: 0.8808 MB / 1.269 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002242/1.133, allocations: 100.3 kB / 1.269 GB, free: 2.875 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003018/1.136, allocations: 0.8634 MB / 1.27 GB, free: 2.797 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003544/1.136, allocations: 279.1 kB / 1.27 GB, free: 2.746 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0008506/1.137, allocations: 0.6269 MB / 1.27 GB, free: 2.566 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.00362/1.141, allocations: 1.922 MB / 1.272 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 8.106e-06/1.141, allocations: 0 / 1.272 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.456e-06/1.141, allocations: 0 / 1.272 GB, free: 2.305 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.225e-05/1.141, allocations: 1.922 kB / 1.272 GB, free: 2.305 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.004008/1.145, allocations: 1.523 MB / 1.274 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 7.228e-05/1.145, allocations: 10 kB / 1.274 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000599/1.146, allocations: 135.2 kB / 1.274 GB, free: 1.41 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/1.148, allocations: 1.105 MB / 1.275 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.36e-05/1.148, allocations: 56.12 kB / 1.275 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/1.149, allocations: 72.69 kB / 1.275 GB, free: 1.027 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001774/1.15, allocations: 0.7936 MB / 1.276 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.532e-05/1.15, allocations: 0 / 1.276 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.806e-05/1.15, allocations: 31.44 kB / 1.276 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.669e-05/1.15, allocations: 19.02 kB / 1.276 GB, free: 0.8867 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/1.152, allocations: 0.5775 MB / 1.277 GB, free: 0.8672 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.004836/1.156, allocations: 3.542 MB / 1.28 GB, free: 15 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006904/1.157, allocations: 267.1 kB / 1.28 GB, free: 14.97 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003936/1.158, allocations: 175.4 kB / 1.28 GB, free: 14.96 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007603/1.158, allocations: 0.6568 MB / 1.281 GB, free: 14.21 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/1.158, allocations: 34.97 kB / 1.281 GB, free: 14.18 MB / 1.014 GB Notification: Performance of pre-optimization done (n=31): time 1.864e-06/1.158, allocations: 0 / 1.281 GB, free: 14.18 MB / 1.014 GB Notification: Performance of matching and sorting (n=31): time 0.001242/1.16, allocations: 0.5222 MB / 1.282 GB, free: 14.08 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/1.16, allocations: 56.14 kB / 1.282 GB, free: 14.02 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/1.161, allocations: 0.9436 MB / 1.283 GB, free: 13.87 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/1.161, allocations: 35.64 kB / 1.283 GB, free: 13.84 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004725/1.162, allocations: 0.4899 MB / 1.283 GB, free: 13.64 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/1.162, allocations: 117.9 kB / 1.283 GB, free: 13.57 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001971/1.162, allocations: 117.6 kB / 1.283 GB, free: 13.55 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001552/1.162, allocations: 331.8 kB / 1.284 GB, free: 13.23 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003644/1.162, allocations: 164.4 kB / 1.284 GB, free: 13.23 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005105/1.163, allocations: 351.7 kB / 1.284 GB, free: 13.02 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007855/1.164, allocations: 0.515 MB / 1.285 GB, free: 12.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/1.164, allocations: 2.531 kB / 1.285 GB, free: 12.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001163/1.165, allocations: 0.6085 MB / 1.285 GB, free: 12.68 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/1.165, allocations: 7.125 kB / 1.285 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/1.165, allocations: 9.219 kB / 1.285 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/1.165, allocations: 11.53 kB / 1.285 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/1.166, allocations: 122.1 kB / 1.285 GB, free: 12.67 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.361e-05/1.166, allocations: 13.14 kB / 1.285 GB, free: 12.67 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00087/1.166, allocations: 86.59 kB / 1.285 GB, free: 12.63 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/1.166, allocations: 25.3 kB / 1.285 GB, free: 12.63 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.0004718/1.167, allocations: 278.9 kB / 1.286 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001941/1.167, allocations: 104.7 kB / 1.286 GB, free: 12.45 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00112/1.168, allocations: 490.6 kB / 1.286 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.474e-05/1.168, allocations: 4.172 kB / 1.286 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.168, allocations: 0.9375 kB / 1.286 GB, free: 12.38 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008278/1.169, allocations: 455.5 kB / 1.287 GB, free: 12.21 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002786/1.172, allocations: 1.37 MB / 1.288 GB, free: 11.75 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/1.172, allocations: 4.734 kB / 1.288 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003225/1.172, allocations: 73.88 kB / 1.288 GB, free: 11.74 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.068e-05/1.172, allocations: 7.344 kB / 1.288 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/1.172, allocations: 8.953 kB / 1.288 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.728e-06/1.172, allocations: 3.438 kB / 1.288 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.172, allocations: 1.156 kB / 1.288 GB, free: 11.73 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/1.174, allocations: 0.7621 MB / 1.289 GB, free: 11.33 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004745/1.174, allocations: 225.3 kB / 1.289 GB, free: 11.15 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001277/1.174, allocations: 16.39 kB / 1.289 GB, free: 11.14 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/1.175, allocations: 28.33 kB / 1.289 GB, free: 11.13 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.664e-05/1.175, allocations: 25.03 kB / 1.289 GB, free: 11.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.845e-05/1.175, allocations: 20.23 kB / 1.289 GB, free: 11.12 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001026/1.176, allocations: 0.6616 MB / 1.29 GB, free: 10.84 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.61e-07/1.176, allocations: 0 / 1.29 GB, free: 10.84 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00127/1.177, allocations: 340.2 kB / 1.29 GB, free: 10.76 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.0008697/1.178, allocations: 399.4 kB / 1.291 GB, free: 10.58 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0009999/1.179, allocations: 422.9 kB / 1.291 GB, free: 10.46 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.179, allocations: 1.375 kB / 1.291 GB, free: 10.46 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0004162/1.18, allocations: 195.1 kB / 1.291 GB, free: 10.39 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002629/1.182, allocations: 0.6083 MB / 1.292 GB, free: 10.21 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/1.185, allocations: 1.585 MB / 1.293 GB, free: 9.305 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007666/1.186, allocations: 1.033 MB / 1.294 GB, free: 8.574 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0008219/1.187, allocations: 194.8 kB / 1.294 GB, free: 8.527 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001691/1.187, allocations: 83.95 kB / 1.295 GB, free: 8.512 MB / 1.014 GB Notification: Performance of SimCode: time 4.41e-07/1.187, allocations: 0 / 1.295 GB, free: 8.512 MB / 1.014 GB Notification: Performance of Templates: time 0.0472/1.234, allocations: 21.37 MB / 1.315 GB, free: 3.262 MB / 1.014 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