Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 109.1 kB / 16.41 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00223/0.00223, allocations: 185.5 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.396/2.396, allocations: 437.1 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 71.89 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9179/0.9194, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04465/0.9641, allocations: 41.6 MB / 1.208 GB, free: 10.09 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01487/0.979, allocations: 10.39 MB / 1.218 GB, free: 15.67 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002008/0.9811, allocations: 55.69 kB / 1.218 GB, free: 15.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.9831, allocations: 0.6599 MB / 1.219 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005346/0.9885, allocations: 1.973 MB / 1.221 GB, free: 12.97 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003037/0.9915, allocations: 1.197 MB / 1.222 GB, free: 11.78 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.00448/0.996, allocations: 3.401 MB / 1.225 GB, free: 8.371 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001752/0.9978, allocations: 1.052 MB / 1.226 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003153/1.001, allocations: 1.264 MB / 1.227 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001801/1.003, allocations: 0.8867 MB / 1.228 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0003417/1.003, allocations: 100 kB / 1.228 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/1.006, allocations: 0.8617 MB / 1.229 GB, free: 4.188 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004193/1.006, allocations: 283 kB / 1.23 GB, free: 3.91 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001096/1.007, allocations: 0.626 MB / 1.23 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00341/1.01, allocations: 1.931 MB / 1.232 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/1.011, allocations: 0 / 1.232 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.913e-06/1.011, allocations: 0 / 1.232 GB, free: 1.348 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.063e-05/1.011, allocations: 0 / 1.232 GB, free: 1.348 MB / 0.9512 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.00308/1.014, allocations: 1.554 MB / 1.234 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/1.014, allocations: 16.92 kB / 1.234 GB, free: 15.72 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004661/1.014, allocations: 148.1 kB / 1.234 GB, free: 15.58 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001983/1.016, allocations: 1.101 MB / 1.235 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.574e-05/1.016, allocations: 61.94 kB / 1.235 GB, free: 14.38 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/1.016, allocations: 72 kB / 1.235 GB, free: 14.3 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/1.018, allocations: 0.7905 MB / 1.236 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/1.018, allocations: 0 / 1.236 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.467e-05/1.018, allocations: 35.98 kB / 1.236 GB, free: 13.45 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.364e-05/1.018, allocations: 20 kB / 1.236 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/1.019, allocations: 0.5711 MB / 1.236 GB, free: 12.86 MB / 0.9669 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.004246/1.023, allocations: 3.564 MB / 1.24 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/1.024, allocations: 266.3 kB / 1.24 GB, free: 8.793 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/1.024, allocations: 187.3 kB / 1.24 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005019/1.025, allocations: 0.6532 MB / 1.241 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.286e-05/1.025, allocations: 38.56 kB / 1.241 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=31): time 2.204e-06/1.025, allocations: 0 / 1.241 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of matching and sorting (n=31): time 0.001278/1.026, allocations: 0.5192 MB / 1.241 GB, free: 7.238 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.363e-05/1.026, allocations: 55.41 kB / 1.241 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001228/1.027, allocations: 0.9417 MB / 1.242 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5e-05/1.028, allocations: 41.62 kB / 1.242 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/1.028, allocations: 0.5004 MB / 1.243 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/1.028, allocations: 115 kB / 1.243 GB, free: 5.543 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001594/1.028, allocations: 122.1 kB / 1.243 GB, free: 5.418 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001166/1.028, allocations: 333.9 kB / 1.243 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003505/1.029, allocations: 157 kB / 1.244 GB, free: 4.93 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004913/1.029, allocations: 347 kB / 1.244 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008124/1.03, allocations: 0.511 MB / 1.244 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/1.03, allocations: 0 / 1.244 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001149/1.031, allocations: 0.6254 MB / 1.245 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/1.031, allocations: 4 kB / 1.245 GB, free: 3.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.843e-05/1.031, allocations: 8 kB / 1.245 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.858e-05/1.031, allocations: 8 kB / 1.245 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004494/1.032, allocations: 120.2 kB / 1.245 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.716e-05/1.032, allocations: 15.92 kB / 1.245 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006371/1.032, allocations: 87.44 kB / 1.245 GB, free: 3.066 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.763e-05/1.032, allocations: 24 kB / 1.245 GB, free: 3.043 MB / 0.9669 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.0003571/1.033, allocations: 277.6 kB / 1.246 GB, free: 2.762 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/1.033, allocations: 111.3 kB / 1.246 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/1.034, allocations: 488.1 kB / 1.246 GB, free: 2.176 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.239e-05/1.034, allocations: 7.984 kB / 1.246 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/1.034, allocations: 0 / 1.246 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007011/1.035, allocations: 449.4 kB / 1.247 GB, free: 1.699 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002084/1.037, allocations: 1.374 MB / 1.248 GB, free: 260 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/1.037, allocations: 0 / 1.248 GB, free: 260 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/1.037, allocations: 80.05 kB / 1.248 GB, free: 180 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.988e-06/1.037, allocations: 7.938 kB / 1.248 GB, free: 172 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/1.037, allocations: 11.98 kB / 1.248 GB, free: 160 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/1.037, allocations: 4 kB / 1.248 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/1.037, allocations: 0 / 1.248 GB, free: 156 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/1.039, allocations: 0.76 MB / 1.249 GB, free: 15.36 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003586/1.039, allocations: 240.2 kB / 1.249 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001627/1.039, allocations: 12.06 kB / 1.249 GB, free: 15.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005562/1.04, allocations: 27.95 kB / 1.249 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.683e-05/1.04, allocations: 23.97 kB / 1.249 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.199e-05/1.04, allocations: 27.98 kB / 1.249 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008731/1.041, allocations: 0.6628 MB / 1.25 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/1.041, allocations: 0 / 1.25 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000997/1.042, allocations: 339.3 kB / 1.25 GB, free: 14.01 MB / 0.9825 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.0007896/1.043, allocations: 393.4 kB / 1.25 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009136/1.044, allocations: 428.6 kB / 1.251 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.044, allocations: 0 / 1.251 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.000378/1.044, allocations: 183.8 kB / 1.251 GB, free: 13.03 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002716/1.047, allocations: 0.6145 MB / 1.252 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/1.049, allocations: 1.66 MB / 1.253 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005924/1.05, allocations: 1.036 MB / 1.254 GB, free: 9.648 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000194/1.05, allocations: 83.42 kB / 1.254 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of SimCode: time 6.12e-07/1.05, allocations: 0 / 1.254 GB, free: 9.566 MB / 0.9825 GB Notification: Performance of Templates: time 0.02685/1.077, allocations: 18.1 MB / 1.272 GB, free: 7.617 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches