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.006643/0.006643, allocations: 98.55 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.001234/0.001234, allocations: 201.3 kB / 16.68 MB, free: 5.965 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.277/1.277, 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.6387/0.6387, allocations: 91.19 MB / 381.7 MB, free: 9.328 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 79.88 kB / 0.5164 GB, free: 9.484 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1249, allocations: 67.7 MB / 0.5825 GB, free: 5.703 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.4702/0.5952, allocations: 192.4 MB / 0.7703 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.007205/0.6024, allocations: 5.523 MB / 0.7757 GB, free: 2.246 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000912/0.6034, allocations: 31.81 kB / 0.7758 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.6046, allocations: 425.1 kB / 0.7762 GB, free: 1.797 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004016/0.6087, allocations: 1.426 MB / 0.7776 GB, free: 376 kB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002306/0.611, allocations: 0.8252 MB / 0.7784 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004264/0.6153, allocations: 2.656 MB / 0.781 GB, free: 12.88 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004634/0.6158, allocations: 241.1 kB / 0.7812 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003305/0.6192, allocations: 1.866 MB / 0.783 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001065/0.6203, allocations: 0.7003 MB / 0.7837 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0002426/0.6205, allocations: 72 kB / 0.7838 GB, free: 9.984 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002788/0.6233, allocations: 1.217 MB / 0.785 GB, free: 8.766 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002606/0.6236, allocations: 191.2 kB / 0.7851 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0006832/0.6243, allocations: 493.3 kB / 0.7856 GB, free: 8.094 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003401/0.6277, allocations: 1.728 MB / 0.7873 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.6277, allocations: 0 / 0.7873 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.803e-06/0.6277, allocations: 0 / 0.7873 GB, free: 6.359 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 3.918e-05/0.6278, allocations: 0 / 0.7873 GB, free: 6.359 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.003682/0.6315, allocations: 1.6 MB / 0.7889 GB, free: 4.695 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.6315, allocations: 8.031 kB / 0.7889 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000146/0.6317, allocations: 114.5 kB / 0.789 GB, free: 4.566 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001213/0.6329, allocations: 191.2 kB / 0.7892 GB, free: 4.379 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.6342, allocations: 0.7136 MB / 0.7899 GB, free: 3.625 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.013e-05/0.6343, allocations: 82.89 kB / 0.7899 GB, free: 3.539 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001588/0.6345, allocations: 75.94 kB / 0.79 GB, free: 3.465 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.6362, allocations: 0.8077 MB / 0.7908 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.503e-05/0.6362, allocations: 0 / 0.7908 GB, free: 2.629 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-05/0.6363, allocations: 20 kB / 0.7908 GB, free: 2.609 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.6363, allocations: 20 kB / 0.7908 GB, free: 2.59 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001819/0.6382, allocations: 0.7008 MB / 0.7915 GB, free: 1.891 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005085/0.6433, allocations: 3.603 MB / 0.795 GB, free: 13.97 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001987/0.6453, allocations: 0.6976 MB / 0.7957 GB, free: 13.26 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008952/0.6462, allocations: 346.5 kB / 0.7961 GB, free: 12.91 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009145/0.6472, allocations: 0.4977 MB / 0.7965 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00123/0.6484, allocations: 0.5164 MB / 0.797 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=69): time 5.009e-06/0.6484, allocations: 0 / 0.797 GB, free: 11.79 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69): time 0.003825/0.6523, allocations: 1.351 MB / 0.7984 GB, free: 10.39 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.869e-05/0.6524, allocations: 93.05 kB / 0.7984 GB, free: 10.28 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.6534, allocations: 0.6649 MB / 0.7991 GB, free: 9.602 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0001008/0.6535, allocations: 37.7 kB / 0.7991 GB, free: 9.559 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.6539, allocations: 393.1 kB / 0.7995 GB, free: 9.172 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002678/0.6541, allocations: 245.9 kB / 0.7997 GB, free: 8.93 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003436/0.6545, allocations: 170.6 kB / 0.7999 GB, free: 8.758 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.6546, allocations: 330 kB / 0.8002 GB, free: 8.43 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008685/0.6555, allocations: 291 kB / 0.8005 GB, free: 8.145 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009441/0.6565, allocations: 398.3 kB / 0.8009 GB, free: 7.723 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/0.6582, allocations: 0.7429 MB / 0.8016 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.6583, allocations: 0 / 0.8016 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002583/0.6608, allocations: 1.027 MB / 0.8026 GB, free: 5.883 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/0.6609, allocations: 59.41 kB / 0.8027 GB, free: 5.812 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.331e-05/0.661, allocations: 11.98 kB / 0.8027 GB, free: 5.801 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003776/0.6614, allocations: 89.81 kB / 0.8028 GB, free: 5.707 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007452/0.6621, allocations: 187.7 kB / 0.8029 GB, free: 5.523 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.6648, allocations: 3.055 MB / 0.8059 GB, free: 2.195 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009775/0.6658, allocations: 103.5 kB / 0.806 GB, free: 2.094 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002189/0.666, allocations: 84.05 kB / 0.8061 GB, free: 2.012 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.0005379/0.6666, allocations: 209.8 kB / 0.8063 GB, free: 1.797 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003083/0.6669, allocations: 95.38 kB / 0.8064 GB, free: 1.703 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003979/0.6709, allocations: 1.787 MB / 0.8081 GB, free: 15.9 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/0.6709, allocations: 11.94 kB / 0.8081 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.6709, allocations: 4 kB / 0.8082 GB, free: 15.89 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.671, allocations: 7.922 kB / 0.8082 GB, free: 15.88 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004134/0.6751, allocations: 1.956 MB / 0.8101 GB, free: 13.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.273e-05/0.6752, allocations: 11.98 kB / 0.8101 GB, free: 13.84 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006769/0.6759, allocations: 171.9 kB / 0.8102 GB, free: 13.67 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003179/0.6762, allocations: 77.64 kB / 0.8103 GB, free: 13.59 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.6764, allocations: 47.91 kB / 0.8104 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002336/0.6787, allocations: 3.059 MB / 0.8134 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6788, allocations: 3.984 kB / 0.8134 GB, free: 10.2 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003497/0.6823, allocations: 1.475 MB / 0.8148 GB, free: 8.691 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/0.6828, allocations: 256.2 kB / 0.815 GB, free: 8.422 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001821/0.683, allocations: 20 kB / 0.8151 GB, free: 8.402 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006574/0.6836, allocations: 51.94 kB / 0.8151 GB, free: 8.352 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002847/0.6839, allocations: 115.9 kB / 0.8152 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.6841, allocations: 71.98 kB / 0.8153 GB, free: 8.168 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000613/0.6847, allocations: 467 kB / 0.8157 GB, free: 7.719 MB / 0.6544 GB Notification: Performance of sort global known variables: time 4.41e-07/0.6847, allocations: 0 / 0.8157 GB, free: 7.719 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001231/0.6859, allocations: 347.3 kB / 0.8161 GB, free: 7.379 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.00449/0.6904, allocations: 2.347 MB / 0.8184 GB, free: 5 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002623/0.6931, allocations: 1.218 MB / 0.8195 GB, free: 3.703 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.6931, allocations: 0 / 0.8195 GB, free: 3.703 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.6947, allocations: 0.7929 MB / 0.8203 GB, free: 2.859 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.6962, allocations: 252.3 kB / 0.8206 GB, free: 2.613 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.7103, allocations: 7.276 MB / 0.8277 GB, free: 11.12 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.711, allocations: 0.9668 MB / 0.8286 GB, free: 10.12 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001744/0.7127, allocations: 0.9951 MB / 0.8296 GB, free: 9.129 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007944/0.7135, allocations: 451.2 kB / 0.83 GB, free: 8.688 MB / 0.67 GB Notification: Performance of SimCode: time 8.71e-07/0.7136, allocations: 0 / 0.83 GB, free: 8.688 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3383/1.052, allocations: 26.57 MB / 0.856 GB, free: 224.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/13, allocations: 0.9688 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