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.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.001463/0.001463, allocations: 110.2 kB / 19.69 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.001594/0.001594, allocations: 217.4 kB / 23.01 MB, free: 4.566 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.307/1.307, allocations: 230.6 MB / 256.8 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.914/2.914, allocations: 0.505 GB / 0.8108 GB, free: 21.98 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_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_latest_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: 75.02 kB / 1.178 GB, free: 16.81 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2876, allocations: 180.2 MB / 1.354 GB, free: 7.93 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.0428/0.3304, allocations: 42.57 MB / 1.396 GB, free: 13.2 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.0144/0.3448, allocations: 10.45 MB / 1.406 GB, free: 2.73 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.3463, allocations: 79.31 kB / 1.406 GB, free: 2.652 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.3479, allocations: 0.6716 MB / 1.407 GB, free: 1.977 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.004714/0.3526, allocations: 2.025 MB / 1.409 GB, free: 15.95 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002796/0.3554, allocations: 1.238 MB / 1.41 GB, free: 14.71 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.004438/0.3599, allocations: 3.485 MB / 1.413 GB, free: 11.22 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001191/0.3611, allocations: 0.8108 MB / 1.414 GB, free: 10.39 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003125/0.3642, allocations: 1.465 MB / 1.415 GB, free: 8.926 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001317/0.3655, allocations: 0.9295 MB / 1.416 GB, free: 7.992 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001427/0.3657, allocations: 100 kB / 1.416 GB, free: 7.895 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001934/0.3676, allocations: 0.9359 MB / 1.417 GB, free: 6.957 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0002881/0.3679, allocations: 290.8 kB / 1.418 GB, free: 6.672 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0006715/0.3685, allocations: 0.6298 MB / 1.418 GB, free: 6.039 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002675/0.3712, allocations: 1.985 MB / 1.42 GB, free: 4.047 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3712, allocations: 4 kB / 1.42 GB, free: 4.043 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3712, allocations: 0 / 1.42 GB, free: 4.043 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.3712, allocations: 3.938 kB / 1.42 GB, free: 4.039 MB / 1.107 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.002283/0.3735, allocations: 1.485 MB / 1.422 GB, free: 2.516 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3736, allocations: 8.031 kB / 1.422 GB, free: 2.508 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.3739, allocations: 140.1 kB / 1.422 GB, free: 2.371 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001755/0.3756, allocations: 1.065 MB / 1.423 GB, free: 1.273 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.257e-05/0.3757, allocations: 61.92 kB / 1.423 GB, free: 1.211 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-05/0.3758, allocations: 71.94 kB / 1.423 GB, free: 1.141 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.3771, allocations: 0.7944 MB / 1.424 GB, free: 320 kB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.3771, allocations: 0 / 1.424 GB, free: 320 kB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.3772, allocations: 28 kB / 1.424 GB, free: 292 kB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/0.3772, allocations: 20 kB / 1.424 GB, free: 272 kB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3782, allocations: 0.575 MB / 1.424 GB, free: 15.69 MB / 1.123 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.004005/0.3823, allocations: 3.642 MB / 1.428 GB, free: 11.79 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005382/0.3828, allocations: 246.4 kB / 1.428 GB, free: 11.54 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003167/0.3831, allocations: 167.1 kB / 1.428 GB, free: 11.38 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000228/0.3833, allocations: 55.97 kB / 1.428 GB, free: 11.32 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.2e-05/0.3834, allocations: 38.56 kB / 1.428 GB, free: 11.28 MB / 1.123 GB Notification: Performance of pre-optimization done (n=31): time 1.753e-06/0.3834, allocations: 0 / 1.428 GB, free: 11.28 MB / 1.123 GB Notification: Performance of matching and sorting (n=31): time 0.001114/0.3845, allocations: 0.5174 MB / 1.429 GB, free: 10.75 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.3845, allocations: 55.41 kB / 1.429 GB, free: 10.69 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.3857, allocations: 0.9654 MB / 1.43 GB, free: 9.703 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.3857, allocations: 41.64 kB / 1.43 GB, free: 9.656 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/0.3861, allocations: 0.4966 MB / 1.43 GB, free: 9.152 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3862, allocations: 119 kB / 1.43 GB, free: 9.035 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3864, allocations: 110.3 kB / 1.431 GB, free: 8.922 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3865, allocations: 329.9 kB / 1.431 GB, free: 8.594 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.3869, allocations: 173.2 kB / 1.431 GB, free: 8.426 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004784/0.3873, allocations: 348.5 kB / 1.431 GB, free: 8.008 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007917/0.3881, allocations: 0.5115 MB / 1.432 GB, free: 7.426 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3881, allocations: 0 / 1.432 GB, free: 7.426 MB / 1.123 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001063/0.3892, allocations: 0.6297 MB / 1.433 GB, free: 6.789 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3892, allocations: 8 kB / 1.433 GB, free: 6.781 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.3892, allocations: 4 kB / 1.433 GB, free: 6.777 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.3892, allocations: 8 kB / 1.433 GB, free: 6.77 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.3896, allocations: 123.8 kB / 1.433 GB, free: 6.648 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.3897, allocations: 11.94 kB / 1.433 GB, free: 6.637 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005106/0.3902, allocations: 87.38 kB / 1.433 GB, free: 6.551 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.3902, allocations: 32.06 kB / 1.433 GB, free: 6.52 MB / 1.123 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.000337/0.3905, allocations: 277.6 kB / 1.433 GB, free: 6.238 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.3907, allocations: 107.3 kB / 1.433 GB, free: 6.133 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009473/0.3917, allocations: 492.2 kB / 1.434 GB, free: 5.641 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3917, allocations: 8 kB / 1.434 GB, free: 5.633 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.3917, allocations: 0 / 1.434 GB, free: 5.633 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007158/0.3924, allocations: 457.5 kB / 1.434 GB, free: 5.156 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.3945, allocations: 1.343 MB / 1.435 GB, free: 3.75 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.3945, allocations: 4 kB / 1.435 GB, free: 3.746 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.3948, allocations: 75.89 kB / 1.435 GB, free: 3.672 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.048e-05/0.3948, allocations: 3.938 kB / 1.435 GB, free: 3.668 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.45e-05/0.3949, allocations: 15.98 kB / 1.435 GB, free: 3.652 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.3949, allocations: 4.156 kB / 1.435 GB, free: 3.648 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3949, allocations: 4 kB / 1.435 GB, free: 3.645 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001224/0.3961, allocations: 0.776 MB / 1.436 GB, free: 2.84 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/0.3964, allocations: 159.1 kB / 1.436 GB, free: 2.684 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3965, allocations: 8 kB / 1.436 GB, free: 2.676 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004469/0.3969, allocations: 32.03 kB / 1.436 GB, free: 2.645 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.112e-05/0.397, allocations: 28.02 kB / 1.436 GB, free: 2.617 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.461e-05/0.397, allocations: 19.98 kB / 1.436 GB, free: 2.598 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.000811/0.3978, allocations: 0.6707 MB / 1.437 GB, free: 1.918 MB / 1.123 GB Notification: Performance of sort global known variables: time 7e-08/0.3978, allocations: 0 / 1.437 GB, free: 1.918 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0008736/0.3987, allocations: 347.2 kB / 1.437 GB, free: 1.578 MB / 1.123 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.0005737/0.3993, allocations: 372.3 kB / 1.438 GB, free: 1.207 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0008012/0.4001, allocations: 408.2 kB / 1.438 GB, free: 0.8086 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.4001, allocations: 0 / 1.438 GB, free: 0.8086 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.0003531/0.4005, allocations: 181 kB / 1.438 GB, free: 0.6328 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/0.4028, allocations: 0.6168 MB / 1.439 GB, free: 32 kB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002369/0.4052, allocations: 1.657 MB / 1.441 GB, free: 14.32 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006269/0.4058, allocations: 1.032 MB / 1.442 GB, free: 13.25 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001813/0.406, allocations: 87.42 kB / 1.442 GB, free: 13.17 MB / 1.139 GB Notification: Performance of SimCode: time 3.61e-07/0.406, allocations: 0 / 1.442 GB, free: 13.17 MB / 1.139 GB Notification: Performance of Templates: time 0.02482/0.4308, allocations: 18.2 MB / 1.459 GB, free: 11.1 MB / 1.154 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 800] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.68841184201301]