Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.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_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_serial",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.004954/0.004954, allocations: 99.27 kB / 15.73 MB, free: 6.035 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.001119/0.001119, allocations: 193.3 kB / 16.67 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.432/1.432, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7367/0.7367, allocations: 91.2 MB / 381.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001824/0.001824, allocations: 83.86 kB / 0.5164 GB, free: 9.516 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1375, allocations: 67.69 MB / 0.5825 GB, free: 5.746 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.6095/0.7471, allocations: 234.9 MB / 0.8119 GB, free: 13.03 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02842/0.7755, allocations: 22.28 MB / 0.8337 GB, free: 6.676 MB / 0.67 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.7771, allocations: 55.62 kB / 0.8337 GB, free: 6.621 MB / 0.67 GB Notification: Performance of NFTyping.typeComponents: time 0.002368/0.7795, allocations: 0.7878 MB / 0.8345 GB, free: 5.828 MB / 0.67 GB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.7859, allocations: 2.05 MB / 0.8365 GB, free: 3.77 MB / 0.67 GB Notification: Performance of NFTyping.typeClassSections: time 0.006626/0.7926, allocations: 2.193 MB / 0.8386 GB, free: 1.574 MB / 0.67 GB Notification: Performance of NFFlatten.flatten: time 0.4638/1.256, allocations: 2.181 MB / 0.8408 GB, free: 4.961 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001327/1.258, allocations: 414.7 kB / 0.8412 GB, free: 4.852 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003849/1.262, allocations: 1.39 MB / 0.8425 GB, free: 4.852 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00153/1.263, allocations: 0.8388 MB / 0.8433 GB, free: 4.852 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.0004607/1.264, allocations: 135.5 kB / 0.8435 GB, free: 4.852 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01002/1.274, allocations: 4.082 MB / 0.8475 GB, free: 4.844 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.0008026/1.275, allocations: 339.4 kB / 0.8478 GB, free: 4.844 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001808/1.276, allocations: 0.8167 MB / 0.8486 GB, free: 4.844 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.009711/1.286, allocations: 3.011 MB / 0.8515 GB, free: 4.637 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.331e-06/1.286, allocations: 0 / 0.8515 GB, free: 4.637 MB / 0.67 GB Notification: Performance of FrontEnd: time 1.984e-06/1.286, allocations: 4.438 kB / 0.8515 GB, free: 4.637 MB / 0.67 GB Notification: Performance of Transformations before backend: time 3.716e-05/1.286, allocations: 0 / 0.8515 GB, free: 4.637 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: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.006758/1.293, allocations: 2.364 MB / 0.8538 GB, free: 19.51 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/1.293, allocations: 11.44 kB / 0.8538 GB, free: 19.51 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002225/1.293, allocations: 188.2 kB / 0.854 GB, free: 19.46 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003536/1.297, allocations: 421.9 kB / 0.8544 GB, free: 19.36 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002645/1.3, allocations: 1.086 MB / 0.8555 GB, free: 18.96 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003968/1.3, allocations: 349.7 kB / 0.8558 GB, free: 18.7 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002483/1.3, allocations: 135.6 kB / 0.8559 GB, free: 18.7 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003538/1.304, allocations: 1.447 MB / 0.8574 GB, free: 18.55 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.842e-05/1.304, allocations: 1.875 kB / 0.8574 GB, free: 18.55 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/1.304, allocations: 52.88 kB / 0.8574 GB, free: 18.55 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.409e-05/1.304, allocations: 33.95 kB / 0.8574 GB, free: 18.55 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002998/1.307, allocations: 1.188 MB / 0.8586 GB, free: 18.54 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.00887/1.316, allocations: 5.449 MB / 0.8639 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003643/1.32, allocations: 1.31 MB / 0.8652 GB, free: 15.7 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001731/1.321, allocations: 0.7101 MB / 0.8659 GB, free: 15.69 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001394/1.323, allocations: 1.79 MB / 0.8676 GB, free: 13.62 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/1.323, allocations: 53.92 kB / 0.8677 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=113): time 3.838e-06/1.323, allocations: 0.8125 kB / 0.8677 GB, free: 13.58 MB / 0.6856 GB Notification: Performance of matching and sorting (n=113): time 0.009676/1.332, allocations: 3.044 MB / 0.8707 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/1.333, allocations: 69.09 kB / 0.8707 GB, free: 12.99 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/1.334, allocations: 0.8826 MB / 0.8716 GB, free: 12.84 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 9.606e-05/1.334, allocations: 48.08 kB / 0.8716 GB, free: 12.81 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/1.335, allocations: 0.6155 MB / 0.8722 GB, free: 12.57 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003046/1.335, allocations: 409.2 kB / 0.8726 GB, free: 12.3 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003477/1.335, allocations: 205.4 kB / 0.8728 GB, free: 12.29 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001258/1.336, allocations: 343.8 kB / 0.8732 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001131/1.337, allocations: 0.4905 MB / 0.8736 GB, free: 11.98 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/1.338, allocations: 0.5841 MB / 0.8742 GB, free: 11.94 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002382/1.34, allocations: 1.05 MB / 0.8752 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/1.34, allocations: 0 / 0.8752 GB, free: 11.89 MB / 0.6856 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005216/1.346, allocations: 1.926 MB / 0.8771 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/1.346, allocations: 6.812 kB / 0.8771 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.395e-06/1.346, allocations: 1.25 kB / 0.8771 GB, free: 11.73 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/1.347, allocations: 417.1 kB / 0.8775 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001487/1.349, allocations: 297 kB / 0.8778 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009307/1.358, allocations: 7.429 MB / 0.8851 GB, free: 6.27 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/1.359, allocations: 129.8 kB / 0.8852 GB, free: 6.219 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002052/1.359, allocations: 76.61 kB / 0.8853 GB, free: 6.215 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,1,88.9%), (3,1,88.9%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006342/1.36, allocations: 267.9 kB / 0.8855 GB, free: 6.094 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000246/1.36, allocations: 130.1 kB / 0.8856 GB, free: 6.023 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006867/1.367, allocations: 2.711 MB / 0.8883 GB, free: 5.844 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/1.367, allocations: 10.62 kB / 0.8883 GB, free: 5.844 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/1.367, allocations: 3.75 kB / 0.8883 GB, free: 5.844 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/1.367, allocations: 6.562 kB / 0.8883 GB, free: 5.844 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008124/1.375, allocations: 3.596 MB / 0.8918 GB, free: 5.273 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/1.375, allocations: 5.719 kB / 0.8918 GB, free: 5.27 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001579/1.377, allocations: 296.2 kB / 0.8921 GB, free: 5.27 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/1.378, allocations: 422.3 kB / 0.8925 GB, free: 5.227 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/1.379, allocations: 45.06 kB / 0.8925 GB, free: 5.227 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009778/1.388, allocations: 7.428 MB / 0.8998 GB, free: 15.77 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/1.388, allocations: 9.688 kB / 0.8998 GB, free: 15.76 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0072/1.396, allocations: 2.608 MB / 0.9024 GB, free: 15.41 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006954/1.396, allocations: 314 kB / 0.9027 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/1.396, allocations: 28 kB / 0.9027 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009906/1.397, allocations: 67.64 kB / 0.9027 GB, free: 15.22 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/1.398, allocations: 106.9 kB / 0.9028 GB, free: 15.21 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002875/1.398, allocations: 71.3 kB / 0.9029 GB, free: 15.21 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008811/1.399, allocations: 0.6051 MB / 0.9035 GB, free: 15.1 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.012e-06/1.399, allocations: 3 kB / 0.9035 GB, free: 15.1 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002323/1.401, allocations: 0.604 MB / 0.9041 GB, free: 15 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.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 (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (3,1,88.9%), (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.009203/1.41, allocations: 3.758 MB / 0.9078 GB, free: 13.98 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004591/1.415, allocations: 1.887 MB / 0.9096 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/1.415, allocations: 0 / 0.9096 GB, free: 13.48 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002644/1.418, allocations: 1.38 MB / 0.911 GB, free: 13 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0017/1.419, allocations: 306.6 kB / 0.9113 GB, free: 12.96 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02224/1.442, allocations: 11.19 MB / 0.9222 GB, free: 9.93 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009672/1.443, allocations: 1.193 MB / 0.9233 GB, free: 9.191 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001934/1.445, allocations: 0.8364 MB / 0.9242 GB, free: 8.906 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001105/1.446, allocations: 0.6647 MB / 0.9248 GB, free: 8.773 MB / 0.7012 GB Notification: Performance of SimCode: time 8.42e-07/1.446, allocations: 4 kB / 0.9248 GB, free: 8.77 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08542/1.531, allocations: 38.27 MB / 0.9622 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/14.22, allocations: 26.59 kB / 0.9622 GB, free: 3.168 MB / 0.7325 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_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_serial.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches