Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.256/2.256, allocations: 387.4 MB / 394.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 196.4 kB / 487.4 MB, free: 5.035 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 221.5 MB / 0.7824 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008935/0.0008936, allocations: 91.8 kB / 0.9219 GB, free: 2.266 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.161e-05/2.184e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2794, allocations: 142.4 MB / 1.206 GB, free: 43.99 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.126/1.405, allocations: 419.1 MB / 1.615 GB, free: 3.555 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/1.405, allocations: 91.62 kB / 1.615 GB, free: 3.508 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.499/2.904, allocations: 441.8 MB / 2.047 GB, free: 159.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.784e-06/2.904, allocations: 0 / 2.047 GB, free: 159.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001521/2.905, allocations: 31.98 kB / 2.047 GB, free: 159.9 MB / 1.151 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.002731/2.907, allocations: 1.248 MB / 2.048 GB, free: 158.6 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/2.907, allocations: 8.031 kB / 2.048 GB, free: 158.6 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005842/2.908, allocations: 138.5 kB / 2.048 GB, free: 158.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02298/2.931, allocations: 12.92 MB / 2.061 GB, free: 145.3 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.248e-05/2.931, allocations: 28 kB / 2.061 GB, free: 145.3 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001694/2.931, allocations: 43.98 kB / 2.061 GB, free: 145.3 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008779/2.932, allocations: 447.9 kB / 2.061 GB, free: 144.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000997/2.933, allocations: 0.6349 MB / 2.062 GB, free: 144.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/2.933, allocations: 4 kB / 2.062 GB, free: 144.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.254e-05/2.933, allocations: 3.953 kB / 2.062 GB, free: 144.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/2.933, allocations: 20 kB / 2.062 GB, free: 144.1 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.003608/2.937, allocations: 3.375 MB / 2.065 GB, free: 140.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/2.937, allocations: 319.7 kB / 2.065 GB, free: 140.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/2.937, allocations: 148.8 kB / 2.066 GB, free: 140.1 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000354/2.938, allocations: 0.6609 MB / 2.066 GB, free: 139.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/2.938, allocations: 38.56 kB / 2.066 GB, free: 139.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.825e-06/2.938, allocations: 4 kB / 2.066 GB, free: 139.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0007186/2.939, allocations: 345 kB / 2.067 GB, free: 138.9 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.75e-05/2.939, allocations: 59.39 kB / 2.067 GB, free: 138.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007743/2.939, allocations: 0.6453 MB / 2.067 GB, free: 138.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4.287e-05/2.939, allocations: 29.7 kB / 2.067 GB, free: 138.1 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/2.94, allocations: 0.495 MB / 2.068 GB, free: 137.6 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.388e-05/2.94, allocations: 114.4 kB / 2.068 GB, free: 137.5 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.668e-05/2.94, allocations: 7.938 kB / 2.068 GB, free: 137.5 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 4.817e-05/2.94, allocations: 326 kB / 2.068 GB, free: 137.2 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001497/2.94, allocations: 113.1 kB / 2.068 GB, free: 137 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002168/2.94, allocations: 315.2 kB / 2.069 GB, free: 136.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003495/2.941, allocations: 195.5 kB / 2.069 GB, free: 136.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/2.941, allocations: 4 kB / 2.069 GB, free: 136.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0007279/2.941, allocations: 480 kB / 2.069 GB, free: 136 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/2.941, allocations: 11.95 kB / 2.069 GB, free: 136 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/2.941, allocations: 8.688 kB / 2.069 GB, free: 135.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/2.941, allocations: 12 kB / 2.069 GB, free: 135.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003653/2.942, allocations: 115.8 kB / 2.069 GB, free: 135.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/2.942, allocations: 15.98 kB / 2.069 GB, free: 135.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006513/2.942, allocations: 79.42 kB / 2.07 GB, free: 135.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.606e-05/2.942, allocations: 24 kB / 2.07 GB, free: 135.7 MB / 1.151 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 () * 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 9.546e-05/2.943, allocations: 122.1 kB / 2.07 GB, free: 135.6 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/2.943, allocations: 86.95 kB / 2.07 GB, free: 135.5 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006892/2.943, allocations: 423.5 kB / 2.07 GB, free: 135.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/2.943, allocations: 4 kB / 2.07 GB, free: 135.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/2.943, allocations: 0 / 2.07 GB, free: 135.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004365/2.944, allocations: 403.1 kB / 2.071 GB, free: 134.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00157/2.945, allocations: 1.271 MB / 2.072 GB, free: 133.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/2.945, allocations: 0 / 2.072 GB, free: 133.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/2.946, allocations: 79.89 kB / 2.072 GB, free: 133.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.991e-06/2.946, allocations: 3.984 kB / 2.072 GB, free: 133.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.245e-05/2.946, allocations: 11.98 kB / 2.072 GB, free: 133.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/2.946, allocations: 8.156 kB / 2.072 GB, free: 133.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/2.946, allocations: 7.938 kB / 2.072 GB, free: 133.2 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007755/2.947, allocations: 0.7361 MB / 2.073 GB, free: 132.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002987/2.947, allocations: 235.8 kB / 2.073 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/2.947, allocations: 4 kB / 2.073 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005411/2.948, allocations: 47.95 kB / 2.073 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.153e-05/2.948, allocations: 23.97 kB / 2.073 GB, free: 132.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/2.948, allocations: 23.98 kB / 2.073 GB, free: 132 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0004882/2.948, allocations: 0.4952 MB / 2.073 GB, free: 131.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.948, allocations: 0 / 2.073 GB, free: 131.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0009985/2.949, allocations: 359.2 kB / 2.074 GB, free: 131.2 MB / 1.151 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 () * 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.0008134/2.95, allocations: 0.5598 MB / 2.074 GB, free: 130.6 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0004343/2.95, allocations: 328.8 kB / 2.075 GB, free: 130.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/2.95, allocations: 0 / 2.075 GB, free: 130.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001801/2.951, allocations: 163.8 kB / 2.075 GB, free: 130.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00196/2.953, allocations: 481.7 kB / 2.075 GB, free: 129.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001603/2.954, allocations: 1.168 MB / 2.076 GB, free: 128.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000352/2.955, allocations: 1.059 MB / 2.077 GB, free: 127.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0005702/2.955, allocations: 175.1 kB / 2.078 GB, free: 127.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/2.955, allocations: 75.42 kB / 2.078 GB, free: 127.1 MB / 1.151 GB Notification: Performance of SimCode: time 6.21e-07/2.955, allocations: 0 / 2.078 GB, free: 127.1 MB / 1.151 GB Notification: Performance of Templates: time 0.02298/2.978, allocations: 16.89 MB / 2.094 GB, free: 110.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches