Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_dev_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.008672/0.008681, allocations: 97.2 kB / 15.73 MB, free: 6.039 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.001731/0.001731, allocations: 201.9 kB / 16.68 MB, free: 5.961 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.558/1.558, 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.8791/0.8791, allocations: 93.71 MB / 384.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002374/0.002374, allocations: 79.88 kB / 0.52 GB, free: 6.297 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2105/0.2129, allocations: 68.27 MB / 0.5866 GB, free: 1.953 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.8136/1.027, allocations: 189.2 MB / 0.7714 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.01203/1.039, allocations: 7.356 MB / 0.7786 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001319/1.04, allocations: 31.81 kB / 0.7786 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001568/1.042, allocations: 381.5 kB / 0.779 GB, free: 13.64 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.005538/1.047, allocations: 1.298 MB / 0.7802 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002382/1.05, allocations: 0.6694 MB / 0.7809 GB, free: 11.68 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.005101/1.055, allocations: 2.418 MB / 0.7833 GB, free: 9.25 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005212/1.055, allocations: 215.6 kB / 0.7835 GB, free: 9.027 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003537/1.059, allocations: 1.629 MB / 0.7851 GB, free: 7.395 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/1.06, allocations: 0.5798 MB / 0.7856 GB, free: 6.812 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002983/1.061, allocations: 56 kB / 0.7857 GB, free: 6.758 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003523/1.064, allocations: 1.155 MB / 0.7868 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0003109/1.064, allocations: 151.3 kB / 0.7869 GB, free: 5.453 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0007852/1.065, allocations: 405.6 kB / 0.7873 GB, free: 5.055 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.004148/1.069, allocations: 1.495 MB / 0.7888 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.069, allocations: 0 / 0.7888 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.422e-06/1.069, allocations: 0 / 0.7888 GB, free: 3.555 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.708e-05/1.069, allocations: 0 / 0.7888 GB, free: 3.555 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.004119/1.074, allocations: 1.408 MB / 0.7902 GB, free: 2.082 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/1.074, allocations: 8.031 kB / 0.7902 GB, free: 2.074 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001839/1.074, allocations: 86.52 kB / 0.7903 GB, free: 1.98 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001279/1.075, allocations: 171.2 kB / 0.7904 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/1.077, allocations: 0.6709 MB / 0.7911 GB, free: 1.098 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.87e-05/1.077, allocations: 37 kB / 0.7911 GB, free: 1.062 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/1.077, allocations: 55.94 kB / 0.7912 GB, free: 1.008 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001429/1.078, allocations: 0.5897 MB / 0.7917 GB, free: 408 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.328e-05/1.078, allocations: 0 / 0.7917 GB, free: 408 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.747e-05/1.078, allocations: 20 kB / 0.7918 GB, free: 388 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.864e-05/1.079, allocations: 12 kB / 0.7918 GB, free: 376 kB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/1.08, allocations: 464.2 kB / 0.7922 GB, free: 15.91 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/1.084, allocations: 2.681 MB / 0.7948 GB, free: 12.99 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/1.086, allocations: 461.5 kB / 0.7953 GB, free: 12.52 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005989/1.086, allocations: 249.5 kB / 0.7955 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000383/1.087, allocations: 275.2 kB / 0.7958 GB, free: 11.95 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008768/1.087, allocations: 390.4 kB / 0.7961 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=54): time 2.495e-06/1.087, allocations: 0 / 0.7961 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of matching and sorting (n=54): time 0.00295/1.09, allocations: 1.045 MB / 0.7972 GB, free: 10.45 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/1.09, allocations: 81.11 kB / 0.7972 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008072/1.091, allocations: 0.6021 MB / 0.7978 GB, free: 9.742 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.465e-05/1.091, allocations: 33.7 kB / 0.7979 GB, free: 9.703 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/1.092, allocations: 353.2 kB / 0.7982 GB, free: 9.355 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/1.092, allocations: 190.4 kB / 0.7984 GB, free: 9.168 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/1.092, allocations: 138.2 kB / 0.7985 GB, free: 9.027 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001722/1.092, allocations: 330 kB / 0.7988 GB, free: 8.699 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005595/1.093, allocations: 197 kB / 0.799 GB, free: 8.508 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006188/1.094, allocations: 262.6 kB / 0.7993 GB, free: 8.23 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0012/1.095, allocations: 0.5166 MB / 0.7998 GB, free: 7.684 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.496e-06/1.095, allocations: 0 / 0.7998 GB, free: 7.684 MB / 0.6387 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001848/1.097, allocations: 0.7792 MB / 0.8005 GB, free: 6.879 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 8.734e-05/1.097, allocations: 67.39 kB / 0.8006 GB, free: 6.801 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-05/1.097, allocations: 16.53 kB / 0.8006 GB, free: 6.785 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/1.097, allocations: 77.66 kB / 0.8007 GB, free: 6.703 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/1.098, allocations: 127.9 kB / 0.8008 GB, free: 6.578 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003102/1.101, allocations: 3.051 MB / 0.8038 GB, free: 3.25 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005872/1.101, allocations: 67.61 kB / 0.8038 GB, free: 3.184 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/1.102, allocations: 63.97 kB / 0.8039 GB, free: 3.121 MB / 0.6387 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.0004197/1.102, allocations: 189.7 kB / 0.8041 GB, free: 2.926 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001607/1.102, allocations: 83.42 kB / 0.8042 GB, free: 2.844 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003048/1.105, allocations: 1.306 MB / 0.8054 GB, free: 1.523 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/1.105, allocations: 11.98 kB / 0.8055 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/1.105, allocations: 0 / 0.8055 GB, free: 1.512 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/1.105, allocations: 8 kB / 0.8055 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/1.108, allocations: 1.587 MB / 0.807 GB, free: 15.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/1.108, allocations: 11.98 kB / 0.807 GB, free: 15.83 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004943/1.109, allocations: 115.9 kB / 0.8071 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003314/1.109, allocations: 85.58 kB / 0.8072 GB, free: 15.63 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/1.109, allocations: 43.67 kB / 0.8073 GB, free: 15.59 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003192/1.113, allocations: 3.051 MB / 0.8102 GB, free: 12.26 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/1.113, allocations: 4.031 kB / 0.8102 GB, free: 12.25 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002615/1.115, allocations: 1.135 MB / 0.8114 GB, free: 11.09 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003566/1.116, allocations: 220.4 kB / 0.8116 GB, free: 10.86 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/1.116, allocations: 12 kB / 0.8116 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004911/1.116, allocations: 40.23 kB / 0.8116 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/1.116, allocations: 91.89 kB / 0.8117 GB, free: 10.71 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/1.117, allocations: 63.92 kB / 0.8118 GB, free: 10.65 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0006736/1.117, allocations: 419 kB / 0.8122 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/1.117, allocations: 0 / 0.8122 GB, free: 10.25 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001377/1.119, allocations: 303.4 kB / 0.8124 GB, free: 9.953 MB / 0.6544 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.004187/1.123, allocations: 1.992 MB / 0.8144 GB, free: 7.93 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002297/1.125, allocations: 0.9827 MB / 0.8154 GB, free: 6.875 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/1.125, allocations: 4 kB / 0.8154 GB, free: 6.871 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/1.126, allocations: 0.6641 MB / 0.816 GB, free: 6.156 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001267/1.128, allocations: 224.5 kB / 0.8162 GB, free: 5.945 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/1.141, allocations: 6.109 MB / 0.8222 GB, free: 15.67 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007737/1.141, allocations: 0.9309 MB / 0.8231 GB, free: 14.71 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001459/1.143, allocations: 0.6948 MB / 0.8238 GB, free: 14.02 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006997/1.144, allocations: 359.3 kB / 0.8241 GB, free: 13.67 MB / 0.67 GB Notification: Performance of SimCode: time 5.91e-07/1.144, allocations: 0 / 0.8241 GB, free: 13.67 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06862/1.212, allocations: 23.14 MB / 0.8467 GB, free: 6.77 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/14.63, allocations: 0 / 0.8467 GB, free: 6.77 MB / 0.6856 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Processes.Tests.TransportDelay.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Processes_Tests_TransportDelay.fmu > ThermofluidStream_dev_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches