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.001379/0.001379, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001511/0.001511, allocations: 212.3 kB / 22.24 MB, free: 4.855 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.555/1.555, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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 3.398/3.398, allocations: 0.5107 GB / 0.8158 GB, free: 17.94 MB / 0.6231 GB " [Timeout remaining time 176] 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.002132/0.002132, allocations: 69.16 kB / 1.186 GB, free: 13.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4206, allocations: 181.9 MB / 1.364 GB, free: 13.61 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.05102/0.4716, allocations: 38.49 MB / 1.401 GB, free: 6.977 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01934/0.4909, allocations: 9.652 MB / 1.411 GB, free: 13.3 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002987/0.4939, allocations: 79.31 kB / 1.411 GB, free: 13.22 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.4971, allocations: 0.6404 MB / 1.412 GB, free: 12.58 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.008531/0.5057, allocations: 2.009 MB / 1.414 GB, free: 10.56 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.003958/0.5096, allocations: 1.214 MB / 1.415 GB, free: 9.359 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.006328/0.5159, allocations: 3.46 MB / 1.418 GB, free: 5.891 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.5178, allocations: 0.8107 MB / 1.419 GB, free: 5.059 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004795/0.5226, allocations: 1.465 MB / 1.42 GB, free: 3.594 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002408/0.525, allocations: 0.8826 MB / 1.421 GB, free: 2.707 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.5252, allocations: 100 kB / 1.421 GB, free: 2.609 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002904/0.5281, allocations: 0.7173 MB / 1.422 GB, free: 1.891 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0005131/0.5286, allocations: 290.8 kB / 1.422 GB, free: 1.605 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0008093/0.5294, allocations: 0.5132 MB / 1.423 GB, free: 1.09 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.003886/0.5333, allocations: 1.95 MB / 1.425 GB, free: 15.13 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.5333, allocations: 0 / 1.425 GB, free: 15.13 MB / 1.123 GB Notification: Performance of FrontEnd: time 2.685e-06/0.5333, allocations: 0 / 1.425 GB, free: 15.13 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.933e-05/0.5334, allocations: 0 / 1.425 GB, free: 15.13 MB / 1.123 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.002939/0.5363, allocations: 1.485 MB / 1.426 GB, free: 13.61 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.5364, allocations: 12.03 kB / 1.426 GB, free: 13.6 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004061/0.5368, allocations: 140.1 kB / 1.426 GB, free: 13.46 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002195/0.539, allocations: 1.071 MB / 1.427 GB, free: 12.36 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.337e-05/0.539, allocations: 54 kB / 1.427 GB, free: 12.3 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001257/0.5391, allocations: 72 kB / 1.427 GB, free: 12.23 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001726/0.5409, allocations: 0.9372 MB / 1.428 GB, free: 11.22 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.5409, allocations: 4 kB / 1.428 GB, free: 11.22 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.82e-05/0.541, allocations: 24 kB / 1.428 GB, free: 11.2 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.264e-05/0.541, allocations: 27.98 kB / 1.428 GB, free: 11.17 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001261/0.5423, allocations: 0.5672 MB / 1.429 GB, free: 10.6 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.004453/0.5467, allocations: 2.609 MB / 1.431 GB, free: 7.914 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000697/0.5474, allocations: 238.4 kB / 1.432 GB, free: 7.672 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004547/0.5479, allocations: 170.5 kB / 1.432 GB, free: 7.504 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002583/0.5481, allocations: 55.95 kB / 1.432 GB, free: 7.449 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.645e-05/0.5482, allocations: 38.56 kB / 1.432 GB, free: 7.402 MB / 1.123 GB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.5482, allocations: 0 / 1.432 GB, free: 7.402 MB / 1.123 GB Notification: Performance of matching and sorting (n=31): time 0.001304/0.5495, allocations: 0.5096 MB / 1.432 GB, free: 6.887 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.5495, allocations: 55.41 kB / 1.433 GB, free: 6.82 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.5507, allocations: 0.8139 MB / 1.433 GB, free: 5.996 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/0.5507, allocations: 33.7 kB / 1.433 GB, free: 5.957 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005413/0.5513, allocations: 0.5193 MB / 1.434 GB, free: 5.434 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.5514, allocations: 115.1 kB / 1.434 GB, free: 5.32 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001824/0.5516, allocations: 110.2 kB / 1.434 GB, free: 5.203 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001751/0.5517, allocations: 333.9 kB / 1.434 GB, free: 4.871 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004048/0.5522, allocations: 169.2 kB / 1.435 GB, free: 4.707 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007546/0.5529, allocations: 0.4942 MB / 1.435 GB, free: 4.098 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009348/0.5538, allocations: 0.5193 MB / 1.436 GB, free: 3.508 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-06/0.5538, allocations: 8 kB / 1.436 GB, free: 3.5 MB / 1.123 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001241/0.5551, allocations: 0.6026 MB / 1.436 GB, free: 2.891 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.5551, allocations: 8 kB / 1.436 GB, free: 2.883 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.5551, allocations: 8.062 kB / 1.436 GB, free: 2.875 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.487e-05/0.5551, allocations: 8 kB / 1.436 GB, free: 2.867 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.5556, allocations: 127.7 kB / 1.436 GB, free: 2.742 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.595e-05/0.5556, allocations: 8 kB / 1.436 GB, free: 2.734 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005767/0.5562, allocations: 71.53 kB / 1.436 GB, free: 2.664 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.148e-05/0.5563, allocations: 24 kB / 1.436 GB, free: 2.641 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.0004475/0.5567, allocations: 278.7 kB / 1.437 GB, free: 2.359 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/0.5569, allocations: 95.44 kB / 1.437 GB, free: 2.266 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001088/0.558, allocations: 477.6 kB / 1.437 GB, free: 1.789 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.558, allocations: 8 kB / 1.437 GB, free: 1.781 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.558, allocations: 0 / 1.437 GB, free: 1.781 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008022/0.5588, allocations: 461.5 kB / 1.438 GB, free: 1.301 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.5611, allocations: 1.158 MB / 1.439 GB, free: 92 kB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.5611, allocations: 0 / 1.439 GB, free: 92 kB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003498/0.5614, allocations: 80.05 kB / 1.439 GB, free: 12 kB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.286e-06/0.5614, allocations: 4 kB / 1.439 GB, free: 8 kB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.286e-05/0.5615, allocations: 12.03 kB / 1.439 GB, free: 15.99 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.635e-06/0.5615, allocations: 7.938 kB / 1.439 GB, free: 15.98 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.5615, allocations: 0 / 1.439 GB, free: 15.98 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001428/0.5629, allocations: 0.7628 MB / 1.44 GB, free: 15.19 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.5633, allocations: 139.3 kB / 1.44 GB, free: 15.05 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.254e-05/0.5634, allocations: 8 kB / 1.44 GB, free: 15.05 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004766/0.5639, allocations: 35.89 kB / 1.44 GB, free: 15.01 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.656e-05/0.5639, allocations: 27.95 kB / 1.44 GB, free: 14.98 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.333e-05/0.564, allocations: 15.98 kB / 1.44 GB, free: 14.97 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.0008463/0.5648, allocations: 0.5537 MB / 1.44 GB, free: 14.42 MB / 1.139 GB Notification: Performance of sort global known variables: time 9e-08/0.5648, allocations: 0 / 1.44 GB, free: 14.42 MB / 1.139 GB Notification: Performance of remove unused functions: time 0.001168/0.566, allocations: 367.1 kB / 1.441 GB, free: 14.06 MB / 1.139 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.0006764/0.5667, allocations: 370.4 kB / 1.441 GB, free: 13.69 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.0009768/0.5676, allocations: 404.9 kB / 1.441 GB, free: 13.3 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.5676, allocations: 0 / 1.441 GB, free: 13.3 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.0004273/0.5681, allocations: 184.6 kB / 1.442 GB, free: 13.12 MB / 1.139 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.5703, allocations: 479.2 kB / 1.442 GB, free: 12.66 MB / 1.139 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003161/0.5735, allocations: 1.603 MB / 1.444 GB, free: 11.01 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000547/0.574, allocations: 444.6 kB / 1.444 GB, free: 10.54 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0007725/0.5748, allocations: 178.4 kB / 1.444 GB, free: 10.37 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001717/0.5749, allocations: 71.42 kB / 1.444 GB, free: 10.3 MB / 1.139 GB Notification: Performance of SimCode: time 1.492e-06/0.5749, allocations: 0 / 1.444 GB, free: 10.3 MB / 1.139 GB Notification: Performance of Templates: time 0.03804/0.613, allocations: 20.3 MB / 1.464 GB, free: 6.398 MB / 1.154 GB " [Timeout remaining time 299] 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/jenkins/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: 10.119275817647576]