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.001025/0.001025, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.001013/0.001013, allocations: 169 kB / 23.02 MB, free: 1.555 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.9958/0.9958, allocations: 177.1 MB / 203.4 MB, free: 5.617 MB / 186.7 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.174/2.174, allocations: 429.5 MB / 0.6732 GB, free: 4.023 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.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: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0.875 kB / 0.8782 GB, free: 6.301 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.437e-05/3.644e-05, allocations: 4.984 kB / 0.8782 GB, free: 6.297 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.01089/0.01092, allocations: 13.43 MB / 0.8913 GB, free: 8.828 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.008771/0.0197, allocations: 6.367 MB / 0.8975 GB, free: 2.461 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001612/0.02131, allocations: 87.25 kB / 0.8976 GB, free: 2.375 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009881/0.0223, allocations: 369.2 kB / 0.8979 GB, free: 2.012 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.002848/0.02514, allocations: 1.375 MB / 0.8993 GB, free: 0.6289 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.002484/0.02763, allocations: 1.434 MB / 0.9007 GB, free: 15.19 MB / 0.8698 GB Notification: Performance of NFFlatten.flatten: time 0.00328/0.03091, allocations: 3.444 MB / 0.904 GB, free: 11.74 MB / 0.8698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001046/0.03195, allocations: 0.8554 MB / 0.9049 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.03419, allocations: 1.569 MB / 0.9064 GB, free: 9.301 MB / 0.8698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001003/0.0352, allocations: 0.8099 MB / 0.9072 GB, free: 8.488 MB / 0.8698 GB Notification: Performance of NFPackage.collectConstants: time 0.0001941/0.03539, allocations: 104 kB / 0.9073 GB, free: 8.387 MB / 0.8698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007926/0.03618, allocations: 315.4 kB / 0.9076 GB, free: 8.078 MB / 0.8698 GB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.03642, allocations: 318.6 kB / 0.9079 GB, free: 7.766 MB / 0.8698 GB Notification: Performance of NFVerifyModel.verify: time 0.0004582/0.03688, allocations: 458.9 kB / 0.9083 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of NFConvertDAE.convert: time 0.001381/0.03826, allocations: 1.106 MB / 0.9094 GB, free: 6.207 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.03827, allocations: 0 / 0.9094 GB, free: 6.207 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.453e-06/0.03827, allocations: 4 kB / 0.9094 GB, free: 6.203 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.944e-05/0.03829, allocations: 0 / 0.9094 GB, free: 6.203 MB / 0.8698 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.001783/0.04007, allocations: 1.58 MB / 0.911 GB, free: 4.582 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.04012, allocations: 8.031 kB / 0.911 GB, free: 4.574 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003678/0.04048, allocations: 215.9 kB / 0.9112 GB, free: 4.363 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.04179, allocations: 1.117 MB / 0.9123 GB, free: 3.211 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.953e-05/0.04183, allocations: 58.38 kB / 0.9123 GB, free: 3.156 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.216e-05/0.04192, allocations: 99.86 kB / 0.9124 GB, free: 3.059 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008381/0.04276, allocations: 0.7363 MB / 0.9131 GB, free: 2.234 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.04278, allocations: 0 / 0.9131 GB, free: 2.234 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.304e-05/0.04284, allocations: 32 kB / 0.9132 GB, free: 2.203 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.265e-05/0.04288, allocations: 23.94 kB / 0.9132 GB, free: 2.18 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004804/0.04336, allocations: 251.5 kB / 0.9134 GB, free: 1.934 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003153/0.04651, allocations: 3.001 MB / 0.9164 GB, free: 14.83 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005256/0.04704, allocations: 150.9 kB / 0.9165 GB, free: 14.67 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001221/0.04716, allocations: 79.55 kB / 0.9166 GB, free: 14.59 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/0.04733, allocations: 27.98 kB / 0.9166 GB, free: 14.56 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.04737, allocations: 41.39 kB / 0.9167 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=31): time 5.61e-06/0.04738, allocations: 3.984 kB / 0.9167 GB, free: 14.51 MB / 0.8855 GB Notification: Performance of matching and sorting (n=31): time 0.0005967/0.04797, allocations: 306.2 kB / 0.917 GB, free: 14.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.04801, allocations: 55.41 kB / 0.917 GB, free: 14.14 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007647/0.04878, allocations: 0.8319 MB / 0.9178 GB, free: 13.28 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.04881, allocations: 37.7 kB / 0.9179 GB, free: 13.24 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003528/0.04916, allocations: 0.5731 MB / 0.9184 GB, free: 12.66 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.142e-05/0.04925, allocations: 123 kB / 0.9185 GB, free: 12.54 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/0.04938, allocations: 156.2 kB / 0.9187 GB, free: 12.38 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.04954, allocations: 0.5004 MB / 0.9192 GB, free: 11.87 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001309/0.04967, allocations: 73.94 kB / 0.9192 GB, free: 11.79 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007408/0.05041, allocations: 0.6276 MB / 0.9199 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000486/0.0509, allocations: 0.5852 MB / 0.9204 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.0509, allocations: 4 kB / 0.9204 GB, free: 10.19 MB / 0.8855 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0006362/0.05154, allocations: 0.5588 MB / 0.921 GB, free: 9.621 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.05156, allocations: 12 kB / 0.921 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.05157, allocations: 8.844 kB / 0.921 GB, free: 9.602 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.0516, allocations: 12 kB / 0.921 GB, free: 9.59 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.05191, allocations: 159.8 kB / 0.9212 GB, free: 9.434 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.05193, allocations: 19.92 kB / 0.9212 GB, free: 9.414 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.05225, allocations: 79.56 kB / 0.9213 GB, free: 9.336 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.245e-05/0.05229, allocations: 36 kB / 0.9213 GB, free: 9.301 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (83): * Single equations (assignments): 83 * 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.0001875/0.05248, allocations: 204.3 kB / 0.9215 GB, free: 9.09 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.05258, allocations: 111.3 kB / 0.9216 GB, free: 8.98 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000449/0.05303, allocations: 297.3 kB / 0.9219 GB, free: 8.688 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.05304, allocations: 4 kB / 0.9219 GB, free: 8.684 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.05305, allocations: 4 kB / 0.9219 GB, free: 8.68 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002764/0.05332, allocations: 289.3 kB / 0.9222 GB, free: 8.367 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001221/0.05454, allocations: 1.069 MB / 0.9232 GB, free: 7.238 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.05455, allocations: 3.938 kB / 0.9232 GB, free: 7.234 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001946/0.05474, allocations: 71.91 kB / 0.9233 GB, free: 7.164 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.95e-06/0.05475, allocations: 4 kB / 0.9233 GB, free: 7.16 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.076e-05/0.05477, allocations: 12.14 kB / 0.9233 GB, free: 7.148 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/0.05478, allocations: 4 kB / 0.9233 GB, free: 7.145 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/0.05478, allocations: 7.938 kB / 0.9233 GB, free: 7.137 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005384/0.05532, allocations: 0.5396 MB / 0.9238 GB, free: 6.559 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.05552, allocations: 143.3 kB / 0.924 GB, free: 6.418 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.594e-05/0.05559, allocations: 11.98 kB / 0.924 GB, free: 6.406 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.0558, allocations: 15.98 kB / 0.924 GB, free: 6.391 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.753e-05/0.05587, allocations: 35.83 kB / 0.924 GB, free: 6.355 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.0559, allocations: 19.98 kB / 0.924 GB, free: 6.336 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004931/0.05639, allocations: 0.5089 MB / 0.9245 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5e-08/0.05639, allocations: 0 / 0.9245 GB, free: 5.816 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007955/0.05719, allocations: 291.3 kB / 0.9248 GB, free: 5.531 MB / 0.8855 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.0003601/0.05755, allocations: 187 kB / 0.925 GB, free: 5.34 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0004853/0.05804, allocations: 308.1 kB / 0.9253 GB, free: 5.039 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.05804, allocations: 4.312 kB / 0.9253 GB, free: 5.035 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001529/0.05819, allocations: 112 kB / 0.9254 GB, free: 4.922 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/0.05944, allocations: 0.4905 MB / 0.9259 GB, free: 4.441 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002579/0.06202, allocations: 1.524 MB / 0.9274 GB, free: 2.855 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001461/0.06216, allocations: 203.2 kB / 0.9276 GB, free: 2.637 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0004506/0.06261, allocations: 180.2 kB / 0.9277 GB, free: 2.461 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.06274, allocations: 76.48 kB / 0.9278 GB, free: 2.387 MB / 0.8855 GB Notification: Performance of SimCode: time 1.643e-06/0.06274, allocations: 0 / 0.9278 GB, free: 2.387 MB / 0.8855 GB Notification: Performance of Templates: time 0.02085/0.08359, allocations: 16.59 MB / 0.944 GB, free: 2.199 MB / 0.9011 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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/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.998978612944484]