Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) 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) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001612/0.001612, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.2 MB / 218.5 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 79.22 kB / 266.6 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.789/0.789, allocations: 90.34 MB / 405 MB, free: 8.637 MB / 298.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 4.83e-05/4.895e-05, allocations: 0 / 479.2 MB, free: 14.34 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4045/0.4046, allocations: 66.27 MB / 0.5326 GB, free: 28.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.787/2.192, allocations: 0.7566 GB / 1.289 GB, free: 95.93 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00023/2.192, allocations: 83.95 kB / 1.289 GB, free: 95.85 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.885/4.077, allocations: 0.5305 GB / 1.82 GB, free: 23.95 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.144e-06/4.077, allocations: 4 kB / 1.82 GB, free: 23.95 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 6.377e-05/4.077, allocations: 35.98 kB / 1.82 GB, free: 23.91 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007893/4.085, allocations: 2.633 MB / 1.822 GB, free: 21.22 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/4.085, allocations: 8.031 kB / 1.822 GB, free: 21.21 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001747/4.087, allocations: 246.5 kB / 1.823 GB, free: 20.97 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000886/4.088, allocations: 0.5606 MB / 1.823 GB, free: 20.38 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000184/4.088, allocations: 196.8 kB / 1.823 GB, free: 20.16 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/4.088, allocations: 84 kB / 1.823 GB, free: 20.08 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/4.089, allocations: 0.8939 MB / 1.824 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/4.089, allocations: 0 / 1.824 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.941e-05/4.09, allocations: 32 kB / 1.824 GB, free: 19.13 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.727e-05/4.09, allocations: 20 kB / 1.824 GB, free: 19.11 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001148/4.091, allocations: 0.6716 MB / 1.825 GB, free: 18.44 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003684/4.094, allocations: 3.661 MB / 1.829 GB, free: 14.46 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00122/4.096, allocations: 0.794 MB / 1.829 GB, free: 13.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004654/4.096, allocations: 375.7 kB / 1.83 GB, free: 13.29 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006729/4.097, allocations: 1.13 MB / 1.831 GB, free: 11.92 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/4.097, allocations: 39.34 kB / 1.831 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=83): time 3.847e-06/4.097, allocations: 0 / 1.831 GB, free: 11.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=83): time 0.002558/4.099, allocations: 1.087 MB / 1.832 GB, free: 10.77 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/4.099, allocations: 64.19 kB / 1.832 GB, free: 10.7 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004148/4.1, allocations: 425 kB / 1.832 GB, free: 10.27 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 5.811e-05/4.1, allocations: 37.7 kB / 1.832 GB, free: 10.23 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/4.1, allocations: 384.4 kB / 1.833 GB, free: 9.848 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/4.1, allocations: 283.8 kB / 1.833 GB, free: 9.566 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.367e-05/4.1, allocations: 12 kB / 1.833 GB, free: 9.555 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/4.1, allocations: 390.7 kB / 1.833 GB, free: 9.164 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003813/4.101, allocations: 261.5 kB / 1.834 GB, free: 8.91 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/4.101, allocations: 336.8 kB / 1.834 GB, free: 8.566 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004234/4.102, allocations: 282 kB / 1.834 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/4.102, allocations: 0 / 1.834 GB, free: 8.293 MB / 0.5886 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002272/4.104, allocations: 1.126 MB / 1.835 GB, free: 7.145 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/4.104, allocations: 4 kB / 1.835 GB, free: 7.141 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.938e-06/4.104, allocations: 3.938 kB / 1.835 GB, free: 7.137 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005018/4.105, allocations: 178.6 kB / 1.836 GB, free: 6.953 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008289/4.105, allocations: 195.8 kB / 1.836 GB, free: 6.762 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003503/4.109, allocations: 4.639 MB / 1.84 GB, free: 1.719 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000712/4.11, allocations: 103.4 kB / 1.84 GB, free: 1.617 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/4.11, allocations: 51.98 kB / 1.84 GB, free: 1.566 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,88.9%) 1,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001635/4.11, allocations: 152.6 kB / 1.841 GB, free: 1.41 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/4.11, allocations: 79.05 kB / 1.841 GB, free: 1.332 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4089/4.519, allocations: 1.456 MB / 1.842 GB, free: 72.76 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/4.519, allocations: 7.5 kB / 1.842 GB, free: 72.76 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/4.519, allocations: 6.031 kB / 1.842 GB, free: 72.76 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.428e-05/4.519, allocations: 7.266 kB / 1.842 GB, free: 72.76 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004414/4.524, allocations: 2.289 MB / 1.844 GB, free: 72.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/4.524, allocations: 3.781 kB / 1.844 GB, free: 72.43 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009114/4.525, allocations: 202 kB / 1.845 GB, free: 72.43 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004863/4.525, allocations: 179.3 kB / 1.845 GB, free: 72.41 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-05/4.525, allocations: 43.22 kB / 1.845 GB, free: 72.41 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003754/4.529, allocations: 4.636 MB / 1.849 GB, free: 68.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/4.529, allocations: 3.812 kB / 1.849 GB, free: 68.68 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003445/4.532, allocations: 1.654 MB / 1.851 GB, free: 68.47 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/4.533, allocations: 156.1 kB / 1.851 GB, free: 68.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.698e-05/4.533, allocations: 17.38 kB / 1.851 GB, free: 68.36 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005195/4.533, allocations: 68.02 kB / 1.851 GB, free: 68.35 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/4.533, allocations: 77.3 kB / 1.851 GB, free: 68.35 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.904e-05/4.533, allocations: 58.55 kB / 1.851 GB, free: 68.35 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 0.0003882/4.534, allocations: 332.5 kB / 1.852 GB, free: 68.26 MB / 0.5886 GB Notification: Performance of sort global known variables: time 1.6e-07/4.534, allocations: 6.906 kB / 1.852 GB, free: 68.26 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.003194/4.537, allocations: 0.9014 MB / 1.852 GB, free: 68.24 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (counterFlowNTU.inletB.m_flow,counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(3,88.9%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003682/4.541, allocations: 1.923 MB / 1.854 GB, free: 67.95 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.002453/4.543, allocations: 1.285 MB / 1.856 GB, free: 67.54 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/4.543, allocations: 3.812 kB / 1.856 GB, free: 67.54 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.001564/4.545, allocations: 0.9881 MB / 1.857 GB, free: 67.13 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001001/4.546, allocations: 181.4 kB / 1.857 GB, free: 67.12 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002899/4.549, allocations: 1.553 MB / 1.858 GB, free: 66.72 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/4.549, allocations: 1.017 MB / 1.859 GB, free: 66.02 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001126/4.55, allocations: 277.2 kB / 1.86 GB, free: 66.01 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003776/4.551, allocations: 114.3 kB / 1.86 GB, free: 66 MB / 0.5886 GB Notification: Performance of SimCode: time 6.71e-07/4.551, allocations: 0 / 1.86 GB, free: 66 MB / 0.5886 GB Notification: Performance of Templates: time 0.0508/4.601, allocations: 37.11 MB / 1.896 GB, free: 64.94 MB / 0.5886 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches