Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007173/0.007173, allocations: 98.97 kB / 15.73 MB, free: 6.016 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.00164/0.00164, allocations: 201.3 kB / 16.68 MB, free: 5.93 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.33/1.33, 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.6882/0.6882, allocations: 91.2 MB / 381.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00253/0.00253, allocations: 83.86 kB / 0.5164 GB, free: 4.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.3668, allocations: 67.67 MB / 0.5825 GB, free: 13.66 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5498/0.9167, allocations: 214.3 MB / 0.7917 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01496/0.9317, allocations: 17.39 MB / 0.8087 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001169/0.9329, allocations: 42.88 kB / 0.8088 GB, free: 0.5703 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.9343, allocations: 0.621 MB / 0.8094 GB, free: 0.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00456/0.9389, allocations: 1.741 MB / 0.8111 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004179/0.9431, allocations: 1.682 MB / 0.8127 GB, free: 432 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002451/0.9456, allocations: 1.66 MB / 0.8143 GB, free: 376 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005888/0.9462, allocations: 288 kB / 0.8146 GB, free: 304 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002636/0.9488, allocations: 1.189 MB / 0.8158 GB, free: 164 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008452/0.9497, allocations: 0.6324 MB / 0.8164 GB, free: 0 / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001509/0.9499, allocations: 96.19 kB / 0.8165 GB, free: 0 / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007167/0.9571, allocations: 3.423 MB / 0.8198 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003406/0.9574, allocations: 257 kB / 0.8201 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000907/0.9583, allocations: 0.6063 MB / 0.8207 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.005108/0.9635, allocations: 2.358 MB / 0.823 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.9635, allocations: 1.062 kB / 0.823 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.733e-06/0.9635, allocations: 0 / 0.823 GB, free: 13.67 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 2.14e-05/0.9635, allocations: 0 / 0.823 GB, free: 13.67 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.00438/0.9679, allocations: 1.867 MB / 0.8248 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.968, allocations: 18.84 kB / 0.8248 GB, free: 12.29 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002267/0.9682, allocations: 144.2 kB / 0.8249 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003661/0.9719, allocations: 289.7 kB / 0.8252 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/0.9747, allocations: 0.8851 MB / 0.8261 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003667/0.9751, allocations: 198.9 kB / 0.8263 GB, free: 11.21 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000246/0.9754, allocations: 92.2 kB / 0.8264 GB, free: 11.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003241/0.9786, allocations: 1.011 MB / 0.8273 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.9787, allocations: 0 / 0.8273 GB, free: 10.57 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001485/0.9788, allocations: 44 kB / 0.8274 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.964e-05/0.9789, allocations: 22.66 kB / 0.8274 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00295/0.9818, allocations: 0.7853 MB / 0.8282 GB, free: 10.17 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.008463/0.9903, allocations: 4.111 MB / 0.8322 GB, free: 6.203 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/0.9935, allocations: 0.8679 MB / 0.833 GB, free: 5.336 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001322/0.9948, allocations: 435.3 kB / 0.8335 GB, free: 4.906 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001228/0.9961, allocations: 1.3 MB / 0.8347 GB, free: 3.32 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.808e-05/0.9961, allocations: 46.25 kB / 0.8348 GB, free: 3.27 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=80): time 4.409e-06/0.9962, allocations: 0 / 0.8348 GB, free: 3.27 MB / 0.5919 GB Notification: Performance of matching and sorting (n=80): time 0.008316/1.004, allocations: 1.927 MB / 0.8367 GB, free: 1.277 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/1.005, allocations: 66.59 kB / 0.8367 GB, free: 1.203 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001444/1.006, allocations: 0.7576 MB / 0.8375 GB, free: 432 kB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001173/1.006, allocations: 41.7 kB / 0.8375 GB, free: 384 kB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005338/1.007, allocations: 0.4969 MB / 0.838 GB, free: 15.87 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003386/1.007, allocations: 288.8 kB / 0.8383 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003934/1.007, allocations: 158.6 kB / 0.8384 GB, free: 15.43 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001576/1.008, allocations: 337.9 kB / 0.8387 GB, free: 15.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/1.009, allocations: 317.8 kB / 0.839 GB, free: 14.79 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/1.01, allocations: 395.1 kB / 0.8394 GB, free: 14.38 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002294/1.012, allocations: 0.6998 MB / 0.8401 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/1.012, allocations: 0 / 0.8401 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.004731/1.017, allocations: 1.238 MB / 0.8413 GB, free: 12.44 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/1.017, allocations: 10.53 kB / 0.8413 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/1.017, allocations: 0 / 0.8413 GB, free: 12.43 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/1.018, allocations: 250.4 kB / 0.8416 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/1.02, allocations: 199.5 kB / 0.8417 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009914/1.03, allocations: 5.237 MB / 0.8469 GB, free: 6.344 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/1.031, allocations: 91.48 kB / 0.8469 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000205/1.032, allocations: 55.97 kB / 0.847 GB, free: 6.199 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.0007125/1.032, allocations: 223.8 kB / 0.8472 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004242/1.033, allocations: 107.5 kB / 0.8473 GB, free: 5.875 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006678/1.039, allocations: 1.819 MB / 0.8491 GB, free: 4.051 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.1e-05/1.04, allocations: 8 kB / 0.8491 GB, free: 4.043 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.389e-05/1.04, allocations: 4 kB / 0.8491 GB, free: 4.039 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-05/1.04, allocations: 7.922 kB / 0.8491 GB, free: 4.031 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007713/1.047, allocations: 2.486 MB / 0.8515 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/1.047, allocations: 3.938 kB / 0.8515 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/1.048, allocations: 199.8 kB / 0.8517 GB, free: 1.293 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008242/1.049, allocations: 254.2 kB / 0.852 GB, free: 1.035 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/1.049, allocations: 35.97 kB / 0.852 GB, free: 1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005992/1.055, allocations: 5.23 MB / 0.8571 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.055, allocations: 2.625 kB / 0.8571 GB, free: 11.37 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004079/1.06, allocations: 1.726 MB / 0.8588 GB, free: 9.613 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004961/1.06, allocations: 256.1 kB / 0.859 GB, free: 9.344 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/1.06, allocations: 20 kB / 0.8591 GB, free: 9.324 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006152/1.061, allocations: 47.95 kB / 0.8591 GB, free: 9.277 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/1.061, allocations: 72.5 kB / 0.8592 GB, free: 9.207 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/1.061, allocations: 48.3 kB / 0.8592 GB, free: 9.16 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007556/1.062, allocations: 0.5382 MB / 0.8598 GB, free: 8.613 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.4e-07/1.062, allocations: 0 / 0.8598 GB, free: 8.613 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001583/1.064, allocations: 478.8 kB / 0.8602 GB, free: 8.145 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.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 (76): * Single equations (assignments): 73 * 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.00559/1.069, allocations: 2.746 MB / 0.8629 GB, free: 5.414 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.00321/1.072, allocations: 1.249 MB / 0.8641 GB, free: 4.137 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/1.072, allocations: 4.125 kB / 0.8641 GB, free: 4.133 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001976/1.074, allocations: 0.8975 MB / 0.865 GB, free: 3.215 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/1.076, allocations: 269.5 kB / 0.8652 GB, free: 2.961 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01675/1.093, allocations: 8.48 MB / 0.8735 GB, free: 10.36 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000653/1.093, allocations: 1.068 MB / 0.8746 GB, free: 9.262 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001407/1.095, allocations: 0.6281 MB / 0.8752 GB, free: 8.641 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007322/1.096, allocations: 0.507 MB / 0.8757 GB, free: 8.133 MB / 0.6387 GB Notification: Performance of SimCode: time 7.71e-07/1.096, allocations: 0 / 0.8757 GB, free: 8.133 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0655/1.161, allocations: 30.19 MB / 0.9052 GB, free: 10.22 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/13.1, allocations: 19.69 kB / 0.9052 GB, free: 10.2 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.csv --start-time 0 --stop-time 100 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches