Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.467/2.467, allocations: 393.5 MB / 408.4 MB, free: 11.02 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.001165/0.001165, allocations: 184 kB / 0.4902 GB, free: 2.234 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.659/1.659, allocations: 223.2 MB / 0.7992 GB, free: 14.73 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.0009536/0.0009536, allocations: 96.2 kB / 0.9396 GB, free: 1.883 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004855/0.0004857, allocations: 7.938 kB / 1.09 GB, free: 216.5 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3613/0.3618, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.3/5.662, allocations: 1.902 GB / 3.131 GB, free: 79.29 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004106/5.663, allocations: 105.3 kB / 3.131 GB, free: 79.19 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 11.41/17.07, allocations: 2.839 GB / 5.97 GB, free: 126.8 MB / 1.26 GB Notification: Performance of FrontEnd: time 1.774e-06/17.07, allocations: 1.703 kB / 5.97 GB, free: 126.8 MB / 1.26 GB Notification: Performance of Transformations before backend: time 0.0002385/17.07, allocations: 69.02 kB / 5.97 GB, free: 126.8 MB / 1.26 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.01348/17.09, allocations: 3.913 MB / 5.974 GB, free: 125.8 MB / 1.26 GB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/17.09, allocations: 8.438 kB / 5.974 GB, free: 125.8 MB / 1.26 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01043/17.1, allocations: 1.201 MB / 5.975 GB, free: 125.7 MB / 1.26 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009978/17.11, allocations: 2.592 MB / 5.978 GB, free: 125.3 MB / 1.26 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001421/17.11, allocations: 438.3 kB / 5.978 GB, free: 125.3 MB / 1.26 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007493/17.11, allocations: 220.2 kB / 5.978 GB, free: 125.3 MB / 1.26 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006184/17.12, allocations: 3.127 MB / 5.981 GB, free: 124.8 MB / 1.26 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.239e-05/17.12, allocations: 6.594 kB / 5.981 GB, free: 124.8 MB / 1.26 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002838/17.12, allocations: 89.31 kB / 5.982 GB, free: 124.8 MB / 1.26 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.914e-05/17.12, allocations: 100.3 kB / 5.982 GB, free: 124.8 MB / 1.26 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006677/17.12, allocations: 3.223 MB / 5.985 GB, free: 124.8 MB / 1.26 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.02303/17.15, allocations: 14.08 MB / 5.999 GB, free: 117.4 MB / 1.26 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003771/17.15, allocations: 1.72 MB / 6 GB, free: 117.4 MB / 1.26 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006481/17.15, allocations: 328.9 kB / 6.001 GB, free: 117.1 MB / 1.26 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.994e-05/17.15, allocations: 54.22 kB / 6.001 GB, free: 117.1 MB / 1.26 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002631/17.15, allocations: 215.6 kB / 6.001 GB, free: 117 MB / 1.26 GB Notification: Performance of pre-optimization done (n=110): time 9.738e-06/17.15, allocations: 1.125 kB / 6.001 GB, free: 117 MB / 1.26 GB Notification: Performance of matching and sorting (n=110): time 0.00551/17.16, allocations: 2.389 MB / 6.003 GB, free: 116.8 MB / 1.26 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/17.16, allocations: 68.06 kB / 6.003 GB, free: 116.8 MB / 1.26 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003729/17.16, allocations: 2.246 MB / 6.005 GB, free: 116.5 MB / 1.26 GB Notification: Performance of collectPreVariables (initialization): time 0.0002881/17.16, allocations: 61.84 kB / 6.005 GB, free: 116.5 MB / 1.26 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009211/17.16, allocations: 1.27 MB / 6.007 GB, free: 116.2 MB / 1.26 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003049/17.16, allocations: 389.1 kB / 6.007 GB, free: 116 MB / 1.26 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/17.16, allocations: 34.12 kB / 6.007 GB, free: 116 MB / 1.26 GB Notification: Performance of setup shared object (initialization): time 0.0001077/17.16, allocations: 370.8 kB / 6.007 GB, free: 115.7 MB / 1.26 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002257/17.17, allocations: 0.9958 MB / 6.008 GB, free: 115.7 MB / 1.26 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/17.17, allocations: 1.664 MB / 6.01 GB, free: 114.9 MB / 1.26 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002367/17.17, allocations: 1.211 MB / 6.011 GB, free: 114.8 MB / 1.26 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/17.17, allocations: 9.562 kB / 6.011 GB, free: 114.8 MB / 1.26 GB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005777/17.18, allocations: 2.887 MB / 6.014 GB, free: 114.5 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 0.001125/17.18, allocations: 5.778 MB / 6.02 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.439e-05/17.18, allocations: 14.16 kB / 6.02 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.848e-05/17.18, allocations: 27.03 kB / 6.02 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002801/17.18, allocations: 0.5606 MB / 6.02 GB, free: 108.4 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008977/17.18, allocations: 2.388 MB / 6.023 GB, free: 106.1 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0041/17.19, allocations: 472.6 kB / 6.023 GB, free: 106.1 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000226/17.19, allocations: 90.56 kB / 6.023 GB, free: 106.1 MB / 1.26 GB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/17.19, allocations: 3.906 kB / 6.023 GB, free: 106.1 MB / 1.26 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005677/17.19, allocations: 2.646 MB / 6.026 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/17.19, allocations: 18.22 kB / 6.026 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/17.19, allocations: 23.38 kB / 6.026 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002343/17.19, allocations: 0.538 MB / 6.026 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.288e-05/17.19, allocations: 34.19 kB / 6.026 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00391/17.2, allocations: 400.4 kB / 6.027 GB, free: 106 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/17.2, allocations: 90.72 kB / 6.027 GB, free: 106 MB / 1.26 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 () * Number of clocked 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.001911/17.2, allocations: 0.6284 MB / 6.027 GB, free: 105.8 MB / 1.26 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000818/17.2, allocations: 268.8 kB / 6.028 GB, free: 105.7 MB / 1.26 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004058/17.21, allocations: 1.868 MB / 6.029 GB, free: 105.6 MB / 1.26 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.066e-05/17.21, allocations: 10.62 kB / 6.029 GB, free: 105.6 MB / 1.26 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/17.21, allocations: 5.156 kB / 6.029 GB, free: 105.6 MB / 1.26 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/17.21, allocations: 7.359 kB / 6.029 GB, free: 105.6 MB / 1.26 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009114/17.21, allocations: 4.491 MB / 6.034 GB, free: 105 MB / 1.26 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-05/17.22, allocations: 6.531 kB / 6.034 GB, free: 105 MB / 1.26 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/17.22, allocations: 318.7 kB / 6.034 GB, free: 105 MB / 1.26 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-05/17.22, allocations: 11.59 kB / 6.034 GB, free: 105 MB / 1.26 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.573e-05/17.22, allocations: 29.41 kB / 6.034 GB, free: 105 MB / 1.26 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007131/17.22, allocations: 2.375 MB / 6.037 GB, free: 102.7 MB / 1.26 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/17.22, allocations: 8.688 kB / 6.037 GB, free: 102.7 MB / 1.26 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004065/17.22, allocations: 2.494 MB / 6.039 GB, free: 101.5 MB / 1.26 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/17.22, allocations: 0.5493 MB / 6.04 GB, free: 101.2 MB / 1.26 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003748/17.22, allocations: 25.2 kB / 6.04 GB, free: 101.2 MB / 1.26 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002437/17.23, allocations: 282.1 kB / 6.04 GB, free: 101.2 MB / 1.26 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/17.23, allocations: 83.77 kB / 6.04 GB, free: 101.2 MB / 1.26 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001321/17.23, allocations: 58.45 kB / 6.04 GB, free: 101.2 MB / 1.26 GB Notification: Performance of sorting global known variables: time 0.002991/17.23, allocations: 1.75 MB / 6.042 GB, free: 101.1 MB / 1.26 GB Notification: Performance of sort global known variables: time 1.9e-07/17.23, allocations: 0 / 6.042 GB, free: 101.1 MB / 1.26 GB Notification: Performance of remove unused functions: time 0.00695/17.24, allocations: 1.94 MB / 6.044 GB, free: 101 MB / 1.26 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 () * Number of clocked 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.01238/17.25, allocations: 7.627 MB / 6.051 GB, free: 96.84 MB / 1.26 GB Notification: Performance of simCode: created initialization part: time 0.008955/17.26, allocations: 3.676 MB / 6.055 GB, free: 96.57 MB / 1.26 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/17.26, allocations: 2.031 kB / 6.055 GB, free: 96.57 MB / 1.26 GB Notification: Performance of simCode: created simulation system equations: time 0.00181/17.26, allocations: 0.8153 MB / 6.055 GB, free: 96.56 MB / 1.26 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006811/17.27, allocations: 1.192 MB / 6.057 GB, free: 96.53 MB / 1.26 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008893/17.28, allocations: 5.009 MB / 6.061 GB, free: 94.23 MB / 1.26 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/17.28, allocations: 1.747 MB / 6.063 GB, free: 93.48 MB / 1.26 GB Notification: Performance of simCode: alias equations: time 0.004164/17.28, allocations: 0.7895 MB / 6.064 GB, free: 93.45 MB / 1.26 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006387/17.28, allocations: 196.2 kB / 6.064 GB, free: 93.45 MB / 1.26 GB Notification: Performance of SimCode: time 1.182e-06/17.28, allocations: 0 / 6.064 GB, free: 93.45 MB / 1.26 GB Notification: Performance of Templates: time 0.1548/17.44, allocations: 110.8 MB / 6.172 GB, free: 88.12 MB / 1.26 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_ReverseFlowMassExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ReverseFlowMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches