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-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.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.005655/0.005655, allocations: 96.53 kB / 15.73 MB, free: 6.043 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.001345/0.001345, allocations: 196.6 kB / 16.67 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6918/0.6918, allocations: 91.19 MB / 381.7 MB, free: 9.355 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002477/0.002477, allocations: 75.88 kB / 0.5164 GB, free: 9.531 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1579, allocations: 67.7 MB / 0.5825 GB, free: 5.75 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.5199/0.6779, allocations: 192.4 MB / 0.7703 GB, free: 7.836 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.008216/0.6861, allocations: 5.527 MB / 0.7757 GB, free: 2.297 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.6873, allocations: 35.75 kB / 0.7758 GB, free: 2.262 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001437/0.6888, allocations: 417.2 kB / 0.7762 GB, free: 1.852 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005055/0.6939, allocations: 1.436 MB / 0.7776 GB, free: 424 kB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003087/0.697, allocations: 0.8222 MB / 0.7784 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005842/0.7029, allocations: 2.656 MB / 0.781 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006615/0.7036, allocations: 240.9 kB / 0.7812 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004081/0.7077, allocations: 1.866 MB / 0.783 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.7091, allocations: 0.6926 MB / 0.7837 GB, free: 10.11 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0003375/0.7094, allocations: 72 kB / 0.7838 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003788/0.7132, allocations: 1.221 MB / 0.785 GB, free: 8.816 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0004503/0.7137, allocations: 195.1 kB / 0.7851 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0009389/0.7147, allocations: 485.4 kB / 0.7856 GB, free: 8.148 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.005123/0.7198, allocations: 1.732 MB / 0.7873 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.7198, allocations: 0 / 0.7873 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.823e-06/0.7198, allocations: 0 / 0.7873 GB, free: 6.41 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 5.605e-05/0.7199, allocations: 0 / 0.7873 GB, free: 6.41 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.004234/0.7241, allocations: 1.601 MB / 0.7889 GB, free: 4.742 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7242, allocations: 8.031 kB / 0.7889 GB, free: 4.734 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001693/0.7244, allocations: 113.1 kB / 0.789 GB, free: 4.617 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001243/0.7256, allocations: 191.2 kB / 0.7892 GB, free: 4.43 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001451/0.7271, allocations: 0.7136 MB / 0.7899 GB, free: 3.676 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.562e-05/0.7272, allocations: 78.95 kB / 0.7899 GB, free: 3.594 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000168/0.7274, allocations: 67.94 kB / 0.79 GB, free: 3.527 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00192/0.7293, allocations: 0.8116 MB / 0.7908 GB, free: 2.688 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.618e-05/0.7294, allocations: 0 / 0.7908 GB, free: 2.688 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.483e-05/0.7294, allocations: 24 kB / 0.7908 GB, free: 2.664 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.7295, allocations: 20 kB / 0.7908 GB, free: 2.645 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001949/0.7314, allocations: 0.6969 MB / 0.7915 GB, free: 1.949 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005557/0.737, allocations: 3.604 MB / 0.795 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.7391, allocations: 0.7086 MB / 0.7957 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009399/0.74, allocations: 343 kB / 0.7961 GB, free: 12.96 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009516/0.741, allocations: 0.4977 MB / 0.7965 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001229/0.7423, allocations: 0.5164 MB / 0.797 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=69): time 5.11e-06/0.7423, allocations: 3.984 kB / 0.797 GB, free: 11.84 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69): time 0.004079/0.7464, allocations: 1.351 MB / 0.7984 GB, free: 10.43 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/0.7465, allocations: 93.05 kB / 0.7985 GB, free: 10.32 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.7475, allocations: 0.661 MB / 0.7991 GB, free: 9.652 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 9.779e-05/0.7476, allocations: 37.7 kB / 0.7991 GB, free: 9.609 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000319/0.748, allocations: 393.1 kB / 0.7995 GB, free: 9.223 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002588/0.7482, allocations: 241.9 kB / 0.7997 GB, free: 8.984 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003236/0.7486, allocations: 170.6 kB / 0.7999 GB, free: 8.812 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.7487, allocations: 330 kB / 0.8002 GB, free: 8.484 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009272/0.7496, allocations: 293.8 kB / 0.8005 GB, free: 8.195 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.7506, allocations: 398.3 kB / 0.8009 GB, free: 7.773 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001934/0.7526, allocations: 0.7351 MB / 0.8016 GB, free: 6.992 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.236e-06/0.7526, allocations: 4 kB / 0.8016 GB, free: 6.988 MB / 0.6387 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00282/0.7555, allocations: 1.03 MB / 0.8026 GB, free: 5.934 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.985e-05/0.7555, allocations: 59.41 kB / 0.8027 GB, free: 5.863 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-05/0.7556, allocations: 11.98 kB / 0.8027 GB, free: 5.852 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003831/0.756, allocations: 89.81 kB / 0.8028 GB, free: 5.758 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008068/0.7568, allocations: 183.7 kB / 0.8029 GB, free: 5.578 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002758/0.7596, allocations: 3.062 MB / 0.8059 GB, free: 2.246 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009047/0.7605, allocations: 96.36 kB / 0.806 GB, free: 2.152 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002668/0.7608, allocations: 84.05 kB / 0.8061 GB, free: 2.07 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.0004739/0.7613, allocations: 205.6 kB / 0.8063 GB, free: 1.859 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.7615, allocations: 99.38 kB / 0.8064 GB, free: 1.762 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004146/0.7657, allocations: 1.791 MB / 0.8081 GB, free: 15.96 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.7657, allocations: 11.94 kB / 0.8082 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7658, allocations: 0 / 0.8082 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.7658, allocations: 7.969 kB / 0.8082 GB, free: 15.94 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004405/0.7702, allocations: 1.956 MB / 0.8101 GB, free: 13.91 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.779e-05/0.7702, allocations: 15.98 kB / 0.8101 GB, free: 13.89 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007138/0.771, allocations: 167.8 kB / 0.8102 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003263/0.7713, allocations: 85.64 kB / 0.8103 GB, free: 13.64 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.389e-05/0.7714, allocations: 43.97 kB / 0.8104 GB, free: 13.6 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002563/0.774, allocations: 3.055 MB / 0.8134 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.774, allocations: 4.031 kB / 0.8134 GB, free: 10.26 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003603/0.7776, allocations: 1.475 MB / 0.8148 GB, free: 8.75 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006755/0.7783, allocations: 256.2 kB / 0.815 GB, free: 8.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.7786, allocations: 16 kB / 0.8151 GB, free: 8.465 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007855/0.7794, allocations: 55.88 kB / 0.8151 GB, free: 8.41 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003796/0.7798, allocations: 119.9 kB / 0.8152 GB, free: 8.293 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001458/0.7799, allocations: 67.98 kB / 0.8153 GB, free: 8.227 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000836/0.7808, allocations: 463 kB / 0.8157 GB, free: 7.781 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7808, allocations: 0 / 0.8157 GB, free: 7.781 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00151/0.7823, allocations: 351.3 kB / 0.8161 GB, free: 7.438 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.005032/0.7873, allocations: 2.356 MB / 0.8184 GB, free: 5.051 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002924/0.7903, allocations: 1.214 MB / 0.8195 GB, free: 3.758 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.7903, allocations: 4 kB / 0.8196 GB, free: 3.754 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.7919, allocations: 0.789 MB / 0.8203 GB, free: 2.914 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001556/0.7935, allocations: 258.9 kB / 0.8206 GB, free: 2.664 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01447/0.808, allocations: 7.277 MB / 0.8277 GB, free: 11.17 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.8086, allocations: 0.9668 MB / 0.8286 GB, free: 10.17 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001864/0.8105, allocations: 0.9993 MB / 0.8296 GB, free: 9.176 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008417/0.8113, allocations: 447.2 kB / 0.83 GB, free: 8.738 MB / 0.67 GB Notification: Performance of SimCode: time 9.02e-07/0.8114, allocations: 0 / 0.83 GB, free: 8.738 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3491/1.16, allocations: 26.55 MB / 0.8559 GB, free: 224.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/14.07, allocations: 11.34 kB / 0.856 GB, free: 224.4 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