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.006245/0.006245, allocations: 99.41 kB / 15.73 MB, free: 6.02 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.001676/0.001676, allocations: 190.9 kB / 16.67 MB, free: 5.938 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.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6928/0.6928, allocations: 89.47 MB / 380 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002253/0.002254, allocations: 87.84 kB / 0.5139 GB, free: 7.148 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2896, allocations: 67.28 MB / 0.5796 GB, free: 15.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.4828/0.7724, allocations: 192.2 MB / 0.7673 GB, free: 1.449 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00528/0.7777, allocations: 5.458 MB / 0.7726 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004698/0.7782, allocations: 12.22 kB / 0.7727 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000929/0.7792, allocations: 404.2 kB / 0.773 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00297/0.7822, allocations: 1.36 MB / 0.7744 GB, free: 1.344 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001761/0.7839, allocations: 0.8324 MB / 0.7752 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002832/0.7868, allocations: 2.529 MB / 0.7776 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002908/0.7871, allocations: 230.9 kB / 0.7779 GB, free: 1.238 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002516/0.7896, allocations: 1.779 MB / 0.7796 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007313/0.7904, allocations: 0.6772 MB / 0.7803 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.626e-05/0.7905, allocations: 75.28 kB / 0.7803 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.7927, allocations: 1.215 MB / 0.7815 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000129/0.7929, allocations: 186.1 kB / 0.7817 GB, free: 1.191 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003378/0.7932, allocations: 448.7 kB / 0.7821 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001811/0.795, allocations: 1.609 MB / 0.7837 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.795, allocations: 0 / 0.7837 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.462e-06/0.795, allocations: 0 / 0.7837 GB, free: 0.9023 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.018e-05/0.7951, allocations: 1.094 kB / 0.7837 GB, free: 0.9023 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002875/0.7979, allocations: 1.471 MB / 0.7851 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.798, allocations: 10.06 kB / 0.7852 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001196/0.7981, allocations: 101.7 kB / 0.7852 GB, free: 16.03 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009941/0.7991, allocations: 186.2 kB / 0.7854 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006016/0.7997, allocations: 0.5009 MB / 0.7859 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/0.7998, allocations: 78.2 kB / 0.786 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.7999, allocations: 64.03 kB / 0.786 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001425/0.8014, allocations: 0.8044 MB / 0.7868 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.8014, allocations: 3.375 kB / 0.7868 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/0.8015, allocations: 29.69 kB / 0.7869 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.8015, allocations: 16.53 kB / 0.7869 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.8032, allocations: 0.6928 MB / 0.7876 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004311/0.8075, allocations: 3.572 MB / 0.791 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001722/0.8092, allocations: 0.6994 MB / 0.7917 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007996/0.81, allocations: 347.8 kB / 0.7921 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008882/0.8109, allocations: 0.4922 MB / 0.7925 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001057/0.812, allocations: 0.5076 MB / 0.793 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=69): time 2.525e-06/0.812, allocations: 1 kB / 0.793 GB, free: 12.81 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69): time 0.003401/0.8154, allocations: 1.341 MB / 0.7943 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.8155, allocations: 91.31 kB / 0.7944 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005865/0.8161, allocations: 0.5244 MB / 0.7949 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.626e-05/0.8162, allocations: 42.39 kB / 0.795 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002343/0.8164, allocations: 330 kB / 0.7953 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001917/0.8166, allocations: 238.3 kB / 0.7955 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000252/0.8169, allocations: 171.6 kB / 0.7957 GB, free: 11.94 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001774/0.8171, allocations: 380.3 kB / 0.7961 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007713/0.8178, allocations: 294.3 kB / 0.7963 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008391/0.8187, allocations: 401.4 kB / 0.7967 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001634/0.8203, allocations: 0.7429 MB / 0.7974 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.8203, allocations: 2.406 kB / 0.7974 GB, free: 11.36 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002165/0.8225, allocations: 1.012 MB / 0.7984 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.52e-05/0.8226, allocations: 62.44 kB / 0.7985 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/0.8226, allocations: 12.41 kB / 0.7985 GB, free: 11.13 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.8229, allocations: 81.47 kB / 0.7986 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006498/0.8236, allocations: 189.9 kB / 0.7988 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.8261, allocations: 3.066 MB / 0.8018 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006424/0.8267, allocations: 99.41 kB / 0.8019 GB, free: 8.367 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.8268, allocations: 80.59 kB / 0.8019 GB, free: 8.367 MB / 0.5919 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.0003025/0.8272, allocations: 201.8 kB / 0.8021 GB, free: 8.246 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001268/0.8273, allocations: 71.81 kB / 0.8022 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003618/0.8309, allocations: 1.783 MB / 0.8039 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.8309, allocations: 6.375 kB / 0.8039 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.8309, allocations: 5.312 kB / 0.8039 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.831, allocations: 6.219 kB / 0.804 GB, free: 8.016 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003308/0.8343, allocations: 1.9 MB / 0.8058 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.856e-05/0.8343, allocations: 10.56 kB / 0.8058 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006057/0.8349, allocations: 167.9 kB / 0.806 GB, free: 7.559 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00026/0.8352, allocations: 96.83 kB / 0.8061 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.189e-05/0.8353, allocations: 43.58 kB / 0.8061 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002393/0.8377, allocations: 3.072 MB / 0.8091 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.8377, allocations: 0 / 0.8091 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.8407, allocations: 1.458 MB / 0.8105 GB, free: 4.48 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003046/0.841, allocations: 240.9 kB / 0.8108 GB, free: 4.336 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.8411, allocations: 20.09 kB / 0.8108 GB, free: 4.332 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000578/0.8417, allocations: 58.12 kB / 0.8108 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.8419, allocations: 118.1 kB / 0.811 GB, free: 4.32 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.842, allocations: 78.59 kB / 0.811 GB, free: 4.316 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003829/0.8424, allocations: 370.8 kB / 0.8114 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.81e-07/0.8424, allocations: 0 / 0.8114 GB, free: 4.23 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001008/0.8435, allocations: 349.1 kB / 0.8117 GB, free: 4.184 MB / 0.5919 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.004124/0.8476, allocations: 2.31 MB / 0.814 GB, free: 2.969 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002469/0.8501, allocations: 1.215 MB / 0.8152 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.8501, allocations: 0 / 0.8152 GB, free: 2.156 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.8515, allocations: 0.7959 MB / 0.8159 GB, free: 1.602 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.8527, allocations: 256.1 kB / 0.8162 GB, free: 1.465 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/0.8647, allocations: 6.702 MB / 0.8227 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005771/0.8653, allocations: 0.9234 MB / 0.8236 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00175/0.8671, allocations: 0.9742 MB / 0.8246 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007384/0.8678, allocations: 391.2 kB / 0.8249 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of SimCode: time 5.21e-07/0.8678, allocations: 0 / 0.8249 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0639/0.9318, allocations: 24.84 MB / 0.8492 GB, free: 15.97 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.31/13.24, allocations: 10.12 kB / 0.8492 GB, free: 15.96 MB / 0.6387 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TransportDelay_fmu --startTime=0 --stopTime=2.5 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TransportDelay.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay_res.mat","/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