Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.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_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow,fileNamePrefix="ThermofluidStream_ThermofluidStream_HeatExchangers_Tests_CounterFlowNTU_zeroMassFlow",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.007724/0.007724, allocations: 96.64 kB / 15.73 MB, free: 6.055 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.001757/0.001757, allocations: 195.2 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6856/0.6856, allocations: 91.2 MB / 381.7 MB, free: 9.363 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 75.88 kB / 0.5164 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1418, allocations: 67.69 MB / 0.5825 GB, free: 5.758 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow): time 0.5227/0.6645, allocations: 201.8 MB / 0.7796 GB, free: 14.26 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01656/0.6811, allocations: 15.03 MB / 0.7943 GB, free: 15.18 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001247/0.6824, allocations: 39.75 kB / 0.7943 GB, free: 15.14 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001604/0.6841, allocations: 0.5201 MB / 0.7948 GB, free: 14.62 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.003892/0.688, allocations: 1.327 MB / 0.7961 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004238/0.6923, allocations: 1.483 MB / 0.7975 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.00199/0.6943, allocations: 1.354 MB / 0.7989 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005418/0.6949, allocations: 275.9 kB / 0.7991 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002435/0.6973, allocations: 1.078 MB / 0.8002 GB, free: 9.09 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005236/0.6978, allocations: 0.5053 MB / 0.8007 GB, free: 8.582 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.6979, allocations: 80 kB / 0.8007 GB, free: 8.504 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005131/0.7031, allocations: 2.609 MB / 0.8033 GB, free: 5.891 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0002336/0.7033, allocations: 195.2 kB / 0.8035 GB, free: 5.699 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0006511/0.704, allocations: 0.505 MB / 0.804 GB, free: 5.191 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004472/0.7085, allocations: 1.962 MB / 0.8059 GB, free: 3.223 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.7085, allocations: 0 / 0.8059 GB, free: 3.223 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.523e-06/0.7085, allocations: 0 / 0.8059 GB, free: 3.223 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 4.316e-05/0.7086, allocations: 0 / 0.8059 GB, free: 3.223 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.003463/0.712, allocations: 1.591 MB / 0.8074 GB, free: 1.578 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 9.398e-05/0.7121, allocations: 12.03 kB / 0.8075 GB, free: 1.566 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001552/0.7123, allocations: 118.5 kB / 0.8076 GB, free: 1.441 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001902/0.7142, allocations: 243.1 kB / 0.8078 GB, free: 1.203 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001685/0.7159, allocations: 0.7758 MB / 0.8086 GB, free: 392 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002277/0.7162, allocations: 184.8 kB / 0.8087 GB, free: 184 kB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.7163, allocations: 75.95 kB / 0.8088 GB, free: 108 kB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.7181, allocations: 0.8219 MB / 0.8096 GB, free: 15.27 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.7181, allocations: 6.297 kB / 0.8096 GB, free: 15.26 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.798e-05/0.7182, allocations: 32 kB / 0.8096 GB, free: 15.23 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.477e-05/0.7182, allocations: 19.94 kB / 0.8097 GB, free: 15.21 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/0.7197, allocations: 0.6559 MB / 0.8103 GB, free: 14.56 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.004613/0.7243, allocations: 3.172 MB / 0.8134 GB, free: 11.11 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.7257, allocations: 0.6011 MB / 0.814 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000731/0.7265, allocations: 354.4 kB / 0.8143 GB, free: 10.15 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005692/0.7271, allocations: 0.8991 MB / 0.8152 GB, free: 9.047 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.7271, allocations: 39.12 kB / 0.8152 GB, free: 9 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=58): time 2.796e-06/0.7271, allocations: 0 / 0.8152 GB, free: 9 MB / 0.6544 GB Notification: Performance of matching and sorting (n=58): time 0.004894/0.732, allocations: 1.683 MB / 0.8169 GB, free: 7.246 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.018e-05/0.7321, allocations: 59.97 kB / 0.8169 GB, free: 7.176 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009663/0.7331, allocations: 0.6729 MB / 0.8176 GB, free: 6.492 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.7331, allocations: 33.7 kB / 0.8176 GB, free: 6.453 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.7335, allocations: 440.8 kB / 0.8181 GB, free: 6.02 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002039/0.7337, allocations: 214.1 kB / 0.8183 GB, free: 5.809 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.7339, allocations: 110.2 kB / 0.8184 GB, free: 5.695 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.734, allocations: 330 kB / 0.8187 GB, free: 5.367 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006561/0.7347, allocations: 264.8 kB / 0.8189 GB, free: 5.105 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007209/0.7354, allocations: 312.6 kB / 0.8192 GB, free: 4.793 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001364/0.7368, allocations: 0.5406 MB / 0.8198 GB, free: 4.242 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.7368, allocations: 0 / 0.8198 GB, free: 4.242 MB / 0.6544 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002815/0.7396, allocations: 1.035 MB / 0.8208 GB, free: 3.191 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.7397, allocations: 4 kB / 0.8208 GB, free: 3.188 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.7397, allocations: 4 kB / 0.8208 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008751/0.7406, allocations: 230.4 kB / 0.821 GB, free: 2.949 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007234/0.7413, allocations: 151.8 kB / 0.8211 GB, free: 2.801 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006314/0.7476, allocations: 5.096 MB / 0.8261 GB, free: 13.29 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006324/0.7483, allocations: 75.62 kB / 0.8262 GB, free: 13.21 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.596e-05/0.7484, allocations: 39.98 kB / 0.8262 GB, free: 13.17 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (58): * Single equations (assignments): 55 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003905/0.7488, allocations: 205.6 kB / 0.8264 GB, free: 12.96 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.749, allocations: 87.44 kB / 0.8265 GB, free: 12.88 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/0.7527, allocations: 1.408 MB / 0.8279 GB, free: 11.45 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.917e-06/0.7527, allocations: 7.938 kB / 0.8279 GB, free: 11.44 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.7528, allocations: 4 kB / 0.8279 GB, free: 11.44 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.695e-06/0.7528, allocations: 3.984 kB / 0.8279 GB, free: 11.43 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/0.7574, allocations: 2.067 MB / 0.8299 GB, free: 9.258 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.7574, allocations: 4 kB / 0.8299 GB, free: 9.254 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.7582, allocations: 132 kB / 0.83 GB, free: 9.125 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007906/0.759, allocations: 238.3 kB / 0.8303 GB, free: 8.883 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-05/0.7591, allocations: 27.92 kB / 0.8303 GB, free: 8.855 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00617/0.7652, allocations: 5.101 MB / 0.8353 GB, free: 3.336 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.7653, allocations: 4 kB / 0.8353 GB, free: 3.332 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003822/0.7691, allocations: 1.399 MB / 0.8367 GB, free: 1.895 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004898/0.7696, allocations: 220.3 kB / 0.8369 GB, free: 1.66 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001517/0.7698, allocations: 12.09 kB / 0.8369 GB, free: 1.648 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005455/0.7703, allocations: 43.95 kB / 0.8369 GB, free: 1.605 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.7705, allocations: 56.3 kB / 0.837 GB, free: 1.551 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001752/0.7707, allocations: 35.98 kB / 0.837 GB, free: 1.512 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000743/0.7715, allocations: 487 kB / 0.8375 GB, free: 1.043 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7715, allocations: 3.938 kB / 0.8375 GB, free: 1.039 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001384/0.7729, allocations: 402.9 kB / 0.8379 GB, free: 0.6445 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,flowResistanceB.inlet.m_flow,flowResistanceA.inlet.m_flow) * 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 (50): * Single equations (assignments): 47 * 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,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2812/1.054, allocations: 2.359 MB / 0.8402 GB, free: 226.2 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002458/1.057, allocations: 1.064 MB / 0.8412 GB, free: 225.8 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.057, allocations: 0.6875 kB / 0.8412 GB, free: 225.8 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001581/1.058, allocations: 0.7953 MB / 0.842 GB, free: 225.5 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/1.059, allocations: 211.6 kB / 0.8422 GB, free: 225.5 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0121/1.071, allocations: 7.144 MB / 0.8492 GB, free: 222.7 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004539/1.072, allocations: 0.9896 MB / 0.8501 GB, free: 222 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001018/1.073, allocations: 454.9 kB / 0.8506 GB, free: 222 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005986/1.074, allocations: 402.5 kB / 0.8509 GB, free: 221.7 MB / 0.67 GB Notification: Performance of SimCode: time 1.273e-06/1.074, allocations: 4 kB / 0.8509 GB, free: 221.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0578/1.131, allocations: 25.48 MB / 0.8758 GB, free: 213.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/13.4, allocations: 12.39 kB / 0.8758 GB, free: 213.4 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_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_zeroMassFlow.fmu > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_zeroMassFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches