Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_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_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 110.5 kB / 16.41 MB, free: 6.508 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.001305/0.001305, allocations: 181.2 kB / 17.34 MB, free: 5.738 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.453/1.453, 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.7676/0.7676, allocations: 97.64 MB / 388.8 MB, free: 1.445 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002396/0.002396, allocations: 82.23 kB / 0.5268 GB, free: 38.93 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1125, allocations: 69.25 MB / 0.5944 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5546/0.6671, allocations: 235.6 MB / 0.8245 GB, free: 0.7461 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01975/0.6869, allocations: 22.37 MB / 0.8463 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.6884, allocations: 62.84 kB / 0.8464 GB, free: 15.61 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001967/0.6904, allocations: 0.7975 MB / 0.8472 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005091/0.6955, allocations: 2.07 MB / 0.8492 GB, free: 15.2 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.005615/0.7011, allocations: 2.193 MB / 0.8513 GB, free: 14.4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003129/0.7042, allocations: 2.246 MB / 0.8535 GB, free: 13.56 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005857/0.7048, allocations: 262.6 kB / 0.8538 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002676/0.7075, allocations: 1.43 MB / 0.8552 GB, free: 12.72 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.7085, allocations: 0.837 MB / 0.856 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.7087, allocations: 132 kB / 0.8561 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007805/0.7165, allocations: 4.089 MB / 0.8601 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004389/0.717, allocations: 345.4 kB / 0.8604 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.7181, allocations: 0.8228 MB / 0.8612 GB, free: 9.75 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.006791/0.7249, allocations: 3.034 MB / 0.8642 GB, free: 7.344 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.7249, allocations: 4 kB / 0.8642 GB, free: 7.34 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.684e-06/0.7249, allocations: 3.938 kB / 0.8642 GB, free: 7.336 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.442e-05/0.7249, allocations: 0 / 0.8642 GB, free: 7.336 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.004967/0.7299, allocations: 2.399 MB / 0.8665 GB, free: 4.922 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.7299, allocations: 8.031 kB / 0.8666 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003271/0.7332, allocations: 422.5 kB / 0.867 GB, free: 4.5 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002282/0.7355, allocations: 1.132 MB / 0.8681 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004256/0.7359, allocations: 352 kB / 0.8684 GB, free: 2.98 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000254/0.7362, allocations: 131.9 kB / 0.8685 GB, free: 2.852 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003107/0.7393, allocations: 1.447 MB / 0.8699 GB, free: 1.359 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.694e-05/0.7393, allocations: 8 kB / 0.8699 GB, free: 1.352 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001367/0.7394, allocations: 48 kB / 0.87 GB, free: 1.305 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.749e-05/0.7394, allocations: 32 kB / 0.87 GB, free: 1.273 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002873/0.7423, allocations: 1.186 MB / 0.8712 GB, free: 88 kB / 0.6075 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.008213/0.7505, allocations: 5.459 MB / 0.8765 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003234/0.7538, allocations: 1.255 MB / 0.8777 GB, free: 9.039 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.7554, allocations: 0.6622 MB / 0.8784 GB, free: 8.379 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001508/0.7569, allocations: 1.792 MB / 0.8801 GB, free: 6.195 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.7569, allocations: 42.66 kB / 0.8802 GB, free: 6.145 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 2.986e-06/0.7569, allocations: 0 / 0.8802 GB, free: 6.145 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.009666/0.7666, allocations: 3.053 MB / 0.8832 GB, free: 3.016 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.7667, allocations: 64.41 kB / 0.8832 GB, free: 2.941 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.768, allocations: 0.9134 MB / 0.8841 GB, free: 2.016 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001468/0.7681, allocations: 45.7 kB / 0.8841 GB, free: 1.965 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005732/0.7687, allocations: 0.6351 MB / 0.8848 GB, free: 1.324 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004113/0.7691, allocations: 414.2 kB / 0.8852 GB, free: 0.9258 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/0.7695, allocations: 206.9 kB / 0.8854 GB, free: 0.7148 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001814/0.7697, allocations: 349.9 kB / 0.8857 GB, free: 376 kB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/0.771, allocations: 498.3 kB / 0.8862 GB, free: 15.88 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001443/0.7724, allocations: 0.5801 MB / 0.8867 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.7751, allocations: 1.057 MB / 0.8878 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.658e-06/0.7751, allocations: 0 / 0.8878 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005794/0.7809, allocations: 1.916 MB / 0.8896 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.7809, allocations: 8 kB / 0.8896 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.7809, allocations: 0 / 0.8896 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.7823, allocations: 415.3 kB / 0.89 GB, free: 11.87 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001623/0.784, allocations: 294.2 kB / 0.8903 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/0.7948, allocations: 7.425 MB / 0.8976 GB, free: 3.652 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.796, allocations: 135.9 kB / 0.8977 GB, free: 3.52 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000171/0.7961, allocations: 71.97 kB / 0.8978 GB, free: 3.449 MB / 0.6387 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0005904/0.7967, allocations: 264 kB / 0.898 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002946/0.797, allocations: 135.1 kB / 0.8982 GB, free: 3.059 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007198/0.8042, allocations: 2.723 MB / 0.9008 GB, free: 356 kB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.8042, allocations: 12 kB / 0.9008 GB, free: 344 kB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.088e-06/0.8042, allocations: 4 kB / 0.9008 GB, free: 340 kB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.8043, allocations: 7.969 kB / 0.9008 GB, free: 332 kB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008449/0.8127, allocations: 3.592 MB / 0.9043 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.8127, allocations: 4 kB / 0.9043 GB, free: 12.67 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001701/0.8144, allocations: 294.7 kB / 0.9046 GB, free: 12.39 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00136/0.8158, allocations: 423 kB / 0.905 GB, free: 11.97 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.8159, allocations: 51.97 kB / 0.9051 GB, free: 11.92 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.8267, allocations: 7.419 MB / 0.9123 GB, free: 3.977 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.8267, allocations: 0 / 0.9123 GB, free: 3.977 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007122/0.8338, allocations: 2.601 MB / 0.9149 GB, free: 1.348 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006115/0.8344, allocations: 323.7 kB / 0.9152 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001742/0.8346, allocations: 28 kB / 0.9152 GB, free: 0.9805 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008816/0.8355, allocations: 71.92 kB / 0.9153 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.8357, allocations: 99.34 kB / 0.9154 GB, free: 0.8164 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001562/0.8359, allocations: 71.97 kB / 0.9154 GB, free: 0.7461 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009244/0.8368, allocations: 0.6273 MB / 0.916 GB, free: 116 kB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8368, allocations: 0 / 0.916 GB, free: 116 kB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001823/0.8386, allocations: 0.6079 MB / 0.9166 GB, free: 15.5 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.001381/0.84, allocations: 0.6949 MB / 0.9173 GB, free: 14.86 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.004682/0.8447, allocations: 1.834 MB / 0.9191 GB, free: 12.99 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.8447, allocations: 4.125 kB / 0.9191 GB, free: 12.99 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.003168/0.8479, allocations: 1.329 MB / 0.9204 GB, free: 11.63 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001576/0.8494, allocations: 324.4 kB / 0.9207 GB, free: 11.34 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/0.8555, allocations: 3.102 MB / 0.9237 GB, free: 8.199 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000947/0.8565, allocations: 1.206 MB / 0.9249 GB, free: 6.961 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001838/0.8583, allocations: 0.8494 MB / 0.9258 GB, free: 6.137 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005784/0.8589, allocations: 195.3 kB / 0.9259 GB, free: 5.945 MB / 0.67 GB Notification: Performance of SimCode: time 7.61e-07/0.8589, allocations: 0 / 0.9259 GB, free: 5.945 MB / 0.67 GB Notification: Performance of Templates: time 0.04665/0.9055, allocations: 25.48 MB / 0.9508 GB, free: 12.7 MB / 0.7012 GB make -j1 -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & ./ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -s gbode -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches