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.001217/0.001217, allocations: 108.1 kB / 16.41 MB, free: 6.512 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.001116/0.001116, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7568/0.7568, allocations: 91.18 MB / 382.4 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 75.88 kB / 0.5175 GB, free: 4.109 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3821, allocations: 67.68 MB / 0.5836 GB, free: 13.99 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.5511/0.9332, allocations: 214.3 MB / 0.7929 GB, free: 0.9883 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01536/0.9487, allocations: 17.39 MB / 0.8099 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.9499, allocations: 45.59 kB / 0.8099 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.9514, allocations: 0.6175 MB / 0.8105 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004145/0.9556, allocations: 1.718 MB / 0.8122 GB, free: 452 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004045/0.9596, allocations: 1.661 MB / 0.8138 GB, free: 388 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001791/0.9614, allocations: 1.659 MB / 0.8154 GB, free: 332 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003921/0.9618, allocations: 288.1 kB / 0.8157 GB, free: 260 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001908/0.9638, allocations: 1.181 MB / 0.8169 GB, free: 120 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000643/0.9644, allocations: 0.6237 MB / 0.8175 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001323/0.9646, allocations: 95.38 kB / 0.8176 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006161/0.9707, allocations: 3.433 MB / 0.8209 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0002386/0.971, allocations: 246.6 kB / 0.8212 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006243/0.9716, allocations: 0.6062 MB / 0.8217 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.003988/0.9756, allocations: 2.354 MB / 0.824 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.9756, allocations: 0 / 0.824 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9756, allocations: 0 / 0.824 GB, free: 13.63 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.344e-05/0.9757, allocations: 0 / 0.824 GB, free: 13.63 MB / 0.5919 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.003083/0.9787, allocations: 1.81 MB / 0.8258 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.9788, allocations: 10.56 kB / 0.8258 GB, free: 12.32 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001771/0.9806, allocations: 286.4 kB / 0.8261 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.9821, allocations: 0.8804 MB / 0.827 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001978/0.9823, allocations: 201.7 kB / 0.8271 GB, free: 11.37 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001367/0.9825, allocations: 94.06 kB / 0.8272 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.9841, allocations: 1.009 MB / 0.8282 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.9841, allocations: 0 / 0.8282 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/0.9842, allocations: 36.81 kB / 0.8283 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.9843, allocations: 24.42 kB / 0.8283 GB, free: 10.69 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.9857, allocations: 0.7912 MB / 0.8291 GB, free: 10.32 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.004616/0.9904, allocations: 4.083 MB / 0.833 GB, free: 6.527 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.9921, allocations: 0.8601 MB / 0.8339 GB, free: 5.668 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007213/0.9928, allocations: 428.1 kB / 0.8343 GB, free: 5.246 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008156/0.9937, allocations: 1.299 MB / 0.8356 GB, free: 3.66 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.9937, allocations: 47.22 kB / 0.8356 GB, free: 3.605 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 1.903e-06/0.9937, allocations: 0 / 0.8356 GB, free: 3.605 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.004852/0.9986, allocations: 1.917 MB / 0.8375 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.9986, allocations: 60.06 kB / 0.8375 GB, free: 1.555 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008518/0.9995, allocations: 0.7615 MB / 0.8383 GB, free: 0.7695 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/0.9996, allocations: 37.7 kB / 0.8383 GB, free: 0.7266 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003078/0.9999, allocations: 0.4923 MB / 0.8388 GB, free: 232 kB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002056/1, allocations: 278.5 kB / 0.8391 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000224/1, allocations: 154.5 kB / 0.8392 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001145/1, allocations: 333.9 kB / 0.8395 GB, free: 15.46 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006379/1.001, allocations: 309.8 kB / 0.8398 GB, free: 15.16 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006885/1.002, allocations: 393.7 kB / 0.8402 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/1.003, allocations: 0.6926 MB / 0.8409 GB, free: 14.06 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/1.003, allocations: 3.938 kB / 0.8409 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002789/1.006, allocations: 1.229 MB / 0.8421 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/1.006, allocations: 8 kB / 0.8421 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/1.006, allocations: 0 / 0.8421 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007803/1.007, allocations: 246.4 kB / 0.8423 GB, free: 12.57 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008819/1.008, allocations: 206 kB / 0.8425 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005367/1.013, allocations: 5.223 MB / 0.8476 GB, free: 6.746 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006843/1.014, allocations: 87.23 kB / 0.8477 GB, free: 6.66 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.014, allocations: 51.98 kB / 0.8477 GB, free: 6.609 MB / 0.6075 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.0004072/1.014, allocations: 235.9 kB / 0.848 GB, free: 6.379 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001801/1.014, allocations: 102.7 kB / 0.8481 GB, free: 6.277 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003762/1.018, allocations: 1.824 MB / 0.8499 GB, free: 4.445 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.668e-06/1.018, allocations: 12 kB / 0.8499 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/1.018, allocations: 0 / 0.8499 GB, free: 4.434 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/1.018, allocations: 7.922 kB / 0.8499 GB, free: 4.426 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004498/1.023, allocations: 2.492 MB / 0.8523 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.429e-06/1.023, allocations: 0 / 0.8523 GB, free: 1.871 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008967/1.024, allocations: 195.6 kB / 0.8525 GB, free: 1.688 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006972/1.024, allocations: 264.8 kB / 0.8527 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.56e-05/1.024, allocations: 31.98 kB / 0.8528 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005266/1.03, allocations: 5.241 MB / 0.8579 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.03, allocations: 0 / 0.8579 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003452/1.033, allocations: 1.719 MB / 0.8596 GB, free: 10.01 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000377/1.034, allocations: 251.5 kB / 0.8598 GB, free: 9.742 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001144/1.034, allocations: 20 kB / 0.8598 GB, free: 9.723 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005322/1.034, allocations: 39.97 kB / 0.8599 GB, free: 9.684 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001367/1.034, allocations: 75.44 kB / 0.8599 GB, free: 9.609 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.882e-05/1.034, allocations: 55.91 kB / 0.86 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0006061/1.035, allocations: 0.5317 MB / 0.8605 GB, free: 9.012 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.5e-07/1.035, allocations: 0 / 0.8605 GB, free: 9.012 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001315/1.036, allocations: 475.1 kB / 0.861 GB, free: 8.547 MB / 0.6231 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.00101/1.037, allocations: 0.5761 MB / 0.8615 GB, free: 8.012 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00237/1.04, allocations: 1.25 MB / 0.8627 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/1.04, allocations: 0 / 0.8627 GB, free: 6.742 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001534/1.041, allocations: 0.9062 MB / 0.8636 GB, free: 5.816 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/1.043, allocations: 268.1 kB / 0.8639 GB, free: 5.566 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/1.046, allocations: 2.327 MB / 0.8662 GB, free: 3.207 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/1.047, allocations: 1.08 MB / 0.8672 GB, free: 2.102 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/1.047, allocations: 183.3 kB / 0.8674 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of SimCode: time 2.023e-06/1.047, allocations: 0 / 0.8674 GB, free: 1.922 MB / 0.6231 GB Notification: Performance of Templates: time 0.03138/1.079, allocations: 31.71 MB / 0.8984 GB, free: 2.242 MB / 0.6544 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches