Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.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_parallel,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_parallel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_parallel",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.006893/0.006893, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001376/0.001376, allocations: 197.8 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.362/1.362, 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.6963/0.6963, allocations: 91.21 MB / 381.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001762/0.001763, allocations: 83.86 kB / 0.5164 GB, free: 9.52 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1353/0.1371, allocations: 67.68 MB / 0.5825 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel): time 1.128/1.265, allocations: 307.7 MB / 0.883 GB, free: 1.691 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.03901/1.304, allocations: 37.96 MB / 0.9201 GB, free: 1.344 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003046/1.308, allocations: 92.56 kB / 0.9202 GB, free: 1.344 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.003666/1.311, allocations: 1.414 MB / 0.9215 GB, free: 1.285 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.009662/1.321, allocations: 3.372 MB / 0.9248 GB, free: 1.16 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.01007/1.331, allocations: 3.449 MB / 0.9282 GB, free: 1.039 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.006692/1.338, allocations: 3.745 MB / 0.9319 GB, free: 1.016 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001598/1.339, allocations: 0.8241 MB / 0.9327 GB, free: 16.76 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005336/1.345, allocations: 2.362 MB / 0.935 GB, free: 16.47 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003116/1.348, allocations: 1.467 MB / 0.9364 GB, free: 16.13 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0004296/1.348, allocations: 235.7 kB / 0.9366 GB, free: 16.13 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01694/1.365, allocations: 6.707 MB / 0.9432 GB, free: 15.75 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001424/1.367, allocations: 0.5751 MB / 0.9437 GB, free: 15.55 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002671/1.369, allocations: 1.396 MB / 0.9451 GB, free: 15.02 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01319/1.383, allocations: 4.999 MB / 0.95 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/1.383, allocations: 0 / 0.95 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.132e-06/1.383, allocations: 0 / 0.95 GB, free: 13.18 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0002331/1.383, allocations: 0 / 0.95 GB, free: 13.18 MB / 0.6856 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.009379/1.392, allocations: 3.732 MB / 0.9536 GB, free: 11.03 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/1.392, allocations: 11.5 kB / 0.9536 GB, free: 11.02 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003429/1.393, allocations: 290.5 kB / 0.9539 GB, free: 10.93 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004563/1.397, allocations: 0.622 MB / 0.9545 GB, free: 10.65 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/1.401, allocations: 1.741 MB / 0.9562 GB, free: 9.758 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004047/1.401, allocations: 418.9 kB / 0.9566 GB, free: 9.477 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004757/1.402, allocations: 214 kB / 0.9568 GB, free: 9.469 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00483/1.407, allocations: 2.328 MB / 0.9591 GB, free: 7.891 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.201e-05/1.407, allocations: 0.875 kB / 0.9591 GB, free: 7.891 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/1.407, allocations: 83.69 kB / 0.9592 GB, free: 7.871 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.187e-05/1.407, allocations: 78.58 kB / 0.9593 GB, free: 7.793 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004297/1.411, allocations: 1.881 MB / 0.9611 GB, free: 6.48 MB / 0.6856 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.01299/1.424, allocations: 9.262 MB / 0.9701 GB, free: 14.25 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004697/1.429, allocations: 1.966 MB / 0.9721 GB, free: 12.32 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002373/1.431, allocations: 1.067 MB / 0.9731 GB, free: 11.25 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001828/1.433, allocations: 2.607 MB / 0.9757 GB, free: 8.07 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.23e-05/1.433, allocations: 52.56 kB / 0.9757 GB, free: 8.008 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=174): time 4.358e-06/1.433, allocations: 0 / 0.9757 GB, free: 8.008 MB / 0.7012 GB Notification: Performance of matching and sorting (n=176): time 0.01874/1.452, allocations: 6.678 MB / 0.9822 GB, free: 1.168 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/1.452, allocations: 69.41 kB / 0.9823 GB, free: 1.09 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/1.455, allocations: 1.506 MB / 0.9838 GB, free: 15.54 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0002291/1.455, allocations: 57.7 kB / 0.9838 GB, free: 15.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007349/1.456, allocations: 1.037 MB / 0.9848 GB, free: 14.43 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006117/1.456, allocations: 0.6321 MB / 0.9854 GB, free: 13.81 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007628/1.457, allocations: 323.5 kB / 0.9858 GB, free: 13.49 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 9.052e-05/1.457, allocations: 309.1 kB / 0.9861 GB, free: 13.18 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001744/1.459, allocations: 0.6949 MB / 0.9867 GB, free: 12.49 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/1.461, allocations: 0.8528 MB / 0.9876 GB, free: 11.61 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003715/1.464, allocations: 1.581 MB / 0.9891 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.464, allocations: 0 / 0.9891 GB, free: 10.01 MB / 0.7169 GB Notification: Performance of matching and sorting (n=200) (initialization): time 0.007406/1.472, allocations: 2.734 MB / 0.9918 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/1.472, allocations: 8 kB / 0.9918 GB, free: 7.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.264e-05/1.472, allocations: 3.938 kB / 0.9918 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00197/1.474, allocations: 0.5595 MB / 0.9923 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002125/1.476, allocations: 427.3 kB / 0.9927 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/1.49, allocations: 10.14 MB / 1.003 GB, free: 11.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/1.492, allocations: 87.97 kB / 1.003 GB, free: 11.42 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004025/1.492, allocations: 127.9 kB / 1.003 GB, free: 11.3 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (168): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,1,88.9%), (2,17,100.0%), (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.00109/1.493, allocations: 379.6 kB / 1.003 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007512/1.494, allocations: 222.5 kB / 1.003 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01007/1.504, allocations: 4.079 MB / 1.007 GB, free: 6.66 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.952e-05/1.504, allocations: 16 kB / 1.007 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.121e-05/1.504, allocations: 8 kB / 1.007 GB, free: 6.637 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.913e-05/1.504, allocations: 11.97 kB / 1.007 GB, free: 6.625 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01362/1.518, allocations: 5.288 MB / 1.013 GB, free: 1.293 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.518, allocations: 3.938 kB / 1.013 GB, free: 1.289 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002218/1.52, allocations: 407.1 kB / 1.013 GB, free: 0.9062 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001918/1.522, allocations: 0.5686 MB / 1.014 GB, free: 332 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003975/1.523, allocations: 75.94 kB / 1.014 GB, free: 256 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01469/1.537, allocations: 10.12 MB / 1.024 GB, free: 5.473 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.537, allocations: 6.562 kB / 1.024 GB, free: 5.469 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/1.548, allocations: 3.767 MB / 1.027 GB, free: 1.668 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/1.549, allocations: 447.3 kB / 1.028 GB, free: 1.211 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006483/1.55, allocations: 40 kB / 1.028 GB, free: 1.172 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001501/1.551, allocations: 83.92 kB / 1.028 GB, free: 1.09 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004312/1.552, allocations: 164.3 kB / 1.028 GB, free: 0.9336 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000296/1.552, allocations: 108 kB / 1.028 GB, free: 0.8281 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001731/1.554, allocations: 1.014 MB / 1.029 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.9e-07/1.554, allocations: 0 / 1.029 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003496/1.557, allocations: 0.8932 MB / 1.03 GB, free: 14.9 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 11 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.h_out_B,flowResistanceB2.inlet.m_flow,flowResistanceB1.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int,mCV2.inlet.m_flow,mCV2.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 (159): * Single equations (assignments): 154 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,4,100.0%), (1,4,100.0%), (3,1,88.9%), (3,1,88.9%), (2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01261/1.57, allocations: 5.275 MB / 1.035 GB, free: 9.691 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0068/1.577, allocations: 2.702 MB / 1.038 GB, free: 6.945 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/1.577, allocations: 0 / 1.038 GB, free: 6.945 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.004884/1.582, allocations: 1.901 MB / 1.04 GB, free: 5.016 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/1.585, allocations: 0.566 MB / 1.04 GB, free: 4.469 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04158/1.627, allocations: 17.25 MB / 1.057 GB, free: 3 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00196/1.629, allocations: 1.566 MB / 1.058 GB, free: 1.398 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.003652/1.633, allocations: 1.431 MB / 1.06 GB, free: 4 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0025/1.635, allocations: 1.167 MB / 1.061 GB, free: 14.84 MB / 0.795 GB Notification: Performance of SimCode: time 1.332e-06/1.635, allocations: 0 / 1.061 GB, free: 14.84 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1303/1.765, allocations: 64.36 MB / 1.124 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.98/16.75, allocations: 3.75 kB / 1.124 GB, free: 14.91 MB / 0.8575 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel_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_parallel.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_parallel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches