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: "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CrossFlowNTU",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.001785/0.001785, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002698/0.002698, allocations: 197.3 kB / 16.53 MB, free: 6.672 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.583/1.583, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8685/0.8685, allocations: 91.2 MB / 381.6 MB, free: 9.414 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 77.59 kB / 460.4 MB, free: 23.11 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1839/0.1858, allocations: 67.69 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU): time 0.7322/0.918, allocations: 214.3 MB / 0.725 GB, free: 8.945 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0228/0.9409, allocations: 17.38 MB / 0.742 GB, free: 7.504 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00156/0.9425, allocations: 43.69 kB / 0.742 GB, free: 7.461 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001868/0.9444, allocations: 0.6209 MB / 0.7426 GB, free: 6.836 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005448/0.9499, allocations: 1.714 MB / 0.7443 GB, free: 5.113 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00563/0.9555, allocations: 1.663 MB / 0.7459 GB, free: 3.445 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003314/0.9589, allocations: 1.654 MB / 0.7476 GB, free: 1.785 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007775/0.9596, allocations: 292.9 kB / 0.7478 GB, free: 1.488 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002996/0.9626, allocations: 1.16 MB / 0.749 GB, free: 332 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.9637, allocations: 0.6336 MB / 0.7496 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.9639, allocations: 92 kB / 0.7497 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/0.9741, allocations: 3.377 MB / 0.753 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004975/0.9747, allocations: 254.9 kB / 0.7532 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.9759, allocations: 0.6099 MB / 0.7538 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007881/0.9838, allocations: 2.306 MB / 0.7561 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 9.417e-06/0.9839, allocations: 0 / 0.7561 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.607e-06/0.9839, allocations: 0 / 0.7561 GB, free: 9.043 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 2.902e-05/0.9839, allocations: 4 kB / 0.7561 GB, free: 9.039 MB / 0.5606 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.004458/0.9884, allocations: 1.804 MB / 0.7578 GB, free: 7.18 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.9884, allocations: 12.03 kB / 0.7578 GB, free: 7.168 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000197/0.9887, allocations: 148.5 kB / 0.758 GB, free: 7.016 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002287/0.991, allocations: 290 kB / 0.7583 GB, free: 6.73 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001676/0.9926, allocations: 0.8194 MB / 0.7591 GB, free: 5.867 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/0.9929, allocations: 196.7 kB / 0.7592 GB, free: 5.652 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001635/0.9931, allocations: 95.98 kB / 0.7593 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002215/0.9953, allocations: 1.005 MB / 0.7603 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.078e-05/0.9953, allocations: 0 / 0.7603 GB, free: 4.523 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.83e-05/0.9954, allocations: 36 kB / 0.7603 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.965e-05/0.9955, allocations: 24 kB / 0.7604 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00184/0.9973, allocations: 0.7768 MB / 0.7611 GB, free: 3.691 MB / 0.5606 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.006366/1.004, allocations: 4.113 MB / 0.7651 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/1.006, allocations: 0.8717 MB / 0.766 GB, free: 14.35 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008969/1.007, allocations: 423.3 kB / 0.7664 GB, free: 13.94 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001318/1.008, allocations: 1.303 MB / 0.7677 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.75e-05/1.008, allocations: 47.22 kB / 0.7677 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 2.615e-06/1.008, allocations: 3.938 kB / 0.7677 GB, free: 12.28 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.005915/1.014, allocations: 1.911 MB / 0.7696 GB, free: 10.3 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.019e-05/1.014, allocations: 64.06 kB / 0.7696 GB, free: 10.22 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/1.015, allocations: 0.7653 MB / 0.7704 GB, free: 9.434 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001252/1.016, allocations: 41.7 kB / 0.7704 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003879/1.016, allocations: 0.4883 MB / 0.7709 GB, free: 8.891 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/1.016, allocations: 276 kB / 0.7712 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/1.016, allocations: 150.6 kB / 0.7713 GB, free: 8.465 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000158/1.017, allocations: 341.9 kB / 0.7716 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008295/1.017, allocations: 305.8 kB / 0.7719 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008893/1.018, allocations: 388.4 kB / 0.7723 GB, free: 7.43 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/1.02, allocations: 0.694 MB / 0.773 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/1.02, allocations: 0 / 0.773 GB, free: 6.723 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.0038/1.024, allocations: 1.228 MB / 0.7742 GB, free: 5.477 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.439e-05/1.024, allocations: 4 kB / 0.7742 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/1.024, allocations: 0 / 0.7742 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/1.025, allocations: 250.4 kB / 0.7744 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/1.026, allocations: 203.8 kB / 0.7746 GB, free: 5.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007688/1.034, allocations: 5.231 MB / 0.7797 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001028/1.035, allocations: 87.28 kB / 0.7798 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001501/1.035, allocations: 55.98 kB / 0.7799 GB, free: 15.22 MB / 0.5919 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.0008264/1.036, allocations: 229.6 kB / 0.7801 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/1.036, allocations: 98.78 kB / 0.7802 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004784/1.041, allocations: 1.83 MB / 0.782 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/1.041, allocations: 8 kB / 0.782 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-06/1.041, allocations: 4 kB / 0.782 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/1.041, allocations: 7.922 kB / 0.782 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00531/1.046, allocations: 2.484 MB / 0.7844 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/1.046, allocations: 7.938 kB / 0.7844 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009996/1.047, allocations: 191.8 kB / 0.7846 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008301/1.048, allocations: 258.5 kB / 0.7848 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.407e-05/1.048, allocations: 39.97 kB / 0.7849 GB, free: 9.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007063/1.055, allocations: 5.234 MB / 0.79 GB, free: 4.281 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/1.055, allocations: 4.031 kB / 0.79 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004393/1.06, allocations: 1.716 MB / 0.7917 GB, free: 2.52 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006554/1.06, allocations: 251.6 kB / 0.7919 GB, free: 2.254 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/1.061, allocations: 19.94 kB / 0.7919 GB, free: 2.234 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007659/1.061, allocations: 44.09 kB / 0.792 GB, free: 2.191 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/1.062, allocations: 76.83 kB / 0.7921 GB, free: 2.117 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/1.062, allocations: 47.98 kB / 0.7921 GB, free: 2.07 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001043/1.063, allocations: 0.5395 MB / 0.7926 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.71e-07/1.063, allocations: 0 / 0.7926 GB, free: 1.52 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001675/1.065, allocations: 471.1 kB / 0.7931 GB, free: 1.059 MB / 0.5919 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.006319/1.071, allocations: 2.754 MB / 0.7958 GB, free: 14.26 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003805/1.075, allocations: 1.278 MB / 0.797 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/1.075, allocations: 0 / 0.797 GB, free: 12.95 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002112/1.077, allocations: 0.908 MB / 0.7979 GB, free: 12 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002452/1.079, allocations: 260.5 kB / 0.7981 GB, free: 11.75 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0234/1.103, allocations: 8.905 MB / 0.8068 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/1.104, allocations: 1.064 MB / 0.8079 GB, free: 1.41 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002033/1.106, allocations: 0.6465 MB / 0.8085 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001183/1.107, allocations: 0.507 MB / 0.809 GB, free: 260 kB / 0.6075 GB Notification: Performance of SimCode: time 2.274e-06/1.107, allocations: 0 / 0.809 GB, free: 260 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4774/1.585, allocations: 30.02 MB / 0.8383 GB, free: 241.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/13.76, allocations: 11.86 kB / 0.8383 GB, free: 241.1 MB / 0.6231 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_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_CrossFlowNTU.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CrossFlowNTU_res.csv","/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