Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.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.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay",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.007873/0.007873, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001875/0.001875, allocations: 193.7 kB / 16.68 MB, free: 5.969 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.359/1.359, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6985/0.6985, allocations: 91.19 MB / 381.7 MB, free: 7.523 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 83.86 kB / 0.5164 GB, free: 4.637 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.306, allocations: 67.68 MB / 0.5825 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.4898/0.7958, allocations: 189.2 MB / 0.7672 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006595/0.8024, allocations: 7.327 MB / 0.7744 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007427/0.8032, allocations: 31.12 kB / 0.7744 GB, free: 1.375 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008661/0.8041, allocations: 373.1 kB / 0.7748 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002971/0.8071, allocations: 1.299 MB / 0.776 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001685/0.8088, allocations: 0.6683 MB / 0.7767 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003162/0.812, allocations: 2.374 MB / 0.779 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.8123, allocations: 198.6 kB / 0.7792 GB, free: 1.234 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00249/0.8148, allocations: 1.636 MB / 0.7808 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007617/0.8155, allocations: 0.5806 MB / 0.7814 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.904e-05/0.8156, allocations: 56.53 kB / 0.7814 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002463/0.8181, allocations: 1.148 MB / 0.7825 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001515/0.8183, allocations: 148.3 kB / 0.7827 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003494/0.8186, allocations: 407.3 kB / 0.7831 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002139/0.8208, allocations: 1.479 MB / 0.7845 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.8208, allocations: 0 / 0.7845 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.883e-06/0.8208, allocations: 0 / 0.7845 GB, free: 0.8672 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.312e-05/0.8208, allocations: 0.625 kB / 0.7845 GB, free: 0.8672 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.0026/0.8234, allocations: 1.395 MB / 0.7859 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.8235, allocations: 8.688 kB / 0.7859 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.8236, allocations: 86.45 kB / 0.786 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009972/0.8246, allocations: 165 kB / 0.7861 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009103/0.8255, allocations: 0.6467 MB / 0.7867 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.8256, allocations: 44.03 kB / 0.7868 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001013/0.8257, allocations: 50.16 kB / 0.7868 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.8267, allocations: 0.5879 MB / 0.7874 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.8267, allocations: 1 kB / 0.7874 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.475e-05/0.8268, allocations: 27.08 kB / 0.7874 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.149e-05/0.8268, allocations: 13.5 kB / 0.7874 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.8278, allocations: 466 kB / 0.7879 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003307/0.8312, allocations: 2.668 MB / 0.7905 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009977/0.8322, allocations: 468 kB / 0.7909 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005029/0.8327, allocations: 241 kB / 0.7912 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002785/0.833, allocations: 274 kB / 0.7914 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007119/0.8337, allocations: 389.2 kB / 0.7918 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=54): time 2.134e-06/0.8337, allocations: 0.9688 kB / 0.7918 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of matching and sorting (n=54): time 0.002484/0.8362, allocations: 1.042 MB / 0.7928 GB, free: 13.28 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.8363, allocations: 82.77 kB / 0.7929 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006066/0.8369, allocations: 0.5776 MB / 0.7935 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.409e-05/0.837, allocations: 39.58 kB / 0.7935 GB, free: 13.03 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002459/0.8372, allocations: 345 kB / 0.7938 GB, free: 12.89 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.8374, allocations: 190.7 kB / 0.794 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.8376, allocations: 132 kB / 0.7941 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002048/0.8378, allocations: 383.9 kB / 0.7945 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004905/0.8383, allocations: 198.2 kB / 0.7947 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/0.8388, allocations: 263.6 kB / 0.7949 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.8399, allocations: 0.5145 MB / 0.7955 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.8399, allocations: 2.031 kB / 0.7955 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001542/0.8414, allocations: 0.7714 MB / 0.7962 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.587e-05/0.8415, allocations: 60.75 kB / 0.7963 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.284e-05/0.8415, allocations: 16.75 kB / 0.7963 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000326/0.8419, allocations: 92.17 kB / 0.7964 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.8423, allocations: 119 kB / 0.7965 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002488/0.8448, allocations: 3.057 MB / 0.7995 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005516/0.8454, allocations: 61.62 kB / 0.7995 GB, free: 9.277 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/0.8455, allocations: 62.78 kB / 0.7996 GB, free: 9.277 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 (sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition2,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0003397/0.8459, allocations: 194.3 kB / 0.7998 GB, free: 9.156 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.846, allocations: 76.86 kB / 0.7998 GB, free: 9.113 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.8485, allocations: 1.308 MB / 0.8011 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.8485, allocations: 11.88 kB / 0.8011 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.8486, allocations: 0 / 0.8011 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.508e-06/0.8486, allocations: 6.188 kB / 0.8011 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/0.8514, allocations: 1.581 MB / 0.8027 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.662e-05/0.8515, allocations: 16.19 kB / 0.8027 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.8519, allocations: 117.6 kB / 0.8028 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.8522, allocations: 93.25 kB / 0.8029 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.657e-05/0.8523, allocations: 32.05 kB / 0.8029 GB, free: 8.492 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.8546, allocations: 3.055 MB / 0.8059 GB, free: 5.777 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.8546, allocations: 7.25 kB / 0.8059 GB, free: 5.773 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.8568, allocations: 1.129 MB / 0.807 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003442/0.8572, allocations: 223 kB / 0.8072 GB, free: 5.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.8573, allocations: 14.2 kB / 0.8072 GB, free: 5.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004855/0.8578, allocations: 34.19 kB / 0.8073 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001769/0.858, allocations: 94.08 kB / 0.8074 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.049e-05/0.8581, allocations: 61.25 kB / 0.8074 GB, free: 5.312 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004818/0.8586, allocations: 408.6 kB / 0.8078 GB, free: 5.223 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8586, allocations: 0 / 0.8078 GB, free: 5.223 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009543/0.8596, allocations: 302.3 kB / 0.8081 GB, free: 5.184 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (transportDelay1.x,flowResistance1.inlet.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,sawTooth1.T_start,sawTooth1.count,$whenCondition2,sawTooth.T_start,sawTooth.count) * Number of discrete states: 2 (sawTooth.count,sawTooth1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.003149/0.8627, allocations: 2.008 MB / 0.8101 GB, free: 4.258 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001724/0.8644, allocations: 0.981 MB / 0.811 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.8645, allocations: 0 / 0.811 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00105/0.8655, allocations: 0.6628 MB / 0.8117 GB, free: 3.418 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.8666, allocations: 224.8 kB / 0.8119 GB, free: 3.375 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009866/0.8765, allocations: 6.051 MB / 0.8178 GB, free: 380 kB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005274/0.8771, allocations: 0.9289 MB / 0.8187 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001225/0.8783, allocations: 0.6725 MB / 0.8194 GB, free: 14.82 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006109/0.879, allocations: 351.3 kB / 0.8197 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of SimCode: time 8.02e-07/0.879, allocations: 0 / 0.8197 GB, free: 14.47 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05214/0.9311, allocations: 22.91 MB / 0.8421 GB, free: 7.875 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/12.56, allocations: 14.02 kB / 0.8421 GB, free: 7.863 MB / 0.6231 GB (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.csv --start-time 0 --stop-time 2.5 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0025 ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.TransportDelay_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches