Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.383/1.383, allocations: 251.9 MB / 266.9 MB, free: 11.02 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001126/0.001126, allocations: 187.2 kB / 326.5 MB, free: 2.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.779/1.779, allocations: 205.4 MB / 0.5775 GB, free: 20.26 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009103/0.0009103, allocations: 85.98 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003476/0.0003477, allocations: 15.69 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2203, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9554/1.176, allocations: 399.7 MB / 1.29 GB, free: 136 kB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002774/1.176, allocations: 98.77 kB / 1.291 GB, free: 84 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.19/2.366, allocations: 423.2 MB / 1.704 GB, free: 45.32 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.756e-06/2.366, allocations: 0 / 1.704 GB, free: 45.32 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001218/2.366, allocations: 28 kB / 1.704 GB, free: 45.29 MB / 0.8855 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.004067/2.37, allocations: 1.453 MB / 1.705 GB, free: 43.79 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.502e-05/2.37, allocations: 11.97 kB / 1.705 GB, free: 43.78 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007719/2.371, allocations: 139 kB / 1.705 GB, free: 43.64 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02337/2.395, allocations: 12.43 MB / 1.718 GB, free: 31.04 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.129e-05/2.395, allocations: 50 kB / 1.718 GB, free: 30.98 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001777/2.395, allocations: 76 kB / 1.718 GB, free: 30.91 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/2.396, allocations: 0.7671 MB / 1.718 GB, free: 30.11 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/2.396, allocations: 0 / 1.718 GB, free: 30.11 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/2.396, allocations: 35.98 kB / 1.718 GB, free: 30.07 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.707e-05/2.396, allocations: 16 kB / 1.718 GB, free: 30.06 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00107/2.397, allocations: 0.5672 MB / 1.719 GB, free: 29.49 MB / 0.8855 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.003957/2.401, allocations: 3.544 MB / 1.722 GB, free: 25.72 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/2.402, allocations: 359.7 kB / 1.723 GB, free: 25.34 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003734/2.402, allocations: 0.6649 MB / 1.723 GB, free: 24.52 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/2.402, allocations: 38.56 kB / 1.724 GB, free: 24.48 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=31): time 1.663e-06/2.402, allocations: 0 / 1.724 GB, free: 24.48 MB / 0.8855 GB Notification: Performance of matching and sorting (n=31): time 0.00114/2.404, allocations: 0.5683 MB / 1.724 GB, free: 23.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.659e-05/2.404, allocations: 59.41 kB / 1.724 GB, free: 23.83 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009884/2.405, allocations: 0.8186 MB / 1.725 GB, free: 23 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/2.405, allocations: 33.7 kB / 1.725 GB, free: 22.96 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003018/2.405, allocations: 0.4918 MB / 1.725 GB, free: 22.46 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.914e-05/2.405, allocations: 110.4 kB / 1.726 GB, free: 22.35 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.895e-05/2.405, allocations: 12 kB / 1.726 GB, free: 22.34 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.057e-05/2.405, allocations: 326 kB / 1.726 GB, free: 22.01 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/2.405, allocations: 157 kB / 1.726 GB, free: 21.86 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003689/2.406, allocations: 394.5 kB / 1.726 GB, free: 21.38 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003326/2.406, allocations: 215.7 kB / 1.727 GB, free: 21.16 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/2.406, allocations: 4 kB / 1.727 GB, free: 21.16 MB / 0.8855 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0009023/2.407, allocations: 0.6012 MB / 1.727 GB, free: 20.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/2.407, allocations: 4.531 kB / 1.727 GB, free: 20.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-06/2.407, allocations: 12 kB / 1.727 GB, free: 20.54 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/2.407, allocations: 11.95 kB / 1.727 GB, free: 20.52 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003525/2.408, allocations: 115.8 kB / 1.727 GB, free: 20.41 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/2.408, allocations: 15.92 kB / 1.727 GB, free: 20.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007593/2.408, allocations: 107.2 kB / 1.727 GB, free: 20.29 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.519e-05/2.408, allocations: 27.98 kB / 1.727 GB, free: 20.26 MB / 0.8855 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 (57): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003554/2.409, allocations: 273.6 kB / 1.728 GB, free: 19.98 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001374/2.409, allocations: 94.88 kB / 1.728 GB, free: 19.89 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000875/2.41, allocations: 0.5106 MB / 1.728 GB, free: 19.37 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/2.41, allocations: 8 kB / 1.728 GB, free: 19.36 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/2.41, allocations: 3.953 kB / 1.728 GB, free: 19.36 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005829/2.41, allocations: 485.2 kB / 1.729 GB, free: 18.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001836/2.412, allocations: 1.455 MB / 1.73 GB, free: 17.31 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/2.412, allocations: 4 kB / 1.73 GB, free: 17.31 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003097/2.413, allocations: 71.95 kB / 1.73 GB, free: 17.24 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/2.413, allocations: 4 kB / 1.73 GB, free: 17.23 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.376e-05/2.413, allocations: 16.09 kB / 1.73 GB, free: 17.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/2.413, allocations: 7.984 kB / 1.73 GB, free: 17.21 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/2.413, allocations: 0 / 1.73 GB, free: 17.21 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001039/2.414, allocations: 0.8898 MB / 1.731 GB, free: 16.27 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003499/2.414, allocations: 247.7 kB / 1.731 GB, free: 16.01 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/2.414, allocations: 11.89 kB / 1.731 GB, free: 16 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005167/2.415, allocations: 63.88 kB / 1.732 GB, free: 15.93 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.778e-05/2.415, allocations: 23.95 kB / 1.732 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.274e-05/2.415, allocations: 23.92 kB / 1.732 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0006725/2.415, allocations: 0.6508 MB / 1.732 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/2.415, allocations: 0 / 1.732 GB, free: 15.23 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001078/2.417, allocations: 371.3 kB / 1.733 GB, free: 14.86 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008616/2.417, allocations: 0.5469 MB / 1.733 GB, free: 14.31 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.000721/2.418, allocations: 420.5 kB / 1.733 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/2.418, allocations: 4 kB / 1.733 GB, free: 13.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003115/2.418, allocations: 204 kB / 1.734 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/2.421, allocations: 0.6225 MB / 1.734 GB, free: 13.08 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/2.423, allocations: 1.961 MB / 1.736 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003983/2.423, allocations: 1.06 MB / 1.737 GB, free: 9.984 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006834/2.424, allocations: 196.5 kB / 1.737 GB, free: 9.789 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/2.424, allocations: 75.42 kB / 1.737 GB, free: 9.715 MB / 0.8855 GB Notification: Performance of SimCode: time 6.81e-07/2.424, allocations: 0 / 1.737 GB, free: 9.715 MB / 0.8855 GB Notification: Performance of Templates: time 0.4078/2.832, allocations: 22.28 MB / 1.759 GB, free: 188.3 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches