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.001857/0.001857, allocations: 108 kB / 15.6 MB, free: 132 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.002405/0.002405, allocations: 195.1 kB / 16.53 MB, free: 6.391 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.652/1.652, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8832/0.8832, allocations: 91.2 MB / 381.6 MB, free: 9.398 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001611/0.001611, allocations: 78.5 kB / 460.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.177/0.1786, allocations: 67.68 MB / 0.5157 GB, free: 10.1 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.7221/0.9007, allocations: 214.3 MB / 0.725 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02392/0.9247, allocations: 17.38 MB / 0.742 GB, free: 7.504 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002399/0.9272, allocations: 43.69 kB / 0.742 GB, free: 7.461 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002116/0.9294, allocations: 0.6209 MB / 0.7426 GB, free: 6.836 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006215/0.9357, allocations: 1.714 MB / 0.7443 GB, free: 5.113 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.005458/0.9412, allocations: 1.668 MB / 0.7459 GB, free: 3.441 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.002878/0.944, allocations: 1.654 MB / 0.7476 GB, free: 1.781 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.9446, allocations: 298.9 kB / 0.7478 GB, free: 1.477 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002768/0.9474, allocations: 1.156 MB / 0.749 GB, free: 324 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000803/0.9482, allocations: 0.6258 MB / 0.7496 GB, free: 15.69 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001462/0.9484, allocations: 96 kB / 0.7497 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007592/0.956, allocations: 3.39 MB / 0.753 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004908/0.9565, allocations: 246.9 kB / 0.7532 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001038/0.9575, allocations: 0.606 MB / 0.7538 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007544/0.9651, allocations: 2.314 MB / 0.7561 GB, free: 9.027 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 1.235e-05/0.9652, allocations: 4 kB / 0.7561 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.055e-06/0.9652, allocations: 0 / 0.7561 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.775e-05/0.9653, allocations: 0 / 0.7561 GB, free: 9.023 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.005365/0.9706, allocations: 1.811 MB / 0.7578 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 7.292e-05/0.9707, allocations: 12.03 kB / 0.7579 GB, free: 7.145 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001857/0.9709, allocations: 135.6 kB / 0.758 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002186/0.9731, allocations: 298 kB / 0.7583 GB, free: 6.711 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.9747, allocations: 0.8116 MB / 0.7591 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003161/0.975, allocations: 200.7 kB / 0.7593 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/0.9752, allocations: 92 kB / 0.7593 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002203/0.9775, allocations: 1.009 MB / 0.7603 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.9775, allocations: 0 / 0.7603 GB, free: 4.508 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001004/0.9776, allocations: 36 kB / 0.7604 GB, free: 4.473 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.996e-05/0.9776, allocations: 24 kB / 0.7604 GB, free: 4.449 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.9794, allocations: 0.7924 MB / 0.7612 GB, free: 3.66 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.006326/0.9858, allocations: 4.12 MB / 0.7652 GB, free: 15.19 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002074/0.9879, allocations: 0.8589 MB / 0.766 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008516/0.9887, allocations: 438.4 kB / 0.7664 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001111/0.9898, allocations: 1.303 MB / 0.7677 GB, free: 12.3 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.951e-05/0.9899, allocations: 47.22 kB / 0.7678 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=80): time 4.228e-06/0.9899, allocations: 0 / 0.7678 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of matching and sorting (n=80): time 0.005837/0.9958, allocations: 1.919 MB / 0.7696 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.9958, allocations: 64 kB / 0.7697 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001413/0.9973, allocations: 0.7692 MB / 0.7704 GB, free: 9.387 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.614e-05/0.9974, allocations: 41.7 kB / 0.7705 GB, free: 9.34 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004832/0.9979, allocations: 0.4923 MB / 0.771 GB, free: 8.84 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003331/0.9982, allocations: 272 kB / 0.7712 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003389/0.9986, allocations: 158.6 kB / 0.7714 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0002122/0.9988, allocations: 341.8 kB / 0.7717 GB, free: 8.07 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009243/0.9997, allocations: 309.8 kB / 0.772 GB, free: 7.77 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008863/1.001, allocations: 395.1 kB / 0.7724 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/1.002, allocations: 0.694 MB / 0.773 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/1.002, allocations: 0 / 0.773 GB, free: 6.656 MB / 0.5762 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003785/1.006, allocations: 1.238 MB / 0.7743 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/1.006, allocations: 10.19 kB / 0.7743 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/1.006, allocations: 0 / 0.7743 GB, free: 5.395 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/1.007, allocations: 246.4 kB / 0.7745 GB, free: 5.145 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009993/1.008, allocations: 203.7 kB / 0.7747 GB, free: 4.945 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008576/1.017, allocations: 5.238 MB / 0.7798 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/1.018, allocations: 79.39 kB / 0.7799 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/1.019, allocations: 55.97 kB / 0.7799 GB, free: 15.16 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.0008287/1.02, allocations: 239.2 kB / 0.7802 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003287/1.02, allocations: 106.7 kB / 0.7803 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005308/1.025, allocations: 1.812 MB / 0.782 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/1.025, allocations: 8 kB / 0.782 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.131e-05/1.025, allocations: 8 kB / 0.7821 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/1.025, allocations: 7.922 kB / 0.7821 GB, free: 12.95 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006534/1.032, allocations: 2.475 MB / 0.7845 GB, free: 10.37 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.587e-06/1.032, allocations: 8.141 kB / 0.7845 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00103/1.033, allocations: 191.8 kB / 0.7847 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001071/1.034, allocations: 246.3 kB / 0.7849 GB, free: 9.926 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.762e-05/1.034, allocations: 43.97 kB / 0.7849 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007484/1.042, allocations: 5.234 MB / 0.7901 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.042, allocations: 256 / 0.7901 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004896/1.047, allocations: 1.726 MB / 0.7917 GB, free: 2.465 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007006/1.047, allocations: 251.7 kB / 0.792 GB, free: 2.199 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/1.048, allocations: 24 kB / 0.792 GB, free: 2.176 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006169/1.048, allocations: 39.95 kB / 0.792 GB, free: 2.137 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/1.049, allocations: 80.44 kB / 0.7921 GB, free: 2.059 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/1.049, allocations: 43.98 kB / 0.7922 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0008403/1.05, allocations: 0.5395 MB / 0.7927 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.2e-07/1.05, allocations: 0 / 0.7927 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001875/1.051, allocations: 471.2 kB / 0.7931 GB, free: 1.004 MB / 0.5919 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.00684/1.058, allocations: 2.742 MB / 0.7958 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004163/1.062, allocations: 1.279 MB / 0.7971 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 9.006e-06/1.063, allocations: 0 / 0.7971 GB, free: 12.89 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002163/1.065, allocations: 0.902 MB / 0.7979 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/1.066, allocations: 263.9 kB / 0.7982 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01921/1.086, allocations: 8.906 MB / 0.8069 GB, free: 2.457 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001074/1.087, allocations: 1.068 MB / 0.8079 GB, free: 1.363 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002093/1.089, allocations: 0.6311 MB / 0.8086 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009257/1.09, allocations: 0.4992 MB / 0.809 GB, free: 236 kB / 0.6075 GB Notification: Performance of SimCode: time 2.394e-06/1.09, allocations: 3.938 kB / 0.809 GB, free: 232 kB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.442/1.532, allocations: 29.85 MB / 0.8382 GB, free: 241.1 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.91/13.44, allocations: 14.16 kB / 0.8382 GB, free: 241.1 MB / 0.6231 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