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.001099/0.001099, allocations: 110.9 kB / 16.37 MB, free: 6.469 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.001193/0.001194, allocations: 189.9 kB / 17.3 MB, free: 5.828 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.287/1.287, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6419/0.6419, allocations: 89.49 MB / 380.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 71.89 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1087, allocations: 67.3 MB / 0.5146 GB, free: 7.223 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.3924/0.5012, allocations: 214.1 MB / 0.7237 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.2821/0.7833, allocations: 17.31 MB / 0.7406 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008544/0.7842, allocations: 20.06 kB / 0.7406 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00131/0.7855, allocations: 0.6047 MB / 0.7412 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003508/0.7891, allocations: 1.667 MB / 0.7429 GB, free: 1.574 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003565/0.7926, allocations: 1.667 MB / 0.7445 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001467/0.7941, allocations: 1.525 MB / 0.746 GB, free: 1.57 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003532/0.7945, allocations: 282.2 kB / 0.7462 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001612/0.7961, allocations: 1.099 MB / 0.7473 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005552/0.7967, allocations: 0.6041 MB / 0.7479 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.7968, allocations: 94.31 kB / 0.748 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005348/0.8021, allocations: 3.425 MB / 0.7513 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.8023, allocations: 239.2 kB / 0.7516 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005675/0.8029, allocations: 0.5671 MB / 0.7521 GB, free: 1.504 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003489/0.8064, allocations: 2.195 MB / 0.7543 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.8064, allocations: 1.562 kB / 0.7543 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.663e-06/0.8064, allocations: 0.5625 kB / 0.7543 GB, free: 1.348 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.314e-05/0.8065, allocations: 2.281 kB / 0.7543 GB, free: 1.348 MB / 0.5762 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.003072/0.8095, allocations: 1.659 MB / 0.7559 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.8096, allocations: 9.531 kB / 0.7559 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001928/0.8115, allocations: 274.1 kB / 0.7562 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001077/0.8126, allocations: 0.6349 MB / 0.7568 GB, free: 16.12 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002094/0.8128, allocations: 204.4 kB / 0.757 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.813, allocations: 88.66 kB / 0.7571 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001841/0.8148, allocations: 1.014 MB / 0.758 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.8149, allocations: 0.9062 kB / 0.758 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.073e-05/0.8149, allocations: 40.53 kB / 0.7581 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.815, allocations: 24.12 kB / 0.7581 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001633/0.8166, allocations: 0.7887 MB / 0.7589 GB, free: 15.87 MB / 0.5919 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.004866/0.8215, allocations: 4.043 MB / 0.7628 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.8232, allocations: 0.8668 MB / 0.7637 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007359/0.824, allocations: 436.6 kB / 0.7641 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007728/0.8248, allocations: 1.304 MB / 0.7654 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.8248, allocations: 42.25 kB / 0.7654 GB, free: 12 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 2.154e-06/0.8248, allocations: 0.9062 kB / 0.7654 GB, free: 12 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.004711/0.8295, allocations: 1.904 MB / 0.7673 GB, free: 11.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.8296, allocations: 62.73 kB / 0.7673 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006635/0.8303, allocations: 0.6207 MB / 0.7679 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.8303, allocations: 40.48 kB / 0.768 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/0.8305, allocations: 428 kB / 0.7684 GB, free: 11.2 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001742/0.8307, allocations: 275.7 kB / 0.7686 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002401/0.831, allocations: 151.6 kB / 0.7688 GB, free: 11 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.8311, allocations: 331.6 kB / 0.7691 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000632/0.8317, allocations: 315.8 kB / 0.7694 GB, free: 10.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006923/0.8324, allocations: 393.7 kB / 0.7698 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.8338, allocations: 0.6955 MB / 0.7705 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.8338, allocations: 0.5 kB / 0.7705 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002787/0.8366, allocations: 1.22 MB / 0.7716 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.8366, allocations: 7.906 kB / 0.7717 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.8366, allocations: 2.859 kB / 0.7717 GB, free: 10.49 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007517/0.8374, allocations: 253.6 kB / 0.7719 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008796/0.8382, allocations: 202.2 kB / 0.7721 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00503/0.8433, allocations: 5.226 MB / 0.7772 GB, free: 6.414 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.8439, allocations: 83.84 kB / 0.7773 GB, free: 6.379 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.844, allocations: 54.61 kB / 0.7773 GB, free: 6.379 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.0003315/0.8444, allocations: 218.3 kB / 0.7775 GB, free: 6.254 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.8445, allocations: 92.7 kB / 0.7776 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003678/0.8482, allocations: 1.798 MB / 0.7794 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.8482, allocations: 12.02 kB / 0.7794 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.8482, allocations: 3.75 kB / 0.7794 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.8482, allocations: 6.125 kB / 0.7794 GB, free: 6.055 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.8523, allocations: 2.419 MB / 0.7818 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.8523, allocations: 1.125 kB / 0.7818 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008392/0.8532, allocations: 196.3 kB / 0.782 GB, free: 5.539 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006081/0.8538, allocations: 251.1 kB / 0.7822 GB, free: 5.512 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.967e-05/0.8539, allocations: 36.17 kB / 0.7822 GB, free: 5.512 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004649/0.8585, allocations: 5.24 MB / 0.7873 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.8585, allocations: 3.406 kB / 0.7873 GB, free: 1.453 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003077/0.8616, allocations: 1.695 MB / 0.789 GB, free: 1.168 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003208/0.8619, allocations: 241.1 kB / 0.7892 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001118/0.8621, allocations: 17.38 kB / 0.7892 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004859/0.8626, allocations: 45.58 kB / 0.7893 GB, free: 1.016 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/0.8627, allocations: 70.08 kB / 0.7894 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.529e-05/0.8628, allocations: 51.86 kB / 0.7894 GB, free: 1.012 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004427/0.8632, allocations: 447.2 kB / 0.7898 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8632, allocations: 0 / 0.7898 GB, free: 0.9219 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001301/0.8645, allocations: 471.4 kB / 0.7903 GB, free: 0.8516 MB / 0.5919 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.0009153/0.8655, allocations: 0.5762 MB / 0.7908 GB, free: 0.7031 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002146/0.8676, allocations: 1.244 MB / 0.7921 GB, free: 344 kB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.8676, allocations: 0 / 0.7921 GB, free: 344 kB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001381/0.869, allocations: 0.9117 MB / 0.793 GB, free: 15.98 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009811/0.87, allocations: 251.7 kB / 0.7932 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.8731, allocations: 2.095 MB / 0.7952 GB, free: 15.01 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/0.8735, allocations: 1.01 MB / 0.7962 GB, free: 14.29 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001002/0.8745, allocations: 0.6188 MB / 0.7968 GB, free: 14.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.8749, allocations: 134.9 kB / 0.797 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of SimCode: time 4.31e-07/0.8749, allocations: 0 / 0.797 GB, free: 14.19 MB / 0.6075 GB Notification: Performance of Templates: time 0.1554/1.03, allocations: 19.01 MB / 0.8155 GB, free: 4.672 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches