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/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,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.005829/0.005829, allocations: 97.75 kB / 15.73 MB, free: 5.996 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.001282/0.001282, allocations: 186.3 kB / 16.67 MB, free: 5.926 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6995/0.6995, allocations: 89.47 MB / 380 MB, free: 10.94 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 79.88 kB / 0.5139 GB, free: 11.75 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1345, allocations: 67.3 MB / 0.5797 GB, free: 8.371 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5065/0.641, allocations: 214.1 MB / 0.7887 GB, free: 5.875 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.0193/0.6604, allocations: 17.34 MB / 0.8057 GB, free: 4.484 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007769/0.6612, allocations: 19.88 kB / 0.8057 GB, free: 4.465 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.6627, allocations: 0.6093 MB / 0.8063 GB, free: 3.855 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003923/0.6667, allocations: 1.652 MB / 0.8079 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003898/0.6706, allocations: 1.669 MB / 0.8095 GB, free: 0.5273 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001874/0.6725, allocations: 1.533 MB / 0.811 GB, free: 14.99 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004184/0.6729, allocations: 279.1 kB / 0.8113 GB, free: 14.7 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.6749, allocations: 1.094 MB / 0.8123 GB, free: 13.61 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007036/0.6756, allocations: 0.6027 MB / 0.8129 GB, free: 13 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001367/0.6758, allocations: 103.9 kB / 0.813 GB, free: 12.9 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006448/0.6822, allocations: 3.424 MB / 0.8164 GB, free: 9.469 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0002623/0.6825, allocations: 235.1 kB / 0.8166 GB, free: 9.238 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0006508/0.6832, allocations: 0.5713 MB / 0.8172 GB, free: 8.664 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.004666/0.6879, allocations: 2.203 MB / 0.8193 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.6879, allocations: 0 / 0.8193 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.854e-06/0.6879, allocations: 0 / 0.8193 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.417e-05/0.6879, allocations: 0 / 0.8193 GB, free: 6.453 MB / 0.6544 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.003226/0.6912, allocations: 1.714 MB / 0.821 GB, free: 4.684 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.6912, allocations: 8.031 kB / 0.821 GB, free: 4.676 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001655/0.6914, allocations: 143.6 kB / 0.8211 GB, free: 4.527 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001917/0.6933, allocations: 279 kB / 0.8214 GB, free: 4.254 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.6944, allocations: 0.6415 MB / 0.822 GB, free: 3.57 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002324/0.6946, allocations: 192.8 kB / 0.8222 GB, free: 3.359 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001414/0.6948, allocations: 99.95 kB / 0.8223 GB, free: 3.262 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.6967, allocations: 1.013 MB / 0.8233 GB, free: 2.219 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.128e-05/0.6967, allocations: 0 / 0.8233 GB, free: 2.219 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-05/0.6968, allocations: 39.94 kB / 0.8233 GB, free: 2.18 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.6968, allocations: 20 kB / 0.8234 GB, free: 2.16 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.6986, allocations: 0.7924 MB / 0.8241 GB, free: 1.371 MB / 0.6544 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.005154/0.7037, allocations: 4.053 MB / 0.8281 GB, free: 12.97 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001985/0.7057, allocations: 0.8627 MB / 0.8289 GB, free: 12.11 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008512/0.7066, allocations: 439.3 kB / 0.8293 GB, free: 11.68 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009536/0.7076, allocations: 1.303 MB / 0.8306 GB, free: 10.07 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.7076, allocations: 43.16 kB / 0.8307 GB, free: 10.02 MB / 0.67 GB Notification: Performance of pre-optimization done (n=80): time 2.374e-06/0.7076, allocations: 0 / 0.8307 GB, free: 10.02 MB / 0.67 GB Notification: Performance of matching and sorting (n=80): time 0.005346/0.713, allocations: 1.912 MB / 0.8325 GB, free: 8.043 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/0.713, allocations: 60.06 kB / 0.8326 GB, free: 7.969 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007782/0.7138, allocations: 0.6138 MB / 0.8332 GB, free: 7.348 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 7.408e-05/0.7139, allocations: 41.64 kB / 0.8332 GB, free: 7.301 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003295/0.7142, allocations: 440.9 kB / 0.8336 GB, free: 6.863 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002386/0.7145, allocations: 289.5 kB / 0.8339 GB, free: 6.578 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.7147, allocations: 154.6 kB / 0.8341 GB, free: 6.422 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001428/0.7149, allocations: 338 kB / 0.8344 GB, free: 6.086 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007183/0.7156, allocations: 309.8 kB / 0.8347 GB, free: 5.785 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008004/0.7164, allocations: 395.1 kB / 0.8351 GB, free: 5.379 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.718, allocations: 0.6862 MB / 0.8357 GB, free: 4.684 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.718, allocations: 0.75 kB / 0.8357 GB, free: 4.684 MB / 0.67 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003136/0.7211, allocations: 1.225 MB / 0.8369 GB, free: 3.441 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.852e-05/0.7211, allocations: 6.188 kB / 0.8369 GB, free: 3.438 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.7212, allocations: 7.984 kB / 0.8369 GB, free: 3.43 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008635/0.722, allocations: 247.9 kB / 0.8372 GB, free: 3.18 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009302/0.723, allocations: 203.7 kB / 0.8374 GB, free: 2.98 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2846/1.008, allocations: 5.228 MB / 0.8425 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007622/1.008, allocations: 87.31 kB / 0.8426 GB, free: 228.1 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001234/1.009, allocations: 53.78 kB / 0.8426 GB, free: 228.1 MB / 0.67 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.0003556/1.009, allocations: 219.6 kB / 0.8428 GB, free: 228 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001651/1.009, allocations: 87.94 kB / 0.8429 GB, free: 228 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004282/1.013, allocations: 1.804 MB / 0.8447 GB, free: 227.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/1.013, allocations: 11.66 kB / 0.8447 GB, free: 227.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.527e-06/1.013, allocations: 2.656 kB / 0.8447 GB, free: 227.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/1.013, allocations: 8.203 kB / 0.8447 GB, free: 227.9 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/1.018, allocations: 2.417 MB / 0.847 GB, free: 227.1 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.273e-06/1.018, allocations: 2.938 kB / 0.8471 GB, free: 227.1 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009252/1.019, allocations: 194.3 kB / 0.8472 GB, free: 227.1 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007933/1.02, allocations: 253.8 kB / 0.8475 GB, free: 227 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.696e-05/1.02, allocations: 33.53 kB / 0.8475 GB, free: 227 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004854/1.025, allocations: 5.246 MB / 0.8526 GB, free: 222.5 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/1.025, allocations: 2.438 kB / 0.8526 GB, free: 222.5 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003671/1.028, allocations: 1.698 MB / 0.8543 GB, free: 221.8 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003654/1.029, allocations: 243.2 kB / 0.8545 GB, free: 221.6 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000122/1.029, allocations: 29.78 kB / 0.8546 GB, free: 221.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005121/1.029, allocations: 42.88 kB / 0.8546 GB, free: 221.5 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001625/1.03, allocations: 68.33 kB / 0.8547 GB, free: 221.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.073e-05/1.03, allocations: 51.77 kB / 0.8547 GB, free: 221.5 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0005369/1.03, allocations: 444.5 kB / 0.8551 GB, free: 221.3 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.51e-07/1.03, allocations: 2.375 kB / 0.8551 GB, free: 221.3 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001315/1.031, allocations: 475.8 kB / 0.8556 GB, free: 221.3 MB / 0.67 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.005102/1.037, allocations: 2.723 MB / 0.8582 GB, free: 219.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002988/1.04, allocations: 1.247 MB / 0.8595 GB, free: 219.4 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/1.04, allocations: 0 / 0.8595 GB, free: 219.4 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001762/1.041, allocations: 0.9054 MB / 0.8604 GB, free: 218.9 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/1.043, allocations: 248.6 kB / 0.8606 GB, free: 218.8 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/1.057, allocations: 7.815 MB / 0.8682 GB, free: 214.9 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005677/1.058, allocations: 1.016 MB / 0.8692 GB, free: 214.2 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001388/1.059, allocations: 0.6106 MB / 0.8698 GB, free: 214.1 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006205/1.06, allocations: 443.2 kB / 0.8702 GB, free: 213.8 MB / 0.67 GB Notification: Performance of SimCode: time 1.002e-06/1.06, allocations: 0 / 0.8702 GB, free: 213.8 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06329/1.123, allocations: 28.13 MB / 0.8977 GB, free: 199.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/12.56, allocations: 8.031 kB / 0.8977 GB, free: 199.6 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