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/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.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.007759/0.00776, allocations: 99.67 kB / 15.73 MB, free: 6.008 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.001924/0.001924, allocations: 193.3 kB / 16.67 MB, free: 5.93 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.7144/0.7144, allocations: 89.46 MB / 380 MB, free: 8.598 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 83.84 kB / 0.5139 GB, free: 7.184 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.3118, allocations: 67.29 MB / 0.5796 GB, free: 15.22 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.5165/0.8284, allocations: 189 MB / 0.7642 GB, free: 1.492 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006207/0.8347, allocations: 7.264 MB / 0.7713 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005095/0.8352, allocations: 11.69 kB / 0.7713 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009376/0.8362, allocations: 369.5 kB / 0.7717 GB, free: 1.41 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002861/0.8391, allocations: 1.235 MB / 0.7729 GB, free: 1.371 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001516/0.8406, allocations: 0.6724 MB / 0.7735 GB, free: 1.355 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002757/0.8434, allocations: 2.249 MB / 0.7757 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.8437, allocations: 187 kB / 0.7759 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.8458, allocations: 1.548 MB / 0.7774 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000615/0.8465, allocations: 0.561 MB / 0.778 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.197e-05/0.8465, allocations: 54.5 kB / 0.778 GB, free: 1.289 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.8487, allocations: 1.146 MB / 0.7792 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001165/0.8488, allocations: 148.7 kB / 0.7793 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003161/0.8491, allocations: 363.8 kB / 0.7796 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001687/0.8508, allocations: 1.367 MB / 0.781 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.8508, allocations: 0 / 0.781 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8508, allocations: 0.8125 kB / 0.781 GB, free: 1.09 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 8.586e-06/0.8508, allocations: 2.562 kB / 0.781 GB, free: 1.09 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.002528/0.8534, allocations: 1.261 MB / 0.7822 GB, free: 16.32 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.49e-05/0.8534, allocations: 15.58 kB / 0.7822 GB, free: 16.31 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001187/0.8536, allocations: 86.22 kB / 0.7823 GB, free: 16.27 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008847/0.8545, allocations: 147.8 kB / 0.7824 GB, free: 16.23 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006345/0.8551, allocations: 462.9 kB / 0.7829 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.8552, allocations: 42.5 kB / 0.7829 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001027/0.8553, allocations: 49.31 kB / 0.783 GB, free: 15.95 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001088/0.8564, allocations: 0.5939 MB / 0.7836 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.8564, allocations: 0.875 kB / 0.7836 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.41e-05/0.8565, allocations: 21.78 kB / 0.7836 GB, free: 15.87 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.8565, allocations: 17.75 kB / 0.7836 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/0.8575, allocations: 467.2 kB / 0.784 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003279/0.8608, allocations: 2.634 MB / 0.7866 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009471/0.8618, allocations: 467.8 kB / 0.7871 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004836/0.8623, allocations: 250.6 kB / 0.7873 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002947/0.8626, allocations: 265.3 kB / 0.7875 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000676/0.8633, allocations: 390.1 kB / 0.7879 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=54): time 1.793e-06/0.8633, allocations: 0 / 0.7879 GB, free: 13.89 MB / 0.5919 GB Notification: Performance of matching and sorting (n=54): time 0.002351/0.8657, allocations: 1.021 MB / 0.7889 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.391e-05/0.8657, allocations: 88.23 kB / 0.789 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/0.8662, allocations: 462.3 kB / 0.7894 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.423e-05/0.8662, allocations: 37.58 kB / 0.7895 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001852/0.8664, allocations: 287.2 kB / 0.7898 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.8666, allocations: 186.2 kB / 0.7899 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000203/0.8668, allocations: 137.5 kB / 0.7901 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001714/0.867, allocations: 368.2 kB / 0.7904 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004666/0.8675, allocations: 198.8 kB / 0.7906 GB, free: 12.76 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005071/0.868, allocations: 260.6 kB / 0.7909 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.869, allocations: 0.5166 MB / 0.7914 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.869, allocations: 0 / 0.7914 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001499/0.8705, allocations: 0.7566 MB / 0.7921 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.29e-05/0.8706, allocations: 65.47 kB / 0.7922 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.169e-05/0.8706, allocations: 18.3 kB / 0.7922 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.8709, allocations: 84.31 kB / 0.7923 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000422/0.8714, allocations: 121.8 kB / 0.7924 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002587/0.874, allocations: 3.059 MB / 0.7954 GB, free: 9.637 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.8744, allocations: 61.14 kB / 0.7954 GB, free: 9.613 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.597e-05/0.8745, allocations: 63.38 kB / 0.7955 GB, free: 9.613 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.0002741/0.8748, allocations: 189.9 kB / 0.7957 GB, free: 9.488 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.8749, allocations: 58.81 kB / 0.7957 GB, free: 9.457 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.8775, allocations: 1.294 MB / 0.797 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/0.8775, allocations: 5.781 kB / 0.797 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.8775, allocations: 5.812 kB / 0.797 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.8775, allocations: 2.719 kB / 0.797 GB, free: 9.336 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.8801, allocations: 1.542 MB / 0.7985 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.784e-05/0.8801, allocations: 15.7 kB / 0.7985 GB, free: 8.891 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004263/0.8806, allocations: 125 kB / 0.7986 GB, free: 8.887 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.8808, allocations: 89.06 kB / 0.7987 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/0.8809, allocations: 34.61 kB / 0.7987 GB, free: 8.863 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002465/0.8834, allocations: 3.06 MB / 0.8017 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8834, allocations: 1.812 kB / 0.8017 GB, free: 6.137 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.8853, allocations: 1.117 MB / 0.8028 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002491/0.8856, allocations: 205.2 kB / 0.803 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.8857, allocations: 13.81 kB / 0.803 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004274/0.8862, allocations: 31.8 kB / 0.8031 GB, free: 5.703 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.8864, allocations: 94.8 kB / 0.8032 GB, free: 5.699 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.495e-05/0.8865, allocations: 68.17 kB / 0.8032 GB, free: 5.695 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003081/0.8868, allocations: 321.4 kB / 0.8035 GB, free: 5.609 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.8e-07/0.8868, allocations: 4 kB / 0.8035 GB, free: 5.605 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008648/0.8876, allocations: 303.7 kB / 0.8038 GB, free: 5.562 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.003267/0.8909, allocations: 1.97 MB / 0.8057 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001729/0.8927, allocations: 0.9806 MB / 0.8067 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.8927, allocations: 2.219 kB / 0.8067 GB, free: 4.176 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.8937, allocations: 0.6633 MB / 0.8074 GB, free: 3.82 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009872/0.8947, allocations: 203.2 kB / 0.8075 GB, free: 3.785 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008401/0.9031, allocations: 5.52 MB / 0.8129 GB, free: 1.613 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.9036, allocations: 0.8848 MB / 0.8138 GB, free: 0.9062 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001048/0.9047, allocations: 0.6528 MB / 0.8144 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004866/0.9052, allocations: 295.4 kB / 0.8147 GB, free: 0.7852 MB / 0.5919 GB Notification: Performance of SimCode: time 5.11e-07/0.9052, allocations: 3.938 kB / 0.8147 GB, free: 0.7812 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05539/0.9606, allocations: 21.28 MB / 0.8355 GB, free: 12.95 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/12.06, allocations: 19.81 kB / 0.8355 GB, free: 12.93 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