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.001803/0.001803, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002522/0.002522, allocations: 211.6 kB / 22.24 MB, free: 5.258 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.557/1.557, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] 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 3.26/3.26, allocations: 0.4892 GB / 0.7943 GB, free: 35.55 MB / 0.6231 GB " [Timeout remaining time 176] 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.002156/0.002156, allocations: 68.88 kB / 1.154 GB, free: 25.58 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.3719, allocations: 176.1 MB / 1.326 GB, free: 1.852 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04908/0.421, allocations: 38.47 MB / 1.363 GB, free: 11.24 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.01675/0.4377, allocations: 9.669 MB / 1.373 GB, free: 1.547 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.4395, allocations: 83.31 kB / 1.373 GB, free: 1.465 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.4413, allocations: 0.6326 MB / 1.373 GB, free: 0.8281 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0054/0.4467, allocations: 2.014 MB / 1.375 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.4499, allocations: 1.201 MB / 1.376 GB, free: 13.62 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.004924/0.4548, allocations: 3.465 MB / 1.38 GB, free: 10.14 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001372/0.4562, allocations: 0.8029 MB / 1.381 GB, free: 9.316 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003481/0.4597, allocations: 1.46 MB / 1.382 GB, free: 7.855 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.4612, allocations: 0.8865 MB / 1.383 GB, free: 6.965 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.0001696/0.4613, allocations: 104 kB / 1.383 GB, free: 6.863 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001771/0.4631, allocations: 0.7134 MB / 1.384 GB, free: 6.148 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 0.0003353/0.4634, allocations: 294.8 kB / 1.384 GB, free: 5.859 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 0.0006729/0.4641, allocations: 0.5094 MB / 1.384 GB, free: 5.348 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.00285/0.467, allocations: 1.95 MB / 1.386 GB, free: 3.391 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.467, allocations: 4 kB / 1.386 GB, free: 3.387 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.272e-06/0.467, allocations: 3.938 kB / 1.386 GB, free: 3.383 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.583e-05/0.467, allocations: 0 / 1.386 GB, free: 3.383 MB / 1.076 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.002617/0.4696, allocations: 1.481 MB / 1.388 GB, free: 1.863 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.4696, allocations: 8.031 kB / 1.388 GB, free: 1.855 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003838/0.47, allocations: 152.1 kB / 1.388 GB, free: 1.707 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002121/0.4721, allocations: 1.06 MB / 1.389 GB, free: 0.6133 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.671e-05/0.4722, allocations: 58 kB / 1.389 GB, free: 0.5547 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001188/0.4723, allocations: 71.95 kB / 1.389 GB, free: 496 kB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001602/0.4739, allocations: 0.9411 MB / 1.39 GB, free: 15.47 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.628e-05/0.4739, allocations: 3.938 kB / 1.39 GB, free: 15.47 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.702e-05/0.474, allocations: 28 kB / 1.39 GB, free: 15.44 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.491e-05/0.474, allocations: 23.98 kB / 1.39 GB, free: 15.42 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.4753, allocations: 0.5672 MB / 1.391 GB, free: 14.85 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.004052/0.4793, allocations: 2.597 MB / 1.393 GB, free: 12.18 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006464/0.48, allocations: 244.3 kB / 1.393 GB, free: 11.93 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003814/0.4804, allocations: 164.8 kB / 1.394 GB, free: 11.77 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002598/0.4806, allocations: 63.95 kB / 1.394 GB, free: 11.7 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/0.4807, allocations: 34.5 kB / 1.394 GB, free: 11.66 MB / 1.092 GB Notification: Performance of pre-optimization done (n=31): time 2.014e-06/0.4807, allocations: 4 kB / 1.394 GB, free: 11.66 MB / 1.092 GB Notification: Performance of matching and sorting (n=31): time 0.001297/0.482, allocations: 0.5091 MB / 1.394 GB, free: 11.14 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.482, allocations: 59.39 kB / 1.394 GB, free: 11.07 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.4832, allocations: 0.81 MB / 1.395 GB, free: 10.25 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 5.007e-05/0.4832, allocations: 37.64 kB / 1.395 GB, free: 10.2 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004724/0.4837, allocations: 0.5116 MB / 1.396 GB, free: 9.688 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.4838, allocations: 115.1 kB / 1.396 GB, free: 9.574 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001707/0.484, allocations: 118.2 kB / 1.396 GB, free: 9.449 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 0.0001648/0.4842, allocations: 329.9 kB / 1.396 GB, free: 9.121 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000394/0.4845, allocations: 165.2 kB / 1.396 GB, free: 8.961 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006825/0.4852, allocations: 0.4981 MB / 1.397 GB, free: 8.348 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009679/0.4862, allocations: 0.5154 MB / 1.397 GB, free: 7.762 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.4862, allocations: 0 / 1.397 GB, free: 7.762 MB / 1.092 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001303/0.4875, allocations: 0.6141 MB / 1.398 GB, free: 7.141 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.4875, allocations: 8 kB / 1.398 GB, free: 7.133 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.4875, allocations: 7.984 kB / 1.398 GB, free: 7.125 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.344e-05/0.4876, allocations: 8 kB / 1.398 GB, free: 7.117 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.4881, allocations: 131.8 kB / 1.398 GB, free: 6.988 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.4881, allocations: 11.94 kB / 1.398 GB, free: 6.977 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005628/0.4887, allocations: 71.53 kB / 1.398 GB, free: 6.906 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.344e-05/0.4887, allocations: 28.16 kB / 1.398 GB, free: 6.879 MB / 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.0004867/0.4892, allocations: 273.6 kB / 1.398 GB, free: 6.602 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.4894, allocations: 91.38 kB / 1.398 GB, free: 6.512 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00113/0.4905, allocations: 479.8 kB / 1.399 GB, free: 6.031 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.4905, allocations: 4 kB / 1.399 GB, free: 6.027 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.4905, allocations: 4 kB / 1.399 GB, free: 6.023 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008059/0.4914, allocations: 457.4 kB / 1.399 GB, free: 5.547 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.4936, allocations: 1.159 MB / 1.4 GB, free: 4.336 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.4936, allocations: 4.062 kB / 1.4 GB, free: 4.332 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/0.494, allocations: 71.89 kB / 1.401 GB, free: 4.262 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.494, allocations: 4 kB / 1.401 GB, free: 4.258 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.494, allocations: 15.98 kB / 1.401 GB, free: 4.242 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.183e-06/0.494, allocations: 7.938 kB / 1.401 GB, free: 4.234 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.694e-06/0.494, allocations: 3.938 kB / 1.401 GB, free: 4.23 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.4955, allocations: 0.7666 MB / 1.401 GB, free: 3.434 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.4959, allocations: 139.3 kB / 1.401 GB, free: 3.297 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.496, allocations: 11.98 kB / 1.401 GB, free: 3.285 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004642/0.4965, allocations: 27.91 kB / 1.401 GB, free: 3.258 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.4966, allocations: 31.89 kB / 1.401 GB, free: 3.227 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.4966, allocations: 24.05 kB / 1.402 GB, free: 3.203 MB / 1.092 GB Notification: Performance of sorting global known variables: time 0.0008372/0.4974, allocations: 0.5498 MB / 1.402 GB, free: 2.66 MB / 1.092 GB Notification: Performance of sort global known variables: time 7e-08/0.4974, allocations: 0 / 1.402 GB, free: 2.66 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.001139/0.4986, allocations: 363 kB / 1.402 GB, free: 2.305 MB / 1.092 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.0007344/0.4993, allocations: 374.7 kB / 1.403 GB, free: 1.934 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.5003, allocations: 408.8 kB / 1.403 GB, free: 1.535 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5003, allocations: 0 / 1.403 GB, free: 1.535 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.5007, allocations: 175.8 kB / 1.403 GB, free: 1.363 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.503, allocations: 481.3 kB / 1.404 GB, free: 0.9062 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003231/0.5062, allocations: 1.589 MB / 1.405 GB, free: 15.27 MB / 1.108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.5068, allocations: 460.6 kB / 1.406 GB, free: 14.78 MB / 1.108 GB Notification: Performance of simCode: alias equations: time 0.0007005/0.5075, allocations: 181.1 kB / 1.406 GB, free: 14.61 MB / 1.108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001661/0.5076, allocations: 71.42 kB / 1.406 GB, free: 14.54 MB / 1.108 GB Notification: Performance of SimCode: time 1.633e-06/0.5077, allocations: 0 / 1.406 GB, free: 14.54 MB / 1.108 GB Notification: Performance of Templates: time 0.03705/0.5447, allocations: 20.29 MB / 1.426 GB, free: 10.66 MB / 1.123 GB " [Timeout remaining time 299] 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/jenkins/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: 10.144536290317774]