Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.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.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senEnt1.h_out|senEnt2.h_out|senTem1.T|senTem2.T|senMas1.X|senMas2.X|cheTem.y|cheEnt.y|cheMas.y|cheTem1.y|cheEnt1.y|cheMas1.y",fileNamePrefix="Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.261/2.261, allocations: 387.1 MB / 399.7 MB, free: 9.426 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.001226/0.001226, allocations: 172.9 kB / 492.3 MB, free: 0.6172 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.866/1.866, allocations: 221.3 MB / 0.7871 GB, free: 12.89 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.001099/0.001099, allocations: 91.95 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.374e-05, allocations: 7.984 kB / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3673, allocations: 142.3 MB / 1.212 GB, free: 38.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.395/6.762, allocations: 1.901 GB / 3.113 GB, free: 430.3 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/6.763, allocations: 94.59 kB / 3.114 GB, free: 430.3 MB / 1.151 GB Notification: Performance of FrontEnd - DAE generated: time 11.45/18.21, allocations: 2.837 GB / 5.95 GB, free: 114.7 MB / 1.245 GB Notification: Performance of FrontEnd: time 1.923e-06/18.21, allocations: 4.312 kB / 5.95 GB, free: 114.7 MB / 1.245 GB Notification: Performance of Transformations before backend: time 0.0003586/18.21, allocations: 68.36 kB / 5.95 GB, free: 114.7 MB / 1.245 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01483/18.22, allocations: 3.493 MB / 5.954 GB, free: 113.4 MB / 1.245 GB Notification: Performance of prepare preOptimizeDAE: time 6.139e-05/18.22, allocations: 8.594 kB / 5.954 GB, free: 113.4 MB / 1.245 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01157/18.24, allocations: 1.192 MB / 5.955 GB, free: 113.2 MB / 1.245 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01054/18.25, allocations: 2.58 MB / 5.957 GB, free: 112.8 MB / 1.245 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00166/18.25, allocations: 441.1 kB / 5.958 GB, free: 112.8 MB / 1.245 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001756/18.25, allocations: 224.4 kB / 5.958 GB, free: 112.8 MB / 1.245 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01027/18.26, allocations: 2.824 MB / 5.961 GB, free: 112.4 MB / 1.245 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.313e-05/18.26, allocations: 8.469 kB / 5.961 GB, free: 112.4 MB / 1.245 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004128/18.26, allocations: 93.16 kB / 5.961 GB, free: 112.4 MB / 1.245 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/18.26, allocations: 89.41 kB / 5.961 GB, free: 112.4 MB / 1.245 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005176/18.27, allocations: 2.648 MB / 5.964 GB, free: 112.3 MB / 1.245 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.02479/18.29, allocations: 14.08 MB / 5.977 GB, free: 104.9 MB / 1.245 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002512/18.29, allocations: 1.423 MB / 5.979 GB, free: 104.9 MB / 1.245 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008855/18.29, allocations: 0.6416 MB / 5.979 GB, free: 104.9 MB / 1.245 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000554/18.3, allocations: 320.6 kB / 5.98 GB, free: 104.6 MB / 1.245 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/18.3, allocations: 56.45 kB / 5.98 GB, free: 104.6 MB / 1.245 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002162/18.3, allocations: 211.5 kB / 5.98 GB, free: 104.5 MB / 1.245 GB Notification: Performance of pre-optimization done (n=110): time 5.721e-06/18.3, allocations: 0 / 5.98 GB, free: 104.5 MB / 1.245 GB Notification: Performance of matching and sorting (n=110): time 0.003027/18.3, allocations: 1.44 MB / 5.981 GB, free: 104.3 MB / 1.245 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/18.3, allocations: 65.62 kB / 5.981 GB, free: 104.3 MB / 1.245 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/18.3, allocations: 2.093 MB / 5.983 GB, free: 104 MB / 1.245 GB Notification: Performance of collectPreVariables (initialization): time 0.0003779/18.3, allocations: 58.77 kB / 5.984 GB, free: 104 MB / 1.245 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009422/18.31, allocations: 1.263 MB / 5.985 GB, free: 103.5 MB / 1.245 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/18.31, allocations: 389.5 kB / 5.985 GB, free: 103.3 MB / 1.245 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/18.31, allocations: 35.66 kB / 5.985 GB, free: 103.3 MB / 1.245 GB Notification: Performance of setup shared object (initialization): time 0.000109/18.31, allocations: 374.2 kB / 5.986 GB, free: 103 MB / 1.245 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001128/18.31, allocations: 0.7153 MB / 5.986 GB, free: 103 MB / 1.245 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001529/18.31, allocations: 1.386 MB / 5.988 GB, free: 102.2 MB / 1.245 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001463/18.31, allocations: 0.9374 MB / 5.988 GB, free: 102.1 MB / 1.245 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/18.31, allocations: 3.906 kB / 5.988 GB, free: 102.1 MB / 1.245 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.004091/18.31, allocations: 2.326 MB / 5.991 GB, free: 101.9 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 0.001472/18.32, allocations: 5.775 MB / 5.996 GB, free: 95.77 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.595e-05/18.32, allocations: 13.31 kB / 5.996 GB, free: 95.77 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.51e-05/18.32, allocations: 23.56 kB / 5.996 GB, free: 95.77 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00286/18.32, allocations: 0.566 MB / 5.997 GB, free: 95.76 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/18.32, allocations: 2.385 MB / 5.999 GB, free: 93.43 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004643/18.32, allocations: 470.9 kB / 6 GB, free: 93.39 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/18.32, allocations: 89.3 kB / 6 GB, free: 93.39 MB / 1.245 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/18.32, allocations: 7.328 kB / 6 GB, free: 93.39 MB / 1.245 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003453/18.33, allocations: 2.087 MB / 6.002 GB, free: 93.3 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/18.33, allocations: 11.88 kB / 6.002 GB, free: 93.3 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/18.33, allocations: 28.7 kB / 6.002 GB, free: 93.3 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/18.33, allocations: 0.5329 MB / 6.002 GB, free: 93.3 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-05/18.33, allocations: 28.75 kB / 6.002 GB, free: 93.3 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/18.33, allocations: 405 kB / 6.003 GB, free: 93.27 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002575/18.34, allocations: 92.97 kB / 6.003 GB, free: 93.27 MB / 1.245 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 4 (masExcFor.i1_w,masExcFor.i2_w,masExcRev.i1_w,masExcRev.i2_w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006302/18.34, allocations: 216.5 kB / 6.003 GB, free: 93.15 MB / 1.245 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006706/18.34, allocations: 261.7 kB / 6.003 GB, free: 93.02 MB / 1.245 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003038/18.34, allocations: 1.58 MB / 6.005 GB, free: 92.91 MB / 1.245 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/18.34, allocations: 13.41 kB / 6.005 GB, free: 92.91 MB / 1.245 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/18.34, allocations: 0 / 6.005 GB, free: 92.91 MB / 1.245 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/18.34, allocations: 7.516 kB / 6.005 GB, free: 92.91 MB / 1.245 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007257/18.35, allocations: 4.189 MB / 6.009 GB, free: 92.35 MB / 1.245 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/18.35, allocations: 7.594 kB / 6.009 GB, free: 92.35 MB / 1.245 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001618/18.35, allocations: 311.5 kB / 6.009 GB, free: 92.35 MB / 1.245 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-05/18.35, allocations: 16.53 kB / 6.009 GB, free: 92.35 MB / 1.245 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.822e-05/18.35, allocations: 33.73 kB / 6.009 GB, free: 92.35 MB / 1.245 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008418/18.35, allocations: 2.372 MB / 6.012 GB, free: 90 MB / 1.245 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.792e-06/18.35, allocations: 7.781 kB / 6.012 GB, free: 90 MB / 1.245 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003045/18.35, allocations: 2.196 MB / 6.014 GB, free: 88.82 MB / 1.245 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/18.35, allocations: 0.5433 MB / 6.014 GB, free: 88.59 MB / 1.245 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004006/18.35, allocations: 29.31 kB / 6.014 GB, free: 88.59 MB / 1.245 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002546/18.36, allocations: 282 kB / 6.015 GB, free: 88.58 MB / 1.245 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/18.36, allocations: 79.92 kB / 6.015 GB, free: 88.57 MB / 1.245 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001503/18.36, allocations: 64.94 kB / 6.015 GB, free: 88.57 MB / 1.245 GB Notification: Performance of sorting global known variables: time 0.002553/18.36, allocations: 1.595 MB / 6.016 GB, free: 88.41 MB / 1.245 GB Notification: Performance of sort global known variables: time 4.71e-07/18.36, allocations: 0 / 6.016 GB, free: 88.41 MB / 1.245 GB Notification: Performance of remove unused functions: time 0.008585/18.37, allocations: 1.933 MB / 6.018 GB, free: 88.27 MB / 1.245 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01188/18.38, allocations: 7.65 MB / 6.026 GB, free: 84.02 MB / 1.245 GB Notification: Performance of simCode: created initialization part: time 0.006169/18.39, allocations: 3.042 MB / 6.029 GB, free: 83.73 MB / 1.245 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/18.39, allocations: 3.531 kB / 6.029 GB, free: 83.73 MB / 1.245 GB Notification: Performance of simCode: created simulation system equations: time 0.001222/18.39, allocations: 0.6612 MB / 6.029 GB, free: 83.73 MB / 1.245 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007057/18.4, allocations: 1.196 MB / 6.031 GB, free: 83.7 MB / 1.245 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006516/18.4, allocations: 3.215 MB / 6.034 GB, free: 82.68 MB / 1.245 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/18.4, allocations: 1.753 MB / 6.035 GB, free: 81.92 MB / 1.245 GB Notification: Performance of simCode: alias equations: time 0.005052/18.41, allocations: 0.9765 MB / 6.036 GB, free: 81.89 MB / 1.245 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005049/18.41, allocations: 155.9 kB / 6.036 GB, free: 81.88 MB / 1.245 GB Notification: Performance of SimCode: time 8.02e-07/18.41, allocations: 0 / 6.036 GB, free: 81.88 MB / 1.245 GB Notification: Performance of Templates: time 0.1789/18.59, allocations: 129 MB / 6.162 GB, free: 55.3 MB / 1.245 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches