Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,fileNamePrefix="ThermofluidStream_dev_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.007814/0.007814, allocations: 97.38 kB / 15.73 MB, free: 6.039 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.001737/0.001737, allocations: 204.4 kB / 16.68 MB, free: 5.961 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.755/1.755, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9527/0.9527, allocations: 93.7 MB / 384.2 MB, free: 6.926 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002507/0.002507, allocations: 76.16 kB / 0.5199 GB, free: 6.336 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.2051, allocations: 68.27 MB / 0.5866 GB, free: 1.988 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.8318/1.037, allocations: 214.4 MB / 0.7959 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.02844/1.065, allocations: 17.42 MB / 0.813 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/1.068, allocations: 51.62 kB / 0.813 GB, free: 10.66 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.002203/1.07, allocations: 0.617 MB / 0.8136 GB, free: 10.04 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.006639/1.077, allocations: 1.741 MB / 0.8153 GB, free: 8.293 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.006244/1.083, allocations: 1.665 MB / 0.8169 GB, free: 6.629 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.003722/1.087, allocations: 1.724 MB / 0.8186 GB, free: 4.895 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006703/1.087, allocations: 299.6 kB / 0.8189 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002847/1.09, allocations: 1.199 MB / 0.8201 GB, free: 3.391 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00106/1.091, allocations: 0.6374 MB / 0.8207 GB, free: 2.75 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0001588/1.091, allocations: 99.94 kB / 0.8208 GB, free: 2.652 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008504/1.1, allocations: 3.413 MB / 0.8241 GB, free: 15.23 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0003098/1.1, allocations: 254.9 kB / 0.8244 GB, free: 14.98 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.0008631/1.101, allocations: 0.6215 MB / 0.825 GB, free: 14.36 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.005853/1.107, allocations: 2.382 MB / 0.8273 GB, free: 11.97 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 1.211e-05/1.107, allocations: 0 / 0.8273 GB, free: 11.97 MB / 0.67 GB Notification: Performance of FrontEnd: time 4.689e-06/1.107, allocations: 0 / 0.8273 GB, free: 11.97 MB / 0.67 GB Notification: Performance of Transformations before backend: time 8.005e-05/1.107, allocations: 0 / 0.8273 GB, free: 11.97 MB / 0.67 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.003883/1.111, allocations: 1.905 MB / 0.8292 GB, free: 10 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/1.111, allocations: 8.031 kB / 0.8292 GB, free: 9.996 MB / 0.67 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001735/1.111, allocations: 143.6 kB / 0.8293 GB, free: 9.848 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002158/1.114, allocations: 290.8 kB / 0.8296 GB, free: 9.562 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001877/1.115, allocations: 0.9374 MB / 0.8305 GB, free: 8.582 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002535/1.116, allocations: 205.4 kB / 0.8307 GB, free: 8.359 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/1.116, allocations: 88 kB / 0.8308 GB, free: 8.273 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002238/1.118, allocations: 1.016 MB / 0.8318 GB, free: 7.227 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-05/1.118, allocations: 0 / 0.8318 GB, free: 7.227 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/1.118, allocations: 36 kB / 0.8318 GB, free: 7.191 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.721e-05/1.119, allocations: 27.98 kB / 0.8318 GB, free: 7.164 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/1.121, allocations: 0.7924 MB / 0.8326 GB, free: 6.375 MB / 0.67 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.006416/1.127, allocations: 4.121 MB / 0.8366 GB, free: 1.906 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002175/1.129, allocations: 0.8637 MB / 0.8375 GB, free: 1.039 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/1.13, allocations: 435.2 kB / 0.8379 GB, free: 0.6055 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001491/1.132, allocations: 1.303 MB / 0.8392 GB, free: 15 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/1.132, allocations: 43.22 kB / 0.8392 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=80): time 2.234e-06/1.132, allocations: 0 / 0.8392 GB, free: 14.95 MB / 0.6856 GB Notification: Performance of matching and sorting (n=80): time 0.005973/1.138, allocations: 1.943 MB / 0.8411 GB, free: 12.94 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/1.138, allocations: 64 kB / 0.8412 GB, free: 12.86 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001447/1.139, allocations: 0.7956 MB / 0.8419 GB, free: 12.05 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 7.136e-05/1.139, allocations: 37.7 kB / 0.842 GB, free: 12 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005349/1.14, allocations: 0.5205 MB / 0.8425 GB, free: 11.48 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002939/1.14, allocations: 297.5 kB / 0.8428 GB, free: 11.18 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000285/1.141, allocations: 150.6 kB / 0.8429 GB, free: 11.03 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001838/1.141, allocations: 337.9 kB / 0.8432 GB, free: 10.7 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007761/1.141, allocations: 313.8 kB / 0.8435 GB, free: 10.39 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009555/1.142, allocations: 391.1 kB / 0.8439 GB, free: 9.992 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001817/1.144, allocations: 0.701 MB / 0.8446 GB, free: 9.285 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-05/1.144, allocations: 0 / 0.8446 GB, free: 9.285 MB / 0.6856 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.00401/1.148, allocations: 1.248 MB / 0.8458 GB, free: 8.016 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/1.149, allocations: 8 kB / 0.8458 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/1.149, allocations: 0 / 0.8458 GB, free: 8.008 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/1.15, allocations: 242.4 kB / 0.846 GB, free: 7.762 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009624/1.151, allocations: 207.7 kB / 0.8462 GB, free: 7.559 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008352/1.159, allocations: 5.228 MB / 0.8514 GB, free: 1.91 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009301/1.16, allocations: 91.48 kB / 0.8514 GB, free: 1.82 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000212/1.16, allocations: 51.98 kB / 0.8515 GB, free: 1.77 MB / 0.6856 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.0006688/1.161, allocations: 226.4 kB / 0.8517 GB, free: 1.539 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002509/1.161, allocations: 107.3 kB / 0.8518 GB, free: 1.434 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4032/1.564, allocations: 1.821 MB / 0.8536 GB, free: 239.3 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.658e-05/1.564, allocations: 8.406 kB / 0.8536 GB, free: 239.3 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.925e-05/1.565, allocations: 7.328 kB / 0.8536 GB, free: 239.3 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.321e-05/1.565, allocations: 4.766 kB / 0.8536 GB, free: 239.3 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008425/1.573, allocations: 2.486 MB / 0.856 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.253e-05/1.573, allocations: 2.719 kB / 0.856 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/1.574, allocations: 197.9 kB / 0.8562 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009264/1.575, allocations: 247.4 kB / 0.8565 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.943e-05/1.575, allocations: 40.34 kB / 0.8565 GB, free: 238.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006912/1.582, allocations: 5.239 MB / 0.8616 GB, free: 234.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.582, allocations: 1.75 kB / 0.8616 GB, free: 234.4 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005299/1.588, allocations: 1.73 MB / 0.8633 GB, free: 233.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007839/1.589, allocations: 262.1 kB / 0.8636 GB, free: 233.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001442/1.589, allocations: 22.73 kB / 0.8636 GB, free: 233.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005806/1.589, allocations: 41.3 kB / 0.8636 GB, free: 233.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/1.59, allocations: 71.17 kB / 0.8637 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/1.59, allocations: 46.83 kB / 0.8637 GB, free: 233.5 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001099/1.591, allocations: 0.5579 MB / 0.8643 GB, free: 233.3 MB / 0.6856 GB Notification: Performance of sort global known variables: time 3.61e-07/1.591, allocations: 0 / 0.8643 GB, free: 233.3 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002084/1.593, allocations: 481.2 kB / 0.8647 GB, free: 233.2 MB / 0.6856 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.006164/1.599, allocations: 2.75 MB / 0.8674 GB, free: 231.9 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003054/1.602, allocations: 1.247 MB / 0.8686 GB, free: 231.4 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.602, allocations: 0 / 0.8686 GB, free: 231.4 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.002168/1.604, allocations: 0.9043 MB / 0.8695 GB, free: 230.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/1.606, allocations: 275.1 kB / 0.8698 GB, free: 230.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01922/1.625, allocations: 8.641 MB / 0.8782 GB, free: 226.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009322/1.626, allocations: 1.074 MB / 0.8793 GB, free: 226.1 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001859/1.628, allocations: 0.64 MB / 0.8799 GB, free: 226 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000981/1.629, allocations: 0.5202 MB / 0.8804 GB, free: 225.6 MB / 0.6856 GB Notification: Performance of SimCode: time 9.32e-07/1.629, allocations: 0 / 0.8804 GB, free: 225.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1032/1.733, allocations: 30.66 MB / 0.9103 GB, free: 210.9 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/16.38, allocations: 4.562 kB / 0.9103 GB, free: 210.8 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU.fmu > ThermofluidStream_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches