Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.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.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|crossFlowNTU.h_out_A|crossFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005601/0.005601, allocations: 100.5 kB / 15.73 MB, free: 6.039 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.001275/0.001275, allocations: 186.7 kB / 16.67 MB, free: 5.969 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6788/0.6788, allocations: 91.2 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 75.88 kB / 0.5168 GB, free: 9.023 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1418, allocations: 67.7 MB / 0.5829 GB, free: 5.238 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5488/0.6907, allocations: 214.3 MB / 0.7922 GB, free: 1.367 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.02173/0.7124, allocations: 17.38 MB / 0.8092 GB, free: 15.93 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001541/0.714, allocations: 43.69 kB / 0.8092 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001932/0.716, allocations: 0.6209 MB / 0.8099 GB, free: 15.26 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006083/0.7222, allocations: 1.716 MB / 0.8115 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005886/0.7281, allocations: 1.667 MB / 0.8132 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003118/0.7312, allocations: 1.658 MB / 0.8148 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005289/0.7318, allocations: 283.5 kB / 0.815 GB, free: 9.914 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003208/0.735, allocations: 1.179 MB / 0.8162 GB, free: 8.73 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009129/0.7359, allocations: 0.6336 MB / 0.8168 GB, free: 8.094 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.7361, allocations: 96 kB / 0.8169 GB, free: 8 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007564/0.7436, allocations: 3.428 MB / 0.8203 GB, free: 4.566 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003496/0.744, allocations: 258.9 kB / 0.8205 GB, free: 4.312 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.7452, allocations: 0.5982 MB / 0.8211 GB, free: 3.711 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.006738/0.7519, allocations: 2.345 MB / 0.8234 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.752, allocations: 0 / 0.8234 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.774e-06/0.752, allocations: 0 / 0.8234 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.965e-05/0.752, allocations: 0 / 0.8234 GB, free: 1.359 MB / 0.6544 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.005134/0.7572, allocations: 1.819 MB / 0.8252 GB, free: 15.48 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.7572, allocations: 12.03 kB / 0.8252 GB, free: 15.47 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002225/0.7595, allocations: 278.1 kB / 0.8254 GB, free: 15.2 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002006/0.7615, allocations: 0.878 MB / 0.8263 GB, free: 14.28 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002703/0.7618, allocations: 204.7 kB / 0.8265 GB, free: 14.05 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002242/0.762, allocations: 91.91 kB / 0.8266 GB, free: 13.96 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/0.7644, allocations: 1.009 MB / 0.8276 GB, free: 12.93 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.339e-05/0.7644, allocations: 3.938 kB / 0.8276 GB, free: 12.92 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.7645, allocations: 36 kB / 0.8276 GB, free: 12.89 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.165e-05/0.7646, allocations: 28 kB / 0.8276 GB, free: 12.86 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001768/0.7663, allocations: 0.7846 MB / 0.8284 GB, free: 12.08 MB / 0.67 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.005973/0.7723, allocations: 4.081 MB / 0.8324 GB, free: 7.652 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0021/0.7744, allocations: 0.8589 MB / 0.8332 GB, free: 6.789 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008581/0.7753, allocations: 435.3 kB / 0.8336 GB, free: 6.359 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009979/0.7763, allocations: 1.303 MB / 0.8349 GB, free: 4.762 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.669e-05/0.7764, allocations: 39.22 kB / 0.8349 GB, free: 4.715 MB / 0.67 GB Notification: Performance of pre-optimization done (n=80): time 2.634e-06/0.7764, allocations: 0 / 0.8349 GB, free: 4.715 MB / 0.67 GB Notification: Performance of matching and sorting (n=80): time 0.005772/0.7822, allocations: 1.915 MB / 0.8368 GB, free: 2.727 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.7822, allocations: 60.06 kB / 0.8369 GB, free: 2.656 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001118/0.7834, allocations: 0.7654 MB / 0.8376 GB, free: 1.867 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.741e-05/0.7835, allocations: 45.7 kB / 0.8377 GB, free: 1.816 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004353/0.7839, allocations: 496.1 kB / 0.8381 GB, free: 1.324 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002667/0.7842, allocations: 279.9 kB / 0.8384 GB, free: 1.043 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002618/0.7844, allocations: 150.5 kB / 0.8385 GB, free: 0.8906 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001799/0.7846, allocations: 341.9 kB / 0.8389 GB, free: 0.5508 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007795/0.7854, allocations: 309.8 kB / 0.8392 GB, free: 252 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2877/1.073, allocations: 382 kB / 0.8395 GB, free: 228.3 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00164/1.075, allocations: 0.6909 MB / 0.8402 GB, free: 228.2 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.648e-06/1.075, allocations: 0.875 kB / 0.8402 GB, free: 228.2 MB / 0.67 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003393/1.078, allocations: 1.226 MB / 0.8414 GB, free: 228.1 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.183e-05/1.078, allocations: 8.031 kB / 0.8414 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/1.078, allocations: 1.578 kB / 0.8414 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009179/1.079, allocations: 256.6 kB / 0.8417 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009878/1.08, allocations: 204.8 kB / 0.8418 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005366/1.086, allocations: 5.223 MB / 0.8469 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007005/1.086, allocations: 84.66 kB / 0.847 GB, free: 223.8 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/1.086, allocations: 51.28 kB / 0.8471 GB, free: 223.8 MB / 0.67 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.0003839/1.087, allocations: 226.8 kB / 0.8473 GB, free: 223.6 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/1.087, allocations: 106.6 kB / 0.8474 GB, free: 223.6 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004113/1.091, allocations: 1.829 MB / 0.8492 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/1.091, allocations: 14.72 kB / 0.8492 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/1.091, allocations: 7.562 kB / 0.8492 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/1.091, allocations: 3.234 kB / 0.8492 GB, free: 223 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004803/1.096, allocations: 2.483 MB / 0.8516 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/1.096, allocations: 3.938 kB / 0.8516 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00099/1.097, allocations: 207 kB / 0.8518 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008038/1.098, allocations: 257.8 kB / 0.8521 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.97e-05/1.098, allocations: 34.31 kB / 0.8521 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004989/1.103, allocations: 5.225 MB / 0.8572 GB, free: 217.2 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.103, allocations: 10.5 kB / 0.8572 GB, free: 217.2 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003786/1.107, allocations: 1.716 MB / 0.8589 GB, free: 216.5 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004284/1.107, allocations: 252.3 kB / 0.8591 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001141/1.107, allocations: 24.66 kB / 0.8592 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005478/1.108, allocations: 39.38 kB / 0.8592 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001526/1.108, allocations: 81.34 kB / 0.8593 GB, free: 216.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.211e-05/1.108, allocations: 46.88 kB / 0.8593 GB, free: 216.3 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006385/1.109, allocations: 0.5371 MB / 0.8598 GB, free: 216 MB / 0.67 GB Notification: Performance of sort global known variables: time 3.61e-07/1.109, allocations: 0 / 0.8598 GB, free: 216 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001399/1.11, allocations: 471.9 kB / 0.8603 GB, free: 215.9 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (crossFlowNTU.h_out_A,crossFlowNTU.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 (78): * Single equations (assignments): 75 * 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.001097/1.111, allocations: 0.574 MB / 0.8609 GB, free: 215.8 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002863/1.114, allocations: 1.243 MB / 0.8621 GB, free: 215.2 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/1.114, allocations: 0.6562 kB / 0.8621 GB, free: 215.2 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001928/1.116, allocations: 0.912 MB / 0.863 GB, free: 214.7 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001328/1.117, allocations: 271.1 kB / 0.8632 GB, free: 214.6 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004647/1.122, allocations: 2.29 MB / 0.8655 GB, free: 213.4 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006682/1.123, allocations: 1.068 MB / 0.8665 GB, free: 212.6 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001322/1.124, allocations: 0.6384 MB / 0.8671 GB, free: 212.5 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004496/1.125, allocations: 145.5 kB / 0.8673 GB, free: 212.5 MB / 0.67 GB Notification: Performance of SimCode: time 9.81e-07/1.125, allocations: 0 / 0.8673 GB, free: 212.5 MB / 0.67 GB Notification: Performance of Templates: time 0.03605/1.161, allocations: 20.06 MB / 0.8869 GB, free: 204.8 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches