Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.Undirected.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_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.007362/0.007362, allocations: 98.81 kB / 15.73 MB, free: 6.441 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.001939/0.001939, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6525/0.6525, allocations: 89.46 MB / 380 MB, free: 10.95 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 79.88 kB / 0.5139 GB, free: 11.77 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1284, allocations: 67.31 MB / 0.5796 GB, free: 8.383 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.4588/0.5872, allocations: 192.2 MB / 0.7673 GB, free: 12.07 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.007228/0.5945, allocations: 5.448 MB / 0.7727 GB, free: 6.605 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006322/0.5952, allocations: 11.94 kB / 0.7727 GB, free: 6.594 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001087/0.5963, allocations: 413.3 kB / 0.7731 GB, free: 6.188 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003768/0.6001, allocations: 1.357 MB / 0.7744 GB, free: 4.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.6024, allocations: 0.8291 MB / 0.7752 GB, free: 4 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004245/0.6067, allocations: 2.539 MB / 0.7777 GB, free: 1.453 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004394/0.6072, allocations: 223.4 kB / 0.7779 GB, free: 1.223 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003437/0.6106, allocations: 1.785 MB / 0.7796 GB, free: 15.43 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00112/0.6118, allocations: 0.6695 MB / 0.7803 GB, free: 14.76 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001714/0.612, allocations: 76 kB / 0.7804 GB, free: 14.69 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003148/0.6151, allocations: 1.213 MB / 0.7815 GB, free: 13.47 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002729/0.6154, allocations: 191.1 kB / 0.7817 GB, free: 13.29 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006528/0.6161, allocations: 445.8 kB / 0.7821 GB, free: 12.85 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003836/0.6199, allocations: 1.604 MB / 0.7837 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.62, allocations: 0 / 0.7837 GB, free: 11.24 MB / 0.6231 GB Notification: Performance of FrontEnd: time 2.164e-06/0.62, allocations: 4 kB / 0.7837 GB, free: 11.23 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.635e-05/0.62, allocations: 4 kB / 0.7837 GB, free: 11.23 MB / 0.6231 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003753/0.6238, allocations: 1.457 MB / 0.7851 GB, free: 9.703 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.6239, allocations: 12.03 kB / 0.7852 GB, free: 9.691 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.624, allocations: 106.5 kB / 0.7853 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.6251, allocations: 171.3 kB / 0.7854 GB, free: 9.41 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008441/0.626, allocations: 0.5025 MB / 0.7859 GB, free: 8.867 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.6261, allocations: 71.02 kB / 0.786 GB, free: 8.793 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001463/0.6263, allocations: 71.98 kB / 0.786 GB, free: 8.723 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.6281, allocations: 0.8116 MB / 0.7868 GB, free: 7.883 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.795e-05/0.6282, allocations: 0 / 0.7868 GB, free: 7.883 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.239e-05/0.6283, allocations: 27.98 kB / 0.7869 GB, free: 7.855 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.581e-05/0.6283, allocations: 12.88 kB / 0.7869 GB, free: 7.844 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002002/0.6303, allocations: 0.6969 MB / 0.7876 GB, free: 7.145 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00535/0.6357, allocations: 3.574 MB / 0.791 GB, free: 3.254 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.6377, allocations: 0.7116 MB / 0.7917 GB, free: 2.527 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009351/0.6387, allocations: 342.5 kB / 0.7921 GB, free: 2.188 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009222/0.6396, allocations: 0.4899 MB / 0.7925 GB, free: 1.605 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001203/0.6408, allocations: 0.513 MB / 0.7931 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=69): time 3.206e-06/0.6409, allocations: 0 / 0.7931 GB, free: 1.078 MB / 0.6231 GB Notification: Performance of matching and sorting (n=69): time 0.003806/0.6447, allocations: 1.344 MB / 0.7944 GB, free: 15.68 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.695e-05/0.6448, allocations: 85.11 kB / 0.7944 GB, free: 15.58 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006913/0.6455, allocations: 0.5225 MB / 0.795 GB, free: 15.05 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.29e-05/0.6456, allocations: 41.7 kB / 0.795 GB, free: 15 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.00027/0.6458, allocations: 333 kB / 0.7953 GB, free: 14.67 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002323/0.6461, allocations: 237.9 kB / 0.7955 GB, free: 14.44 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002889/0.6464, allocations: 174.6 kB / 0.7957 GB, free: 14.26 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.6466, allocations: 374.8 kB / 0.7961 GB, free: 13.89 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008762/0.6475, allocations: 289.8 kB / 0.7963 GB, free: 13.6 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009695/0.6485, allocations: 402.2 kB / 0.7967 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00188/0.6503, allocations: 0.7505 MB / 0.7975 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.6504, allocations: 0 / 0.7975 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002628/0.653, allocations: 1.003 MB / 0.7984 GB, free: 11.35 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-05/0.6531, allocations: 63.44 kB / 0.7985 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.665e-05/0.6532, allocations: 11.98 kB / 0.7985 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004069/0.6536, allocations: 85.59 kB / 0.7986 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007573/0.6543, allocations: 183.8 kB / 0.7988 GB, free: 11 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002731/0.6571, allocations: 3.064 MB / 0.8018 GB, free: 7.656 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008306/0.658, allocations: 111.5 kB / 0.8019 GB, free: 7.547 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000176/0.6581, allocations: 76.48 kB / 0.8019 GB, free: 7.473 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 10 (trapezoid.count,$PRE.trapezoid.count,trapezoid.T_start,$PRE.trapezoid.T_start,$whenCondition2,trapezoid1.count,$PRE.trapezoid1.count,trapezoid1.T_start,$PRE.trapezoid1.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 69 * 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.0004244/0.6586, allocations: 201.6 kB / 0.8021 GB, free: 7.266 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000186/0.6588, allocations: 75.47 kB / 0.8022 GB, free: 7.191 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.6627, allocations: 1.775 MB / 0.8039 GB, free: 5.414 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.6628, allocations: 8 kB / 0.8039 GB, free: 5.406 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.6628, allocations: 4 kB / 0.8039 GB, free: 5.402 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.6628, allocations: 7.922 kB / 0.804 GB, free: 5.395 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.6666, allocations: 1.916 MB / 0.8058 GB, free: 3.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.923e-05/0.6667, allocations: 11.98 kB / 0.8058 GB, free: 3.395 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006772/0.6674, allocations: 171.8 kB / 0.806 GB, free: 3.227 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003016/0.6677, allocations: 85.58 kB / 0.8061 GB, free: 3.137 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-05/0.6678, allocations: 44 kB / 0.8061 GB, free: 3.094 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002503/0.6703, allocations: 3.062 MB / 0.8091 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.6703, allocations: 3.938 kB / 0.8091 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003347/0.6737, allocations: 1.453 MB / 0.8105 GB, free: 14.26 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003624/0.6741, allocations: 244.2 kB / 0.8108 GB, free: 14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.6742, allocations: 16 kB / 0.8108 GB, free: 13.99 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006002/0.6748, allocations: 59.92 kB / 0.8108 GB, free: 13.93 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002631/0.6751, allocations: 120 kB / 0.811 GB, free: 13.81 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.6752, allocations: 75.97 kB / 0.811 GB, free: 13.74 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0004468/0.6757, allocations: 370.8 kB / 0.8114 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6757, allocations: 0 / 0.8114 GB, free: 13.38 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001031/0.6767, allocations: 347.3 kB / 0.8117 GB, free: 13.04 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (transportDelay1.x,flowResistance1.rear.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,trapezoid1.T_start,trapezoid1.count,$whenCondition2,trapezoid.T_start,trapezoid.count) * Number of discrete states: 2 (trapezoid.count,trapezoid1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 56 * 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.004464/0.6812, allocations: 2.323 MB / 0.814 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002667/0.6839, allocations: 1.217 MB / 0.8152 GB, free: 9.391 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.6839, allocations: 0 / 0.8152 GB, free: 9.391 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.6854, allocations: 0.7893 MB / 0.8159 GB, free: 8.551 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001346/0.6868, allocations: 243.8 kB / 0.8162 GB, free: 8.316 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/0.6992, allocations: 6.712 MB / 0.8227 GB, free: 1.406 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005541/0.6998, allocations: 0.9274 MB / 0.8236 GB, free: 464 kB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0017/0.7015, allocations: 0.9676 MB / 0.8246 GB, free: 15.49 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000723/0.7022, allocations: 383.2 kB / 0.8249 GB, free: 15.12 MB / 0.67 GB Notification: Performance of SimCode: time 6.01e-07/0.7022, allocations: 0 / 0.8249 GB, free: 15.12 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3106/1.013, allocations: 24.82 MB / 0.8492 GB, free: 229.2 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.79, allocations: 3.125 kB / 0.8492 GB, free: 229.2 MB / 0.67 GB (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.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_Undirected_Processes_Tests_TransportDelay.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TransportDelay_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches