Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",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.007866/0.007866, allocations: 101.8 kB / 15.73 MB, free: 6.062 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.001878/0.001878, allocations: 192 kB / 16.67 MB, free: 5.973 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.693/0.693, allocations: 89.46 MB / 380 MB, free: 8.648 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002232/0.002232, allocations: 83.86 kB / 0.5139 GB, free: 7.188 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3144, allocations: 67.29 MB / 0.5796 GB, free: 15.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.5661/0.8805, allocations: 234.7 MB / 0.8088 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02005/0.9006, allocations: 22.19 MB / 0.8305 GB, free: 14 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001409/0.902, allocations: 26.16 kB / 0.8305 GB, free: 14 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.9041, allocations: 0.7805 MB / 0.8313 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005058/0.9092, allocations: 1.95 MB / 0.8332 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005675/0.9148, allocations: 2.179 MB / 0.8353 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003668/0.9185, allocations: 2.016 MB / 0.8373 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007277/0.9193, allocations: 410.1 kB / 0.8377 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002694/0.922, allocations: 1.281 MB / 0.8389 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.923, allocations: 0.8003 MB / 0.8397 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001861/0.9232, allocations: 134.7 kB / 0.8398 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008576/0.9318, allocations: 4.083 MB / 0.8438 GB, free: 6.77 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.9323, allocations: 324.3 kB / 0.8441 GB, free: 6.465 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.00126/0.9336, allocations: 0.7643 MB / 0.8449 GB, free: 5.715 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007371/0.941, allocations: 2.827 MB / 0.8477 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.941, allocations: 4 kB / 0.8477 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.274e-06/0.941, allocations: 0 / 0.8477 GB, free: 3.082 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 3.241e-05/0.9411, allocations: 0 / 0.8477 GB, free: 3.082 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.00468/0.9458, allocations: 2.168 MB / 0.8498 GB, free: 0.875 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.363e-05/0.9458, allocations: 8.031 kB / 0.8498 GB, free: 0.8672 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002326/0.9461, allocations: 192.4 kB / 0.85 GB, free: 0.6719 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00304/0.9491, allocations: 402.7 kB / 0.8503 GB, free: 284 kB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001519/0.9507, allocations: 0.783 MB / 0.8511 GB, free: 15.5 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004248/0.9511, allocations: 348 kB / 0.8514 GB, free: 15.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002535/0.9514, allocations: 136 kB / 0.8516 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003156/0.9545, allocations: 1.445 MB / 0.853 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.9546, allocations: 3.938 kB / 0.853 GB, free: 13.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001296/0.9547, allocations: 52 kB / 0.853 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/0.9547, allocations: 32 kB / 0.8531 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002854/0.9576, allocations: 1.184 MB / 0.8542 GB, free: 12.21 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.008123/0.9658, allocations: 5.39 MB / 0.8595 GB, free: 6.5 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003127/0.9689, allocations: 1.313 MB / 0.8608 GB, free: 5.184 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/0.9706, allocations: 0.706 MB / 0.8615 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001513/0.9721, allocations: 1.795 MB / 0.8632 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.9721, allocations: 46.09 kB / 0.8633 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=113): time 4.037e-06/0.9722, allocations: 0 / 0.8633 GB, free: 2.23 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113): time 0.009442/0.9816, allocations: 3.026 MB / 0.8662 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.9817, allocations: 68.41 kB / 0.8663 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001032/0.9828, allocations: 0.6847 MB / 0.8669 GB, free: 14.35 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.9829, allocations: 49.64 kB / 0.867 GB, free: 14.3 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004265/0.9833, allocations: 0.5207 MB / 0.8675 GB, free: 13.77 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004104/0.9838, allocations: 417.2 kB / 0.8679 GB, free: 13.37 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003797/0.9842, allocations: 206.9 kB / 0.8681 GB, free: 13.16 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001666/0.9843, allocations: 341.9 kB / 0.8684 GB, free: 12.82 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001269/0.9856, allocations: 498.3 kB / 0.8689 GB, free: 12.33 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.987, allocations: 0.5904 MB / 0.8695 GB, free: 11.73 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002587/0.9896, allocations: 1.053 MB / 0.8705 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.9896, allocations: 4 kB / 0.8705 GB, free: 10.66 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005525/0.9952, allocations: 1.899 MB / 0.8724 GB, free: 8.758 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.9952, allocations: 8.062 kB / 0.8724 GB, free: 8.75 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.9952, allocations: 4 kB / 0.8724 GB, free: 8.746 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001431/0.9967, allocations: 414.5 kB / 0.8728 GB, free: 8.332 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.9982, allocations: 298 kB / 0.8731 GB, free: 8.051 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/1.009, allocations: 7.425 MB / 0.8803 GB, free: 104 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/1.01, allocations: 132.1 kB / 0.8804 GB, free: 15.98 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/1.01, allocations: 68.09 kB / 0.8805 GB, free: 15.91 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.0005536/1.011, allocations: 263.8 kB / 0.8807 GB, free: 15.65 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002392/1.011, allocations: 107.3 kB / 0.8808 GB, free: 15.55 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006808/1.018, allocations: 2.7 MB / 0.8835 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.748e-05/1.018, allocations: 12 kB / 0.8835 GB, free: 12.83 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.018, allocations: 8 kB / 0.8835 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/1.018, allocations: 3.984 kB / 0.8835 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008377/1.026, allocations: 3.532 MB / 0.887 GB, free: 9.23 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.026, allocations: 0 / 0.887 GB, free: 9.23 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001555/1.028, allocations: 290 kB / 0.8872 GB, free: 8.957 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001365/1.029, allocations: 421.6 kB / 0.8876 GB, free: 8.535 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/1.029, allocations: 43.97 kB / 0.8877 GB, free: 8.492 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/1.04, allocations: 7.438 MB / 0.8949 GB, free: 0.5352 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.04, allocations: 4.031 kB / 0.8949 GB, free: 0.5312 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007138/1.047, allocations: 2.579 MB / 0.8975 GB, free: 13.92 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006219/1.048, allocations: 307.9 kB / 0.8978 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002346/1.048, allocations: 24 kB / 0.8978 GB, free: 13.57 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000892/1.049, allocations: 70.56 kB / 0.8978 GB, free: 13.51 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/1.049, allocations: 96.86 kB / 0.8979 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/1.049, allocations: 75.91 kB / 0.898 GB, free: 13.34 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007265/1.05, allocations: 495 kB / 0.8985 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.31e-07/1.05, allocations: 0 / 0.8985 GB, free: 12.86 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001848/1.052, allocations: 0.5962 MB / 0.8991 GB, free: 12.26 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.008636/1.061, allocations: 3.725 MB / 0.9027 GB, free: 8.574 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.005059/1.066, allocations: 1.897 MB / 0.9046 GB, free: 6.637 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/1.066, allocations: 0 / 0.9046 GB, free: 6.637 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.003316/1.069, allocations: 1.38 MB / 0.9059 GB, free: 5.23 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/1.071, allocations: 290.5 kB / 0.9062 GB, free: 4.965 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/1.095, allocations: 10.37 MB / 0.9163 GB, free: 10.46 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/1.096, allocations: 1.124 MB / 0.9174 GB, free: 9.301 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001908/1.098, allocations: 0.8135 MB / 0.9182 GB, free: 8.508 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/1.099, allocations: 0.5695 MB / 0.9188 GB, free: 7.938 MB / 0.67 GB Notification: Performance of SimCode: time 9.41e-07/1.099, allocations: 0 / 0.9188 GB, free: 7.938 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08509/1.184, allocations: 35.77 MB / 0.9537 GB, free: 4.449 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.05/13.24, allocations: 15.94 kB / 0.9537 GB, free: 4.434 MB / 0.7012 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_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_serial.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches