Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008743/0.0008743, allocations: 175.8 kB / 15.43 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.22/1.22, allocations: 225.7 MB / 241.9 MB, free: 384 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007653/0.0007653, allocations: 86.11 kB / 293.1 MB, free: 12.89 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6127/0.6127, allocations: 91.65 MB / 435.8 MB, free: 23.55 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002733, allocations: 8 kB / 0.5038 GB, free: 8.285 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2782, allocations: 69.28 MB / 0.5714 GB, free: 45.53 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.4656/0.7438, allocations: 267.2 MB / 0.8323 GB, free: 19.05 MB / 0.573 GB Notification: Performance of NFInst.instExpressions: time 0.02689/0.7707, allocations: 33.59 MB / 0.8651 GB, free: 5.793 MB / 0.573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001305/0.7721, allocations: 33.41 kB / 0.8652 GB, free: 5.789 MB / 0.573 GB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.7735, allocations: 0.6187 MB / 0.8658 GB, free: 5.758 MB / 0.573 GB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.7778, allocations: 1.703 MB / 0.8674 GB, free: 5.68 MB / 0.573 GB Notification: Performance of NFTyping.typeClassSections: time 0.007883/0.7858, allocations: 3.121 MB / 0.8705 GB, free: 5.512 MB / 0.573 GB Notification: Performance of NFFlatten.flatten: time 0.002387/0.7882, allocations: 2.124 MB / 0.8726 GB, free: 5.289 MB / 0.573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005129/0.7887, allocations: 334.5 kB / 0.8729 GB, free: 5.176 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.7907, allocations: 1.118 MB / 0.874 GB, free: 4.953 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006055/0.7913, allocations: 0.6783 MB / 0.8746 GB, free: 4.824 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0001065/0.7914, allocations: 57.19 kB / 0.8747 GB, free: 4.824 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01082/0.8022, allocations: 6.144 MB / 0.8807 GB, free: 3.25 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004139/0.8027, allocations: 228.4 kB / 0.8809 GB, free: 3.203 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008347/0.8035, allocations: 0.6427 MB / 0.8815 GB, free: 3.121 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.00762/0.8112, allocations: 3.7 MB / 0.8852 GB, free: 1.672 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.8112, allocations: 3 kB / 0.8852 GB, free: 1.672 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.733e-06/0.8112, allocations: 0 / 0.8852 GB, free: 1.672 MB / 0.573 GB Notification: Performance of Transformations before backend: time 1.809e-05/0.8112, allocations: 0 / 0.8852 GB, free: 1.672 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 286 * Number of variables: 286 Notification: Performance of Generate backend data structure: time 0.003799/0.815, allocations: 1.988 MB / 0.8871 GB, free: 404 kB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.8151, allocations: 13.42 kB / 0.8871 GB, free: 400 kB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002306/0.8174, allocations: 351.7 kB / 0.8874 GB, free: 252 kB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.8184, allocations: 0.7144 MB / 0.8881 GB, free: 15.8 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.8188, allocations: 351.3 kB / 0.8885 GB, free: 15.54 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001652/0.8189, allocations: 122.2 kB / 0.8886 GB, free: 15.53 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002476/0.8214, allocations: 1.395 MB / 0.89 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.22e-05/0.8215, allocations: 2.625 kB / 0.89 GB, free: 14.72 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.8216, allocations: 44.31 kB / 0.89 GB, free: 14.71 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.8216, allocations: 28 kB / 0.89 GB, free: 14.68 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002398/0.824, allocations: 1.168 MB / 0.8912 GB, free: 13.84 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005868/0.8299, allocations: 4.928 MB / 0.896 GB, free: 9.559 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002707/0.8326, allocations: 1.374 MB / 0.8973 GB, free: 8.66 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001174/0.8338, allocations: 0.6726 MB / 0.898 GB, free: 8.199 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003162/0.837, allocations: 4.15 MB / 0.902 GB, free: 3.355 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.837, allocations: 42.38 kB / 0.9021 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=112): time 3.126e-06/0.837, allocations: 0 / 0.9021 GB, free: 3.312 MB / 0.5886 GB Notification: Performance of matching and sorting (n=112): time 0.008631/0.8457, allocations: 3.492 MB / 0.9055 GB, free: 264 kB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.8457, allocations: 60.41 kB / 0.9055 GB, free: 188 kB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006407/0.8464, allocations: 0.558 MB / 0.9061 GB, free: 15.74 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.867e-05/0.8465, allocations: 50.83 kB / 0.9061 GB, free: 15.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/0.8468, allocations: 473.6 kB / 0.9066 GB, free: 15.38 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.8471, allocations: 385.4 kB / 0.907 GB, free: 15.06 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.726e-05/0.8471, allocations: 22.62 kB / 0.907 GB, free: 15.05 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.8473, allocations: 344.5 kB / 0.9073 GB, free: 14.73 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.8484, allocations: 0.5317 MB / 0.9078 GB, free: 14.34 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00111/0.8495, allocations: 0.6198 MB / 0.9084 GB, free: 13.88 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002262/0.8518, allocations: 1.147 MB / 0.9096 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.8518, allocations: 0 / 0.9096 GB, free: 13.08 MB / 0.6042 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004848/0.8566, allocations: 2.109 MB / 0.9116 GB, free: 11.37 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.8567, allocations: 8 kB / 0.9116 GB, free: 11.36 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.006e-05/0.8567, allocations: 0 / 0.9116 GB, free: 11.36 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001245/0.858, allocations: 473.6 kB / 0.9121 GB, free: 10.95 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.8593, allocations: 291.9 kB / 0.9124 GB, free: 10.69 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008262/0.8676, allocations: 7.226 MB / 0.9194 GB, free: 3.59 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/0.8686, allocations: 157.9 kB / 0.9196 GB, free: 3.449 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.8688, allocations: 82.03 kB / 0.9196 GB, free: 3.379 MB / 0.6042 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 (106): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,1,88.9%), (3,1,88.9%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00042/0.8692, allocations: 237.9 kB / 0.9199 GB, free: 3.215 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001803/0.8694, allocations: 93.75 kB / 0.92 GB, free: 3.125 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006407/0.8758, allocations: 2.483 MB / 0.9224 GB, free: 1.129 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.629e-05/0.8758, allocations: 12 kB / 0.9224 GB, free: 1.117 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.8759, allocations: 7.938 kB / 0.9224 GB, free: 1.109 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.424e-05/0.8759, allocations: 3.984 kB / 0.9224 GB, free: 1.105 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007119/0.883, allocations: 3.674 MB / 0.926 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.883, allocations: 0 / 0.926 GB, free: 14.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.8846, allocations: 298.6 kB / 0.9263 GB, free: 14.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.8858, allocations: 480.4 kB / 0.9267 GB, free: 13.61 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001395/0.8859, allocations: 54.02 kB / 0.9268 GB, free: 13.57 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0084/0.8943, allocations: 7.225 MB / 0.9338 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.8944, allocations: 0 / 0.9338 GB, free: 6.473 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006282/0.9007, allocations: 2.856 MB / 0.9366 GB, free: 4.227 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004648/0.9011, allocations: 293.8 kB / 0.9369 GB, free: 3.973 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.9013, allocations: 24.92 kB / 0.9369 GB, free: 3.965 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008131/0.9021, allocations: 120.6 kB / 0.937 GB, free: 3.863 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.9024, allocations: 104.1 kB / 0.9371 GB, free: 3.777 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/0.9025, allocations: 85.83 kB / 0.9372 GB, free: 3.703 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0004006/0.9029, allocations: 389.2 kB / 0.9376 GB, free: 3.41 MB / 0.6198 GB Notification: Performance of sort global known variables: time 2.81e-07/0.9029, allocations: 0 / 0.9376 GB, free: 3.41 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002041/0.905, allocations: 0.8725 MB / 0.9385 GB, free: 2.625 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.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 (107): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (3,1,88.9%), (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.002453/0.9075, allocations: 1.287 MB / 0.9397 GB, free: 1.469 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004069/0.9115, allocations: 2.13 MB / 0.9418 GB, free: 15.64 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.9116, allocations: 3.938 kB / 0.9418 GB, free: 15.63 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.00273/0.9143, allocations: 1.576 MB / 0.9433 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.9155, allocations: 238.2 kB / 0.9436 GB, free: 14.07 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004831/0.9204, allocations: 3.34 MB / 0.9468 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006327/0.921, allocations: 1.093 MB / 0.9479 GB, free: 9.828 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.001564/0.9226, allocations: 310.9 kB / 0.9482 GB, free: 9.52 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000514/0.9231, allocations: 146.6 kB / 0.9483 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of SimCode: time 6.01e-07/0.9231, allocations: 0 / 0.9483 GB, free: 9.387 MB / 0.6355 GB Notification: Performance of Templates: time 0.04408/0.9672, allocations: 28.87 MB / 0.9765 GB, free: 12.71 MB / 0.6667 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches