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.001799/0.001805, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.002111/0.002111, allocations: 191.6 kB / 16.25 MB, free: 6.621 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.485/1.485, allocations: 222.9 MB / 239.9 MB, free: 4.438 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.623/2.623, allocations: 437 MB / 0.71 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 63.91 kB / 0.8687 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7283/0.7296, allocations: 151.6 MB / 1.017 GB, free: 2.891 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger): time 0.03979/0.7694, allocations: 41.27 MB / 1.057 GB, free: 9.469 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01473/0.7842, allocations: 10.33 MB / 1.067 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001743/0.786, allocations: 55.62 kB / 1.067 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001798/0.7878, allocations: 0.5557 MB / 1.068 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.004852/0.7927, allocations: 1.758 MB / 1.069 GB, free: 12.73 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.7955, allocations: 1.089 MB / 1.071 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.003939/0.7994, allocations: 3.417 MB / 1.074 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001238/0.8007, allocations: 1.038 MB / 1.075 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00253/0.8032, allocations: 1.249 MB / 1.076 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00107/0.8043, allocations: 0.9139 MB / 1.077 GB, free: 5.004 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.8044, allocations: 96 kB / 1.077 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001831/0.8063, allocations: 0.8771 MB / 1.078 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002675/0.8066, allocations: 283 kB / 1.078 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0006666/0.8072, allocations: 0.6299 MB / 1.079 GB, free: 3.121 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002516/0.8098, allocations: 1.916 MB / 1.081 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.8098, allocations: 0 / 1.081 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.013e-06/0.8098, allocations: 0 / 1.081 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.781e-05/0.8098, allocations: 0 / 1.081 GB, free: 1.199 MB / 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.002441/0.8123, allocations: 1.515 MB / 1.082 GB, free: 15.63 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.8123, allocations: 11.97 kB / 1.082 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.8127, allocations: 135.5 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0017/0.8144, allocations: 1.068 MB / 1.083 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.878e-05/0.8145, allocations: 61.92 kB / 1.083 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.8146, allocations: 72 kB / 1.084 GB, free: 14.24 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001662/0.8163, allocations: 0.7905 MB / 1.084 GB, free: 13.42 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.654e-05/0.8163, allocations: 4 kB / 1.084 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.339e-05/0.8164, allocations: 32 kB / 1.084 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.073e-05/0.8165, allocations: 16 kB / 1.084 GB, free: 13.37 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.8177, allocations: 0.575 MB / 1.085 GB, free: 12.79 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.004008/0.8217, allocations: 3.544 MB / 1.088 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.8223, allocations: 263.8 kB / 1.089 GB, free: 8.754 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003568/0.8227, allocations: 176.7 kB / 1.089 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005217/0.8232, allocations: 0.6648 MB / 1.089 GB, free: 7.766 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.8232, allocations: 34.56 kB / 1.089 GB, free: 7.723 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=31): time 1.773e-06/0.8233, allocations: 4 kB / 1.089 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31): time 0.001164/0.8244, allocations: 0.5046 MB / 1.09 GB, free: 7.207 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.507e-05/0.8245, allocations: 59.34 kB / 1.09 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.8256, allocations: 0.9299 MB / 1.091 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.8257, allocations: 37.69 kB / 1.091 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004103/0.8261, allocations: 499.6 kB / 1.091 GB, free: 5.652 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.8262, allocations: 114.4 kB / 1.092 GB, free: 5.539 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001647/0.8264, allocations: 114.1 kB / 1.092 GB, free: 5.422 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.8265, allocations: 333.9 kB / 1.092 GB, free: 5.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003601/0.8268, allocations: 165 kB / 1.092 GB, free: 4.926 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004858/0.8273, allocations: 347 kB / 1.092 GB, free: 4.516 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008242/0.8282, allocations: 0.5188 MB / 1.093 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.8282, allocations: 0 / 1.093 GB, free: 3.926 MB / 0.8419 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001117/0.8293, allocations: 0.6246 MB / 1.094 GB, free: 3.293 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.8293, allocations: 4.688 kB / 1.094 GB, free: 3.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.8294, allocations: 8 kB / 1.094 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.8294, allocations: 12 kB / 1.094 GB, free: 3.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004378/0.8298, allocations: 119.8 kB / 1.094 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.321e-05/0.8299, allocations: 15.92 kB / 1.094 GB, free: 3.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006777/0.8305, allocations: 107.2 kB / 1.094 GB, free: 3.031 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.821e-05/0.8306, allocations: 27.98 kB / 1.094 GB, free: 3.004 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.0003452/0.831, allocations: 277.6 kB / 1.094 GB, free: 2.723 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.8311, allocations: 98.78 kB / 1.094 GB, free: 2.625 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009687/0.8321, allocations: 484.6 kB / 1.095 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.8321, allocations: 4 kB / 1.095 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.8321, allocations: 0 / 1.095 GB, free: 2.133 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007253/0.8329, allocations: 457.2 kB / 1.095 GB, free: 1.656 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00205/0.8349, allocations: 1.355 MB / 1.096 GB, free: 236 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.8349, allocations: 4 kB / 1.096 GB, free: 232 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003563/0.8353, allocations: 75.89 kB / 1.097 GB, free: 156 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.8353, allocations: 7.938 kB / 1.097 GB, free: 148 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.749e-05/0.8353, allocations: 8 kB / 1.097 GB, free: 140 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.8354, allocations: 0 / 1.097 GB, free: 140 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.8354, allocations: 4 kB / 1.097 GB, free: 136 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.8367, allocations: 0.7739 MB / 1.097 GB, free: 15.33 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003023/0.837, allocations: 231.7 kB / 1.098 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000119/0.8372, allocations: 4 kB / 1.098 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.8377, allocations: 55.89 kB / 1.098 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.101e-05/0.8378, allocations: 27.95 kB / 1.098 GB, free: 15 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.217e-05/0.8379, allocations: 19.98 kB / 1.098 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008106/0.8387, allocations: 0.6471 MB / 1.098 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8387, allocations: 0 / 1.098 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000932/0.8396, allocations: 327.5 kB / 1.099 GB, free: 14 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.0007531/0.8404, allocations: 398.2 kB / 1.099 GB, free: 13.61 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0009804/0.8414, allocations: 448.4 kB / 1.099 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.8414, allocations: 8.125 kB / 1.099 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.8418, allocations: 179.8 kB / 1.1 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/0.8444, allocations: 0.6117 MB / 1.1 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002674/0.8471, allocations: 1.947 MB / 1.102 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005783/0.8477, allocations: 1.036 MB / 1.103 GB, free: 9.34 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0007694/0.8485, allocations: 199.4 kB / 1.103 GB, free: 9.145 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.8487, allocations: 75.42 kB / 1.103 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of SimCode: time 9.91e-07/0.8487, allocations: 0 / 1.103 GB, free: 9.07 MB / 0.8575 GB Notification: Performance of Templates: time 0.03432/0.883, allocations: 20.74 MB / 1.124 GB, free: 4.633 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