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.007716/0.007716, allocations: 101 kB / 15.73 MB, free: 6.059 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.001883/0.001883, allocations: 194.5 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7319/0.7319, allocations: 93.7 MB / 384.2 MB, free: 5.238 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 79.86 kB / 0.5204 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3025, allocations: 68.25 MB / 0.5871 GB, free: 10.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.562/0.8645, allocations: 235 MB / 0.8166 GB, free: 288 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02209/0.8867, allocations: 22.32 MB / 0.8384 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001544/0.8882, allocations: 66.5 kB / 0.8384 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.8903, allocations: 0.7962 MB / 0.8392 GB, free: 11.39 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.8963, allocations: 2.033 MB / 0.8412 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006231/0.9026, allocations: 2.176 MB / 0.8433 GB, free: 9.551 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003584/0.9062, allocations: 2.247 MB / 0.8455 GB, free: 8.711 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008128/0.907, allocations: 424.2 kB / 0.8459 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003688/0.9107, allocations: 1.386 MB / 0.8473 GB, free: 7.176 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001261/0.912, allocations: 0.839 MB / 0.8481 GB, free: 6.379 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002384/0.9122, allocations: 139.9 kB / 0.8482 GB, free: 6.242 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008544/0.9208, allocations: 4.082 MB / 0.8522 GB, free: 2.434 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0005118/0.9213, allocations: 346.1 kB / 0.8525 GB, free: 2.113 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001303/0.9226, allocations: 0.8229 MB / 0.8533 GB, free: 1.301 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.006638/0.9293, allocations: 3.034 MB / 0.8563 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.9293, allocations: 0 / 0.8563 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9293, allocations: 4 kB / 0.8563 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.562e-05/0.9294, allocations: 4 kB / 0.8563 GB, free: 14.47 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.004635/0.934, allocations: 2.393 MB / 0.8586 GB, free: 12.06 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.59e-05/0.9341, allocations: 12.03 kB / 0.8587 GB, free: 12.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003232/0.9373, allocations: 423.7 kB / 0.8591 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.9394, allocations: 1.127 MB / 0.8602 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004434/0.9399, allocations: 360 kB / 0.8605 GB, free: 10.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002515/0.9402, allocations: 131.9 kB / 0.8606 GB, free: 9.984 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003128/0.9433, allocations: 1.448 MB / 0.862 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.637e-05/0.9434, allocations: 0 / 0.862 GB, free: 8.488 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.9435, allocations: 56 kB / 0.8621 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.055e-05/0.9435, allocations: 28 kB / 0.8621 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002837/0.9464, allocations: 1.192 MB / 0.8633 GB, free: 7.215 MB / 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.007501/0.9539, allocations: 5.464 MB / 0.8686 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003057/0.957, allocations: 1.316 MB / 0.8699 GB, free: 112 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.9586, allocations: 0.7177 MB / 0.8706 GB, free: 15.39 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001275/0.9599, allocations: 1.792 MB / 0.8724 GB, free: 13.21 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.629e-05/0.96, allocations: 43.56 kB / 0.8724 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 3.036e-06/0.96, allocations: 0 / 0.8724 GB, free: 13.15 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.0094/0.9694, allocations: 3.055 MB / 0.8754 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.9694, allocations: 60.41 kB / 0.8754 GB, free: 9.953 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001137/0.9706, allocations: 0.9173 MB / 0.8763 GB, free: 9.023 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.9707, allocations: 45.7 kB / 0.8764 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/0.9711, allocations: 0.6389 MB / 0.877 GB, free: 8.328 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003172/0.9715, allocations: 408.8 kB / 0.8774 GB, free: 7.934 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003518/0.9718, allocations: 214.9 kB / 0.8776 GB, free: 7.719 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.9719, allocations: 345.9 kB / 0.8779 GB, free: 7.375 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.9732, allocations: 498.3 kB / 0.8784 GB, free: 6.887 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.9746, allocations: 0.5865 MB / 0.879 GB, free: 6.285 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/0.9772, allocations: 1.053 MB / 0.88 GB, free: 5.219 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.9772, allocations: 4 kB / 0.88 GB, free: 5.215 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005734/0.9829, allocations: 1.923 MB / 0.8819 GB, free: 3.289 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.983, allocations: 15.92 kB / 0.8819 GB, free: 3.273 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.983, allocations: 0 / 0.8819 GB, free: 3.273 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/0.9845, allocations: 409.5 kB / 0.8823 GB, free: 2.863 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001582/0.9861, allocations: 302 kB / 0.8826 GB, free: 2.578 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.9964, allocations: 7.433 MB / 0.8898 GB, free: 10.63 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001136/0.9976, allocations: 131.3 kB / 0.89 GB, free: 10.5 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002492/0.9978, allocations: 67.97 kB / 0.89 GB, free: 10.43 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.0006785/0.9985, allocations: 275.8 kB / 0.8903 GB, free: 10.16 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003975/0.9989, allocations: 135.1 kB / 0.8904 GB, free: 10.03 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007649/1.007, allocations: 2.707 MB / 0.8931 GB, free: 7.316 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/1.007, allocations: 12 kB / 0.8931 GB, free: 7.305 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.681e-05/1.007, allocations: 4 kB / 0.8931 GB, free: 7.301 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/1.007, allocations: 15.84 kB / 0.8931 GB, free: 7.285 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008778/1.015, allocations: 3.596 MB / 0.8966 GB, free: 3.637 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/1.015, allocations: 3.984 kB / 0.8966 GB, free: 3.633 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/1.017, allocations: 290.2 kB / 0.8969 GB, free: 3.359 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/1.019, allocations: 421.5 kB / 0.8973 GB, free: 2.938 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001891/1.019, allocations: 47.91 kB / 0.8973 GB, free: 2.891 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/1.029, allocations: 7.427 MB / 0.9046 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/1.029, allocations: 8.031 kB / 0.9046 GB, free: 10.93 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00734/1.036, allocations: 2.619 MB / 0.9072 GB, free: 8.289 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007911/1.037, allocations: 319.7 kB / 0.9075 GB, free: 7.957 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002944/1.038, allocations: 27.98 kB / 0.9075 GB, free: 7.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00104/1.039, allocations: 75.88 kB / 0.9076 GB, free: 7.855 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002542/1.039, allocations: 96.86 kB / 0.9076 GB, free: 7.762 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001521/1.039, allocations: 67.97 kB / 0.9077 GB, free: 7.695 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000939/1.04, allocations: 0.6298 MB / 0.9083 GB, free: 7.062 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.8e-07/1.04, allocations: 0 / 0.9083 GB, free: 7.062 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001866/1.042, allocations: 0.6079 MB / 0.9089 GB, free: 6.453 MB / 0.6544 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.001444/1.043, allocations: 0.6921 MB / 0.9096 GB, free: 5.812 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.004532/1.048, allocations: 1.891 MB / 0.9114 GB, free: 3.883 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.048, allocations: 4.125 kB / 0.9114 GB, free: 3.879 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003007/1.051, allocations: 1.373 MB / 0.9128 GB, free: 2.484 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/1.053, allocations: 306.9 kB / 0.9131 GB, free: 2.191 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006104/1.059, allocations: 3.11 MB / 0.9161 GB, free: 15.04 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000915/1.06, allocations: 1.198 MB / 0.9173 GB, free: 13.81 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001829/1.061, allocations: 0.8433 MB / 0.9181 GB, free: 12.99 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006037/1.062, allocations: 193.8 kB / 0.9183 GB, free: 12.81 MB / 0.67 GB Notification: Performance of SimCode: time 6.91e-07/1.062, allocations: 0 / 0.9183 GB, free: 12.81 MB / 0.67 GB Notification: Performance of Templates: time 0.04409/1.106, allocations: 25.31 MB / 0.943 GB, free: 3.738 MB / 0.6856 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches