Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 216.4 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.317/1.317, allocations: 230.6 MB / 256.8 MB, free: 8.062 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 2.897/2.897, allocations: 0.49 GB / 0.7958 GB, free: 33.51 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001901/0.001901, allocations: 73.59 kB / 1.155 GB, free: 25.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2888, allocations: 176.1 MB / 1.327 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04251/0.3313, allocations: 42.57 MB / 1.369 GB, free: 6.754 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.01441/0.3457, allocations: 10.47 MB / 1.379 GB, free: 12.26 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001504/0.3472, allocations: 79.31 kB / 1.379 GB, free: 12.18 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.001562/0.3488, allocations: 0.6638 MB / 1.38 GB, free: 11.52 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.004498/0.3533, allocations: 2.026 MB / 1.382 GB, free: 9.48 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.002751/0.356, allocations: 1.231 MB / 1.383 GB, free: 8.258 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.004238/0.3603, allocations: 3.487 MB / 1.386 GB, free: 4.762 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001103/0.3614, allocations: 0.8302 MB / 1.387 GB, free: 3.91 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002973/0.3644, allocations: 1.453 MB / 1.388 GB, free: 2.457 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001164/0.3655, allocations: 0.9217 MB / 1.389 GB, free: 1.531 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.3657, allocations: 100 kB / 1.389 GB, free: 1.434 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00187/0.3675, allocations: 0.9436 MB / 1.39 GB, free: 500 kB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0002759/0.3678, allocations: 286.8 kB / 1.391 GB, free: 212 kB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.000642/0.3684, allocations: 0.6376 MB / 1.391 GB, free: 15.57 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.002446/0.3709, allocations: 1.981 MB / 1.393 GB, free: 13.58 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3709, allocations: 4 kB / 1.393 GB, free: 13.57 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3709, allocations: 0 / 1.393 GB, free: 13.57 MB / 1.092 GB Notification: Performance of Transformations before backend: time 1.24e-05/0.3709, allocations: 0 / 1.393 GB, free: 13.57 MB / 1.092 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.002316/0.3732, allocations: 1.481 MB / 1.395 GB, free: 12.05 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.3733, allocations: 8.031 kB / 1.395 GB, free: 12.05 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000339/0.3736, allocations: 140.1 kB / 1.395 GB, free: 11.91 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001775/0.3754, allocations: 1.069 MB / 1.396 GB, free: 10.81 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.941e-05/0.3754, allocations: 57.98 kB / 1.396 GB, free: 10.75 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000101/0.3755, allocations: 72 kB / 1.396 GB, free: 10.68 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.3768, allocations: 0.7944 MB / 1.397 GB, free: 9.852 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.3769, allocations: 3.953 kB / 1.397 GB, free: 9.848 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.298e-05/0.3769, allocations: 28 kB / 1.397 GB, free: 9.82 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.105e-05/0.377, allocations: 23.98 kB / 1.397 GB, free: 9.797 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.3781, allocations: 0.5711 MB / 1.397 GB, free: 9.223 MB / 1.092 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.00415/0.3822, allocations: 3.642 MB / 1.401 GB, free: 5.332 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005593/0.3828, allocations: 242.4 kB / 1.401 GB, free: 5.086 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.3831, allocations: 167.1 kB / 1.401 GB, free: 4.922 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002347/0.3833, allocations: 63.95 kB / 1.401 GB, free: 4.859 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.3834, allocations: 34.56 kB / 1.401 GB, free: 4.816 MB / 1.092 GB Notification: Performance of pre-optimization done (n=31): time 1.893e-06/0.3834, allocations: 0 / 1.401 GB, free: 4.816 MB / 1.092 GB Notification: Performance of matching and sorting (n=31): time 0.001135/0.3845, allocations: 0.5168 MB / 1.402 GB, free: 4.293 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.3845, allocations: 59.41 kB / 1.402 GB, free: 4.223 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.3857, allocations: 0.9615 MB / 1.403 GB, free: 3.242 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 4.112e-05/0.3857, allocations: 33.7 kB / 1.403 GB, free: 3.203 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/0.3861, allocations: 0.5004 MB / 1.403 GB, free: 2.695 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 9.952e-05/0.3862, allocations: 111 kB / 1.404 GB, free: 2.586 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.3864, allocations: 122.2 kB / 1.404 GB, free: 2.457 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3865, allocations: 329.9 kB / 1.404 GB, free: 2.129 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.3869, allocations: 169.2 kB / 1.404 GB, free: 1.965 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.3874, allocations: 355.8 kB / 1.404 GB, free: 1.539 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008305/0.3882, allocations: 0.5116 MB / 1.405 GB, free: 0.957 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3882, allocations: 0 / 1.405 GB, free: 0.957 MB / 1.092 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001089/0.3893, allocations: 0.6296 MB / 1.406 GB, free: 328 kB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.3893, allocations: 8 kB / 1.406 GB, free: 320 kB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.3893, allocations: 7.938 kB / 1.406 GB, free: 312 kB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.3894, allocations: 8 kB / 1.406 GB, free: 304 kB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.3898, allocations: 119.8 kB / 1.406 GB, free: 184 kB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.3898, allocations: 11.94 kB / 1.406 GB, free: 172 kB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005455/0.3904, allocations: 87.61 kB / 1.406 GB, free: 84 kB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.701e-05/0.3904, allocations: 31.98 kB / 1.406 GB, free: 52 kB / 1.092 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.0003815/0.3908, allocations: 273.6 kB / 1.406 GB, free: 15.77 MB / 1.108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/0.391, allocations: 103.3 kB / 1.406 GB, free: 15.67 MB / 1.108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009943/0.3919, allocations: 0.491 MB / 1.407 GB, free: 15.18 MB / 1.108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.392, allocations: 0 / 1.407 GB, free: 15.18 MB / 1.108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.392, allocations: 4 kB / 1.407 GB, free: 15.17 MB / 1.108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007157/0.3927, allocations: 453.5 kB / 1.407 GB, free: 14.7 MB / 1.108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002015/0.3947, allocations: 1.339 MB / 1.408 GB, free: 13.3 MB / 1.108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.3947, allocations: 7.984 kB / 1.408 GB, free: 13.29 MB / 1.108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003189/0.395, allocations: 75.89 kB / 1.408 GB, free: 13.21 MB / 1.108 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.395, allocations: 3.938 kB / 1.408 GB, free: 13.21 MB / 1.108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.395, allocations: 16.16 kB / 1.409 GB, free: 13.2 MB / 1.108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.395, allocations: 0 / 1.409 GB, free: 13.2 MB / 1.108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3951, allocations: 4 kB / 1.409 GB, free: 13.19 MB / 1.108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.3963, allocations: 0.7838 MB / 1.409 GB, free: 12.38 MB / 1.108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002991/0.3966, allocations: 155.1 kB / 1.409 GB, free: 12.23 MB / 1.108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001052/0.3967, allocations: 8 kB / 1.409 GB, free: 12.22 MB / 1.108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004645/0.3972, allocations: 40.02 kB / 1.409 GB, free: 12.18 MB / 1.108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.849e-05/0.3973, allocations: 23.95 kB / 1.409 GB, free: 12.16 MB / 1.108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.3973, allocations: 15.98 kB / 1.41 GB, free: 12.14 MB / 1.108 GB Notification: Performance of sorting global known variables: time 0.0008362/0.3981, allocations: 0.6668 MB / 1.41 GB, free: 11.46 MB / 1.108 GB Notification: Performance of sort global known variables: time 9e-08/0.3981, allocations: 0 / 1.41 GB, free: 11.46 MB / 1.108 GB Notification: Performance of remove unused functions: time 0.0008744/0.399, allocations: 347.2 kB / 1.41 GB, free: 11.12 MB / 1.108 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.0005841/0.3996, allocations: 374.4 kB / 1.411 GB, free: 10.75 MB / 1.108 GB Notification: Performance of simCode: created initialization part: time 0.0008164/0.4004, allocations: 403.3 kB / 1.411 GB, free: 10.36 MB / 1.108 GB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4004, allocations: 7.938 kB / 1.411 GB, free: 10.35 MB / 1.108 GB Notification: Performance of simCode: created simulation system equations: time 0.0003651/0.4008, allocations: 181 kB / 1.411 GB, free: 10.17 MB / 1.108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002351/0.4031, allocations: 0.6146 MB / 1.412 GB, free: 9.57 MB / 1.108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002406/0.4055, allocations: 1.657 MB / 1.414 GB, free: 7.855 MB / 1.108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000655/0.4062, allocations: 1.032 MB / 1.415 GB, free: 6.793 MB / 1.108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001786/0.4064, allocations: 87.42 kB / 1.415 GB, free: 6.707 MB / 1.108 GB Notification: Performance of SimCode: time 3.11e-07/0.4064, allocations: 0 / 1.415 GB, free: 6.707 MB / 1.108 GB Notification: Performance of Templates: time 0.02434/0.4307, allocations: 18.2 MB / 1.432 GB, free: 4.656 MB / 1.123 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 13.274354088993277]