Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008807/0.0008805, allocations: 98.11 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006047/0.006048, allocations: 172.4 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6551/0.6551, allocations: 91.32 MB / 382.8 MB, free: 9.652 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003659/0.0003659, allocations: 13.84 kB / 462.7 MB, free: 23.62 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.117, allocations: 69.21 MB / 0.5195 GB, free: 9.098 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5172/0.6342, allocations: 210.2 MB / 0.7248 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02051/0.6547, allocations: 17.36 MB / 0.7417 GB, free: 4.359 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001401/0.6562, allocations: 47.62 kB / 0.7418 GB, free: 4.312 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.6582, allocations: 0.5401 MB / 0.7423 GB, free: 3.77 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004527/0.6627, allocations: 1.544 MB / 0.7438 GB, free: 2.219 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.6668, allocations: 1.43 MB / 0.7452 GB, free: 0.7891 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002325/0.6691, allocations: 1.888 MB / 0.747 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004606/0.6696, allocations: 275.2 kB / 0.7473 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.6719, allocations: 1.125 MB / 0.7484 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006508/0.6726, allocations: 0.579 MB / 0.749 GB, free: 12.9 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.695e-05/0.6727, allocations: 47.98 kB / 0.749 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006698/0.6794, allocations: 3.568 MB / 0.7525 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002773/0.6797, allocations: 191 kB / 0.7527 GB, free: 9.094 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0007063/0.6804, allocations: 0.5841 MB / 0.7533 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004437/0.6849, allocations: 2.208 MB / 0.7554 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6849, allocations: 3.938 kB / 0.7554 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6849, allocations: 4 kB / 0.7554 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.268e-05/0.6849, allocations: 0 / 0.7554 GB, free: 6.277 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.003356/0.6883, allocations: 1.602 MB / 0.757 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.6884, allocations: 8.031 kB / 0.757 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.6905, allocations: 282.6 kB / 0.7573 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001522/0.692, allocations: 0.8117 MB / 0.758 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.6923, allocations: 204.7 kB / 0.7582 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.6925, allocations: 99.89 kB / 0.7583 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002052/0.6946, allocations: 1.032 MB / 0.7593 GB, free: 2.098 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.6946, allocations: 3.938 kB / 0.7594 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.433e-05/0.6947, allocations: 36 kB / 0.7594 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.6947, allocations: 24 kB / 0.7594 GB, free: 2.035 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001765/0.6965, allocations: 0.812 MB / 0.7602 GB, free: 1.227 MB / 0.5606 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.005381/0.7019, allocations: 4.143 MB / 0.7642 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002234/0.7041, allocations: 0.9097 MB / 0.7651 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000915/0.7051, allocations: 455.2 kB / 0.7656 GB, free: 11.37 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.7061, allocations: 1.307 MB / 0.7668 GB, free: 9.77 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.7062, allocations: 39.22 kB / 0.7669 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 3.747e-06/0.7062, allocations: 0 / 0.7669 GB, free: 9.723 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.005785/0.712, allocations: 2.146 MB / 0.769 GB, free: 7.504 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/0.712, allocations: 60.06 kB / 0.769 GB, free: 7.434 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009654/0.713, allocations: 0.7576 MB / 0.7698 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.348e-05/0.7131, allocations: 37.7 kB / 0.7698 GB, free: 6.609 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003648/0.7135, allocations: 0.4962 MB / 0.7703 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.7137, allocations: 279.9 kB / 0.7706 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001069/0.7138, allocations: 65.69 kB / 0.7706 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.7139, allocations: 337.9 kB / 0.7709 GB, free: 5.422 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007512/0.7147, allocations: 337.8 kB / 0.7713 GB, free: 5.094 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008025/0.7155, allocations: 427 kB / 0.7717 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001579/0.7171, allocations: 0.7448 MB / 0.7724 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.7171, allocations: 3.938 kB / 0.7724 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00343/0.7206, allocations: 1.35 MB / 0.7737 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.7206, allocations: 12 kB / 0.7737 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.7206, allocations: 0 / 0.7737 GB, free: 2.516 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009229/0.7215, allocations: 286.3 kB / 0.774 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009732/0.7225, allocations: 211.7 kB / 0.7742 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006067/0.7286, allocations: 5.037 MB / 0.7791 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008682/0.7295, allocations: 107.2 kB / 0.7792 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.7296, allocations: 56.22 kB / 0.7793 GB, free: 12.42 MB / 0.5919 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,1,88.9%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004276/0.7301, allocations: 217.7 kB / 0.7795 GB, free: 12.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.7302, allocations: 110.6 kB / 0.7796 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004539/0.7348, allocations: 1.947 MB / 0.7815 GB, free: 10.12 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.7348, allocations: 8 kB / 0.7815 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.7348, allocations: 4 kB / 0.7815 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.032e-05/0.7348, allocations: 7.922 kB / 0.7815 GB, free: 10.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005128/0.74, allocations: 2.6 MB / 0.7841 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.74, allocations: 3.938 kB / 0.7841 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009944/0.741, allocations: 199.9 kB / 0.7843 GB, free: 7.195 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008701/0.7419, allocations: 294.1 kB / 0.7845 GB, free: 6.898 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.53e-05/0.742, allocations: 31.98 kB / 0.7846 GB, free: 6.867 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005782/0.7477, allocations: 5.052 MB / 0.7895 GB, free: 1.422 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7478, allocations: 0 / 0.7895 GB, free: 1.422 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.7519, allocations: 1.851 MB / 0.7913 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004105/0.7523, allocations: 255.5 kB / 0.7916 GB, free: 15.26 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.7524, allocations: 23.92 kB / 0.7916 GB, free: 15.23 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006356/0.7531, allocations: 67.89 kB / 0.7916 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001513/0.7532, allocations: 72.56 kB / 0.7917 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-05/0.7533, allocations: 55.92 kB / 0.7918 GB, free: 15.04 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0006961/0.754, allocations: 0.5278 MB / 0.7923 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.4e-07/0.754, allocations: 0 / 0.7923 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001332/0.7554, allocations: 471.1 kB / 0.7927 GB, free: 14.04 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * 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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.7565, allocations: 0.5997 MB / 0.7933 GB, free: 13.45 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002823/0.7594, allocations: 1.334 MB / 0.7946 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.7594, allocations: 0 / 0.7946 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.7612, allocations: 0.9684 MB / 0.7956 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001503/0.7627, allocations: 241.2 kB / 0.7958 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004709/0.7674, allocations: 2.917 MB / 0.7986 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.7681, allocations: 1.064 MB / 0.7997 GB, free: 6.773 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001706/0.7698, allocations: 0.6335 MB / 0.8003 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004975/0.7703, allocations: 139.4 kB / 0.8004 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of SimCode: time 1.353e-06/0.7703, allocations: 0 / 0.8004 GB, free: 6.004 MB / 0.6075 GB Notification: Performance of Templates: time 0.2939/1.064, allocations: 18.75 MB / 0.8187 GB, free: 223.2 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches