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.002122/0.002128, 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.002282/0.002282, allocations: 193.5 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.673/1.673, 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.9281/0.9281, allocations: 91.2 MB / 381.6 MB, free: 9.418 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 80.83 kB / 460.4 MB, free: 23.12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1915/0.1932, allocations: 67.69 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.7701/0.9634, allocations: 234.9 MB / 0.7452 GB, free: 4.305 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.02997/0.9934, allocations: 22.27 MB / 0.7669 GB, free: 13.96 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002814/0.9962, allocations: 59.62 kB / 0.767 GB, free: 13.9 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.002603/0.9989, allocations: 0.7955 MB / 0.7677 GB, free: 13.1 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008118/1.007, allocations: 2.017 MB / 0.7697 GB, free: 11.07 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007871/1.015, allocations: 2.17 MB / 0.7718 GB, free: 8.898 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004122/1.019, allocations: 2.162 MB / 0.7739 GB, free: 6.727 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00079/1.02, allocations: 426.8 kB / 0.7743 GB, free: 6.289 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003518/1.023, allocations: 1.362 MB / 0.7757 GB, free: 4.922 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001812/1.025, allocations: 0.8358 MB / 0.7765 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004589/1.026, allocations: 140 kB / 0.7766 GB, free: 3.945 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/1.037, allocations: 4.029 MB / 0.7806 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000711/1.038, allocations: 350.5 kB / 0.7809 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001919/1.04, allocations: 0.8081 MB / 0.7817 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.009725/1.049, allocations: 2.949 MB / 0.7846 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 8.777e-06/1.049, allocations: 3.984 kB / 0.7846 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.555e-06/1.049, allocations: 0 / 0.7846 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.000117/1.05, allocations: 0 / 0.7846 GB, free: 11.79 MB / 0.5919 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.008049/1.058, allocations: 2.288 MB / 0.7868 GB, free: 9.449 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/1.058, allocations: 8.031 kB / 0.7868 GB, free: 9.441 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005245/1.058, allocations: 193.9 kB / 0.787 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003583/1.062, allocations: 409.5 kB / 0.7874 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002465/1.064, allocations: 0.9886 MB / 0.7884 GB, free: 7.793 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004428/1.065, allocations: 352 kB / 0.7887 GB, free: 7.398 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003667/1.065, allocations: 127.9 kB / 0.7888 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003621/1.069, allocations: 1.456 MB / 0.7902 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.337e-05/1.069, allocations: 0 / 0.7902 GB, free: 5.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001616/1.069, allocations: 52 kB / 0.7903 GB, free: 5.719 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.273e-05/1.069, allocations: 28 kB / 0.7903 GB, free: 5.691 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003172/1.072, allocations: 1.192 MB / 0.7915 GB, free: 4.492 MB / 0.5919 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.009956/1.082, allocations: 5.487 MB / 0.7968 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003169/1.085, allocations: 1.31 MB / 0.7981 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/1.087, allocations: 0.7143 MB / 0.7988 GB, free: 12.54 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001437/1.088, allocations: 1.79 MB / 0.8006 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/1.088, allocations: 51.5 kB / 0.8006 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=113): time 2.395e-06/1.088, allocations: 0 / 0.8006 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of matching and sorting (n=113): time 0.009253/1.098, allocations: 3.043 MB / 0.8036 GB, free: 7.145 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/1.098, allocations: 60.41 kB / 0.8036 GB, free: 7.074 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/1.099, allocations: 0.8794 MB / 0.8045 GB, free: 6.18 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001012/1.099, allocations: 45.7 kB / 0.8045 GB, free: 6.129 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005207/1.1, allocations: 0.6103 MB / 0.8051 GB, free: 5.512 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003618/1.1, allocations: 386.3 kB / 0.8055 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004515/1.1, allocations: 206.8 kB / 0.8057 GB, free: 4.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001383/1.101, allocations: 341.9 kB / 0.806 GB, free: 4.578 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00141/1.102, allocations: 0.4905 MB / 0.8065 GB, free: 4.09 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001415/1.103, allocations: 0.584 MB / 0.8071 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002666/1.106, allocations: 1.055 MB / 0.8081 GB, free: 2.418 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/1.106, allocations: 3.938 kB / 0.8081 GB, free: 2.414 MB / 0.6075 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005447/1.112, allocations: 1.912 MB / 0.81 GB, free: 496 kB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/1.112, allocations: 11.94 kB / 0.81 GB, free: 484 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.467e-06/1.112, allocations: 0 / 0.81 GB, free: 484 kB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001573/1.113, allocations: 421.5 kB / 0.8104 GB, free: 52 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/1.115, allocations: 303.5 kB / 0.8107 GB, free: 15.75 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/1.125, allocations: 7.419 MB / 0.8179 GB, free: 7.773 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00108/1.126, allocations: 131 kB / 0.818 GB, free: 7.645 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001846/1.126, allocations: 76.09 kB / 0.8181 GB, free: 7.57 MB / 0.6231 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.0006841/1.127, allocations: 261.5 kB / 0.8184 GB, free: 7.305 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000409/1.127, allocations: 130.4 kB / 0.8185 GB, free: 7.176 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007244/1.134, allocations: 2.725 MB / 0.8212 GB, free: 4.426 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/1.135, allocations: 12 kB / 0.8212 GB, free: 4.414 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.379e-05/1.135, allocations: 4 kB / 0.8212 GB, free: 4.41 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/1.135, allocations: 11.91 kB / 0.8212 GB, free: 4.398 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008797/1.143, allocations: 3.591 MB / 0.8247 GB, free: 0.7031 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/1.143, allocations: 0 / 0.8247 GB, free: 0.7031 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/1.145, allocations: 291.8 kB / 0.825 GB, free: 428 kB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.3455/1.49, allocations: 424.9 kB / 0.8254 GB, free: 242 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004168/1.491, allocations: 44.92 kB / 0.8254 GB, free: 242 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01017/1.501, allocations: 7.414 MB / 0.8327 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/1.501, allocations: 2.281 kB / 0.8327 GB, free: 236.7 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007797/1.509, allocations: 2.61 MB / 0.8352 GB, free: 236.1 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006067/1.51, allocations: 310.4 kB / 0.8355 GB, free: 236 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/1.51, allocations: 29.33 kB / 0.8355 GB, free: 235.9 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008442/1.511, allocations: 72.16 kB / 0.8356 GB, free: 235.9 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002824/1.511, allocations: 95.81 kB / 0.8357 GB, free: 235.9 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001681/1.511, allocations: 75.77 kB / 0.8358 GB, free: 235.9 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001016/1.512, allocations: 0.6036 MB / 0.8364 GB, free: 235.6 MB / 0.6231 GB Notification: Performance of sort global known variables: time 4e-07/1.512, allocations: 0 / 0.8364 GB, free: 235.6 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.002101/1.514, allocations: 0.601 MB / 0.8369 GB, free: 235.5 MB / 0.6231 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.008041/1.522, allocations: 3.726 MB / 0.8406 GB, free: 234 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.005307/1.528, allocations: 1.943 MB / 0.8425 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.528, allocations: 0 / 0.8425 GB, free: 233.1 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.002946/1.531, allocations: 1.372 MB / 0.8438 GB, free: 232.4 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001673/1.532, allocations: 309.1 kB / 0.8441 GB, free: 232.3 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02838/1.561, allocations: 11.84 MB / 0.8557 GB, free: 226.6 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/1.562, allocations: 1.194 MB / 0.8568 GB, free: 225.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002782/1.565, allocations: 0.8441 MB / 0.8577 GB, free: 225.7 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001243/1.566, allocations: 0.668 MB / 0.8583 GB, free: 225.2 MB / 0.6231 GB Notification: Performance of SimCode: time 1.363e-06/1.566, allocations: 0 / 0.8583 GB, free: 225.2 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0784/1.644, allocations: 37.84 MB / 0.8953 GB, free: 194.8 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.14/13.78, allocations: 7.5 kB / 0.8953 GB, free: 194.8 MB / 0.6231 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