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.0009799/0.0009799, allocations: 87.58 kB / 20.45 MB, free: 4.117 MB / 18.57 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.0009564/0.0009564, allocations: 161 kB / 23.82 MB, free: 0.75 MB / 18.57 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 0.968/0.968, allocations: 177.1 MB / 204.2 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.964/1.964, allocations: 377.8 MB / 0.6236 GB, free: 8.562 MB / 0.5886 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.864e-06/1.864e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.93e-05/3.116e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.723 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.01553/0.01556, allocations: 13.29 MB / 0.8245 GB, free: 4.402 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.007799/0.02336, allocations: 5.377 MB / 0.8298 GB, free: 15.06 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001078/0.02444, allocations: 79.31 kB / 0.8299 GB, free: 14.98 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0008009/0.02524, allocations: 373.2 kB / 0.8302 GB, free: 14.62 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 0.002373/0.02762, allocations: 1.348 MB / 0.8315 GB, free: 13.26 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.001827/0.02944, allocations: 1.103 MB / 0.8326 GB, free: 12.16 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.00319/0.03263, allocations: 3.397 MB / 0.8359 GB, free: 8.75 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001053/0.03369, allocations: 0.8344 MB / 0.8367 GB, free: 7.895 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.03563, allocations: 1.506 MB / 0.8382 GB, free: 6.398 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00099/0.03662, allocations: 0.7983 MB / 0.839 GB, free: 5.598 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 0.0001422/0.03676, allocations: 100 kB / 0.8391 GB, free: 5.5 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005765/0.03734, allocations: 311.4 kB / 0.8394 GB, free: 5.195 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 0.0002111/0.03755, allocations: 302.8 kB / 0.8397 GB, free: 4.898 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 0.0003948/0.03794, allocations: 442.9 kB / 0.8401 GB, free: 4.465 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.001179/0.03912, allocations: 1.071 MB / 0.8411 GB, free: 3.391 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.03912, allocations: 4 kB / 0.8411 GB, free: 3.387 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.623e-06/0.03913, allocations: 0 / 0.8411 GB, free: 3.387 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.168e-05/0.03914, allocations: 0 / 0.8411 GB, free: 3.387 MB / 0.7917 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.001618/0.04076, allocations: 1.515 MB / 0.8426 GB, free: 1.832 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.0408, allocations: 12.03 kB / 0.8426 GB, free: 1.82 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003171/0.04111, allocations: 204 kB / 0.8428 GB, free: 1.621 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.0423, allocations: 1.083 MB / 0.8439 GB, free: 0.5 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.916e-05/0.04234, allocations: 54.38 kB / 0.8439 GB, free: 460 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.553e-05/0.04242, allocations: 83.88 kB / 0.844 GB, free: 376 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007979/0.04322, allocations: 0.7441 MB / 0.8447 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.04324, allocations: 0 / 0.8447 GB, free: 15.54 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.573e-05/0.04328, allocations: 32 kB / 0.8448 GB, free: 15.51 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.49e-05/0.04332, allocations: 19.98 kB / 0.8448 GB, free: 15.49 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.04374, allocations: 255.5 kB / 0.845 GB, free: 15.24 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002351/0.04609, allocations: 2.939 MB / 0.8479 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000283/0.04637, allocations: 148.6 kB / 0.848 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/0.04648, allocations: 85.98 kB / 0.8481 GB, free: 11.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.0466, allocations: 27.98 kB / 0.8482 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.04663, allocations: 37.39 kB / 0.8482 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=31): time 1.773e-06/0.04663, allocations: 0 / 0.8482 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of matching and sorting (n=31): time 0.00046/0.04709, allocations: 310.5 kB / 0.8485 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.04712, allocations: 55.41 kB / 0.8485 GB, free: 11.51 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000611/0.04773, allocations: 0.757 MB / 0.8493 GB, free: 10.73 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.04776, allocations: 33.7 kB / 0.8493 GB, free: 10.7 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002899/0.04805, allocations: 0.5612 MB / 0.8499 GB, free: 10.12 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 7.436e-05/0.04812, allocations: 127 kB / 0.85 GB, free: 10 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.04824, allocations: 119.9 kB / 0.8501 GB, free: 9.875 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 0.0001234/0.04836, allocations: 0.4965 MB / 0.8506 GB, free: 9.371 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001079/0.04847, allocations: 61.27 kB / 0.8506 GB, free: 9.312 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002741/0.04874, allocations: 472.8 kB / 0.8511 GB, free: 8.707 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.04909, allocations: 397 kB / 0.8515 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.04909, allocations: 0 / 0.8515 GB, free: 8.223 MB / 0.8073 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0004968/0.04959, allocations: 452.5 kB / 0.8519 GB, free: 7.773 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.04961, allocations: 8 kB / 0.8519 GB, free: 7.766 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.04962, allocations: 4 kB / 0.8519 GB, free: 7.762 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.04964, allocations: 8 kB / 0.8519 GB, free: 7.754 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.04988, allocations: 119.8 kB / 0.852 GB, free: 7.637 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.04989, allocations: 12.5 kB / 0.852 GB, free: 7.625 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002234/0.05012, allocations: 67.67 kB / 0.8521 GB, free: 7.559 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.448e-05/0.05015, allocations: 28 kB / 0.8521 GB, free: 7.531 MB / 0.8073 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.0001587/0.05031, allocations: 188.4 kB / 0.8523 GB, free: 7.336 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.883e-05/0.05041, allocations: 99.38 kB / 0.8524 GB, free: 7.238 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000407/0.05081, allocations: 314.3 kB / 0.8527 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.05082, allocations: 7.938 kB / 0.8527 GB, free: 6.922 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.05082, allocations: 0 / 0.8527 GB, free: 6.922 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002454/0.05107, allocations: 290.9 kB / 0.853 GB, free: 6.609 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.05212, allocations: 1.043 MB / 0.854 GB, free: 5.504 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.05213, allocations: 0 / 0.854 GB, free: 5.504 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.0523, allocations: 67.95 kB / 0.8541 GB, free: 5.438 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.0523, allocations: 4 kB / 0.8541 GB, free: 5.434 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.72e-05/0.05232, allocations: 8 kB / 0.8541 GB, free: 5.426 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.05233, allocations: 7.922 kB / 0.8541 GB, free: 5.418 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.05233, allocations: 4 kB / 0.8541 GB, free: 5.414 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000503/0.05283, allocations: 0.5365 MB / 0.8546 GB, free: 4.84 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001733/0.053, allocations: 139.2 kB / 0.8548 GB, free: 4.703 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.43e-05/0.05306, allocations: 8 kB / 0.8548 GB, free: 4.695 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002029/0.05326, allocations: 23.97 kB / 0.8548 GB, free: 4.672 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.05332, allocations: 31.89 kB / 0.8548 GB, free: 4.641 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.467e-05/0.05334, allocations: 19.98 kB / 0.8548 GB, free: 4.621 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0003866/0.05373, allocations: 482.9 kB / 0.8553 GB, free: 4.152 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6e-08/0.05373, allocations: 0 / 0.8553 GB, free: 4.152 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0004827/0.05421, allocations: 279.4 kB / 0.8556 GB, free: 3.879 MB / 0.8073 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.0002812/0.05449, allocations: 194.9 kB / 0.8557 GB, free: 3.68 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003447/0.05484, allocations: 256.4 kB / 0.856 GB, free: 3.426 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.05484, allocations: 0 / 0.856 GB, free: 3.426 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.05497, allocations: 112.8 kB / 0.8561 GB, free: 3.312 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.0561, allocations: 0.4917 MB / 0.8566 GB, free: 2.828 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00174/0.05784, allocations: 1.454 MB / 0.858 GB, free: 1.309 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.05796, allocations: 187.2 kB / 0.8582 GB, free: 1.105 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0003279/0.05829, allocations: 170.2 kB / 0.8583 GB, free: 0.9375 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.0584, allocations: 72.48 kB / 0.8584 GB, free: 0.8672 MB / 0.8073 GB Notification: Performance of SimCode: time 8.01e-07/0.0584, allocations: 4 kB / 0.8584 GB, free: 0.8633 MB / 0.8073 GB Notification: Performance of Templates: time 0.01984/0.07824, allocations: 16.25 MB / 0.8743 GB, free: 1.039 MB / 0.823 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.892905023880303]