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.001405/0.001405, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001203, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.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.656/2.656, allocations: 437 MB / 0.7103 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.91 kB / 0.8692 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6848/0.6861, allocations: 151.6 MB / 1.017 GB, free: 2.566 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.04053/0.7267, allocations: 41.59 MB / 1.058 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01492/0.7416, allocations: 10.39 MB / 1.068 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001766/0.7435, allocations: 63.62 kB / 1.068 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00166/0.7452, allocations: 0.6365 MB / 1.069 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005308/0.7505, allocations: 1.885 MB / 1.071 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.003/0.7535, allocations: 1.17 MB / 1.072 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.004817/0.7583, allocations: 3.395 MB / 1.075 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.7602, allocations: 1.058 MB / 1.076 GB, free: 6.172 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002774/0.763, allocations: 1.224 MB / 1.077 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001257/0.7642, allocations: 0.8828 MB / 1.078 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.7644, allocations: 100 kB / 1.078 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001959/0.7664, allocations: 0.8578 MB / 1.079 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002692/0.7667, allocations: 279 kB / 1.079 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000646/0.7673, allocations: 0.626 MB / 1.08 GB, free: 2.203 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002295/0.7696, allocations: 1.909 MB / 1.082 GB, free: 296 kB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.7696, allocations: 3.938 kB / 1.082 GB, free: 292 kB / 0.8262 GB Notification: Performance of FrontEnd: time 1.353e-06/0.7696, allocations: 0 / 1.082 GB, free: 292 kB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.507e-05/0.7697, allocations: 0 / 1.082 GB, free: 292 kB / 0.8262 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.002378/0.7721, allocations: 1.515 MB / 1.083 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.7721, allocations: 8.031 kB / 1.083 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003296/0.7724, allocations: 131.4 kB / 1.083 GB, free: 14.58 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.774, allocations: 1.049 MB / 1.084 GB, free: 13.49 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.038e-05/0.7741, allocations: 54 kB / 1.084 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.7742, allocations: 72 kB / 1.085 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001335/0.7755, allocations: 0.7944 MB / 1.085 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.78e-05/0.7756, allocations: 0 / 1.085 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.085e-05/0.7757, allocations: 28 kB / 1.085 GB, free: 12.51 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-05/0.7757, allocations: 20 kB / 1.085 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.7768, allocations: 0.5711 MB / 1.086 GB, free: 11.92 MB / 0.8419 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.004238/0.7811, allocations: 3.579 MB / 1.089 GB, free: 8.113 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006007/0.7817, allocations: 263.2 kB / 1.09 GB, free: 7.848 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003698/0.7821, allocations: 182 kB / 1.09 GB, free: 7.668 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000567/0.7826, allocations: 0.657 MB / 1.09 GB, free: 6.863 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.7827, allocations: 34.56 kB / 1.091 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 2.104e-06/0.7827, allocations: 0 / 1.091 GB, free: 6.82 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001227/0.7839, allocations: 0.5171 MB / 1.091 GB, free: 6.297 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.596e-05/0.784, allocations: 59.41 kB / 1.091 GB, free: 6.227 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001133/0.7851, allocations: 0.9417 MB / 1.092 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.7852, allocations: 41.62 kB / 1.092 GB, free: 5.219 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004095/0.7856, allocations: 0.4917 MB / 1.093 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001033/0.7857, allocations: 110.5 kB / 1.093 GB, free: 4.613 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001592/0.7859, allocations: 114.1 kB / 1.093 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001135/0.786, allocations: 329.9 kB / 1.093 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.7864, allocations: 165 kB / 1.093 GB, free: 4.004 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005267/0.7869, allocations: 350.9 kB / 1.094 GB, free: 3.586 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008519/0.7878, allocations: 0.507 MB / 1.094 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.7878, allocations: 0 / 1.094 GB, free: 3.008 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001192/0.789, allocations: 0.6248 MB / 1.095 GB, free: 2.375 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.328e-05/0.789, allocations: 8 kB / 1.095 GB, free: 2.367 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.7891, allocations: 4 kB / 1.095 GB, free: 2.363 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.685e-05/0.7891, allocations: 8.594 kB / 1.095 GB, free: 2.355 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004391/0.7895, allocations: 127.8 kB / 1.095 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.7896, allocations: 15.97 kB / 1.095 GB, free: 2.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006371/0.7902, allocations: 83.19 kB / 1.095 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.087e-05/0.7903, allocations: 31.94 kB / 1.095 GB, free: 2.102 MB / 0.8419 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.000357/0.7906, allocations: 273.6 kB / 1.095 GB, free: 1.824 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.7908, allocations: 102.8 kB / 1.095 GB, free: 1.723 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009803/0.7918, allocations: 481.7 kB / 1.096 GB, free: 1.238 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.187e-05/0.7918, allocations: 7.984 kB / 1.096 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.7918, allocations: 0 / 1.096 GB, free: 1.23 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007241/0.7926, allocations: 453.2 kB / 1.096 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.7947, allocations: 1.37 MB / 1.097 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.7947, allocations: 0 / 1.097 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003392/0.795, allocations: 71.89 kB / 1.098 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.795, allocations: 7.938 kB / 1.098 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.7951, allocations: 11.98 kB / 1.098 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.201e-06/0.7951, allocations: 4 kB / 1.098 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.7951, allocations: 0 / 1.098 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001318/0.7964, allocations: 0.77 MB / 1.098 GB, free: 14.42 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003116/0.7967, allocations: 227.8 kB / 1.099 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.7969, allocations: 12.06 kB / 1.099 GB, free: 14.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005005/0.7974, allocations: 27.95 kB / 1.099 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.313e-05/0.7974, allocations: 27.97 kB / 1.099 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.7975, allocations: 27.98 kB / 1.099 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008436/0.7983, allocations: 0.6549 MB / 1.099 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7984, allocations: 0 / 1.099 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001053/0.7994, allocations: 339.4 kB / 1.1 GB, free: 13.09 MB / 0.8575 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.0008608/0.8003, allocations: 393.8 kB / 1.1 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001027/0.8013, allocations: 451.1 kB / 1.1 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.8013, allocations: 1.375 kB / 1.1 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003868/0.8017, allocations: 188.6 kB / 1.101 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002762/0.8045, allocations: 0.6132 MB / 1.101 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002941/0.8074, allocations: 1.626 MB / 1.103 GB, free: 9.816 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006917/0.8082, allocations: 1.036 MB / 1.104 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0009159/0.8091, allocations: 199.2 kB / 1.104 GB, free: 8.555 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001932/0.8093, allocations: 79.42 kB / 1.104 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of SimCode: time 1.102e-06/0.8093, allocations: 0 / 1.104 GB, free: 8.477 MB / 0.8575 GB Notification: Performance of Templates: time 0.03597/0.8453, allocations: 21.25 MB / 1.125 GB, free: 3.523 MB / 0.8731 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches