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.383/2.383, allocations: 387.1 MB / 399.7 MB, free: 9.484 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.00156/0.00156, allocations: 188.1 kB / 492.3 MB, free: 0.6094 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.588/1.588, allocations: 221.3 MB / 0.7871 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009958/0.0009957, allocations: 87.95 kB / 0.9267 GB, free: 13.95 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.336e-05/3.338e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3867, allocations: 142.3 MB / 1.212 GB, free: 38.51 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.309/1.695, allocations: 419.7 MB / 1.622 GB, free: 10.8 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002407/1.696, allocations: 97.17 kB / 1.622 GB, free: 10.75 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.657/3.353, allocations: 444.3 MB / 2.056 GB, free: 145.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.255e-06/3.353, allocations: 0 / 2.056 GB, free: 145.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001127/3.353, allocations: 35.98 kB / 2.056 GB, free: 145.3 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.002266/3.355, allocations: 1.248 MB / 2.058 GB, free: 144.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/3.355, allocations: 8.031 kB / 2.058 GB, free: 144 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003586/3.356, allocations: 142.4 kB / 2.058 GB, free: 143.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02342/3.379, allocations: 12.97 MB / 2.07 GB, free: 130.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.784e-05/3.379, allocations: 50 kB / 2.07 GB, free: 130.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.797e-05/3.379, allocations: 75.98 kB / 2.07 GB, free: 130.6 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001219/3.38, allocations: 0.7282 MB / 2.071 GB, free: 129.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/3.38, allocations: 0 / 2.071 GB, free: 129.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.398e-05/3.381, allocations: 32 kB / 2.071 GB, free: 129.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.393e-05/3.381, allocations: 27.89 kB / 2.071 GB, free: 129.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007067/3.381, allocations: 493 kB / 2.072 GB, free: 129.3 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.003695/3.385, allocations: 3.544 MB / 2.075 GB, free: 125.6 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004936/3.385, allocations: 331.8 kB / 2.075 GB, free: 125.2 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001973/3.386, allocations: 160.8 kB / 2.076 GB, free: 125 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004517/3.386, allocations: 0.6649 MB / 2.076 GB, free: 124.2 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/3.386, allocations: 34.94 kB / 2.076 GB, free: 124.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.164e-06/3.386, allocations: 0 / 2.076 GB, free: 124.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0006691/3.387, allocations: 373.3 kB / 2.077 GB, free: 123.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/3.387, allocations: 55.41 kB / 2.077 GB, free: 123.7 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009188/3.388, allocations: 0.8161 MB / 2.077 GB, free: 122.9 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.637e-05/3.388, allocations: 37.7 kB / 2.078 GB, free: 122.9 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003327/3.388, allocations: 0.5034 MB / 2.078 GB, free: 122.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/3.388, allocations: 106.5 kB / 2.078 GB, free: 122.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.883e-05/3.388, allocations: 8 kB / 2.078 GB, free: 122.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.735e-05/3.388, allocations: 326 kB / 2.078 GB, free: 121.9 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/3.389, allocations: 129 kB / 2.079 GB, free: 121.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/3.389, allocations: 335.8 kB / 2.079 GB, free: 121.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002295/3.389, allocations: 187.7 kB / 2.079 GB, free: 121.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/3.389, allocations: 0 / 2.079 GB, free: 121.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.0006464/3.39, allocations: 0.5349 MB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/3.39, allocations: 8 kB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/3.39, allocations: 4 kB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/3.39, allocations: 8 kB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003759/3.39, allocations: 120.3 kB / 2.08 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.697e-05/3.39, allocations: 11.94 kB / 2.08 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007619/3.391, allocations: 115.2 kB / 2.08 GB, free: 120.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/3.391, allocations: 24 kB / 2.08 GB, free: 120.4 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 0.0001003/3.391, allocations: 133.5 kB / 2.08 GB, free: 120.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/3.391, allocations: 110.7 kB / 2.08 GB, free: 120.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006579/3.392, allocations: 448.7 kB / 2.081 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/3.392, allocations: 4 kB / 2.081 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/3.392, allocations: 0 / 2.081 GB, free: 119.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004008/3.392, allocations: 414.4 kB / 2.081 GB, free: 119.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/3.394, allocations: 1.385 MB / 2.082 GB, free: 117.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/3.394, allocations: 4 kB / 2.082 GB, free: 117.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003146/3.394, allocations: 79.94 kB / 2.082 GB, free: 117.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/3.395, allocations: 7.984 kB / 2.082 GB, free: 117.7 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/3.395, allocations: 8 kB / 2.082 GB, free: 117.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/3.395, allocations: 7.938 kB / 2.082 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/3.395, allocations: 0 / 2.082 GB, free: 117.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007793/3.395, allocations: 0.7961 MB / 2.083 GB, free: 116.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/3.396, allocations: 243.6 kB / 2.083 GB, free: 116.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/3.396, allocations: 8 kB / 2.083 GB, free: 116.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/3.396, allocations: 55.95 kB / 2.083 GB, free: 116.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.922e-05/3.396, allocations: 27.95 kB / 2.083 GB, free: 116.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/3.396, allocations: 15.98 kB / 2.083 GB, free: 116.4 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.000723/3.397, allocations: 0.644 MB / 2.084 GB, free: 115.8 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.71e-07/3.397, allocations: 4 kB / 2.084 GB, free: 115.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001214/3.398, allocations: 371.4 kB / 2.084 GB, free: 115.4 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.0009707/3.399, allocations: 0.5655 MB / 2.085 GB, free: 114.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0005395/3.4, allocations: 352 kB / 2.085 GB, free: 114.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/3.4, allocations: 0 / 2.085 GB, free: 114.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000227/3.4, allocations: 176.8 kB / 2.086 GB, free: 114.3 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/3.403, allocations: 0.5984 MB / 2.086 GB, free: 113.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001989/3.405, allocations: 1.211 MB / 2.087 GB, free: 112.5 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/3.405, allocations: 1.063 MB / 2.088 GB, free: 111.4 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007598/3.406, allocations: 212.4 kB / 2.089 GB, free: 111.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001615/3.406, allocations: 79.41 kB / 2.089 GB, free: 111.1 MB / 1.151 GB Notification: Performance of SimCode: time 1.292e-06/3.406, allocations: 0 / 2.089 GB, free: 111.1 MB / 1.151 GB Notification: Performance of Templates: time 0.03635/3.443, allocations: 22.8 MB / 2.111 GB, free: 88.53 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