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-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: translateModel(ThermofluidStream.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008516/0.008516, allocations: 95.61 kB / 15.73 MB, free: 6.047 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.002011/0.002011, allocations: 197.7 kB / 16.67 MB, free: 5.973 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.681/0.681, allocations: 91.19 MB / 381.7 MB, free: 9.367 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001439/0.001439, allocations: 75.88 kB / 0.5168 GB, free: 9.027 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1251, allocations: 67.68 MB / 0.5829 GB, free: 5.262 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.5127/0.6378, allocations: 189.2 MB / 0.7677 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00844/0.6463, allocations: 7.328 MB / 0.7749 GB, free: 3.262 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007112/0.647, allocations: 31.81 kB / 0.7749 GB, free: 3.23 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001024/0.6481, allocations: 365.5 kB / 0.7752 GB, free: 2.871 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.6516, allocations: 1.283 MB / 0.7765 GB, free: 1.586 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002082/0.6537, allocations: 0.6695 MB / 0.7771 GB, free: 0.918 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003952/0.6577, allocations: 2.361 MB / 0.7795 GB, free: 14.55 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003742/0.6581, allocations: 204.5 kB / 0.7796 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002721/0.6608, allocations: 1.598 MB / 0.7812 GB, free: 12.74 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009122/0.6617, allocations: 0.5875 MB / 0.7818 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001507/0.6619, allocations: 56 kB / 0.7818 GB, free: 12.09 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.6644, allocations: 1.143 MB / 0.7829 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0002/0.6647, allocations: 155.3 kB / 0.7831 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0005049/0.6652, allocations: 405.7 kB / 0.7835 GB, free: 10.4 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002698/0.6679, allocations: 1.479 MB / 0.7849 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.6679, allocations: 0 / 0.7849 GB, free: 8.914 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.623e-06/0.6679, allocations: 4 kB / 0.7849 GB, free: 8.91 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 2.856e-05/0.6679, allocations: 3.984 kB / 0.7849 GB, free: 8.906 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.003041/0.671, allocations: 1.383 MB / 0.7863 GB, free: 7.457 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.671, allocations: 12.03 kB / 0.7863 GB, free: 7.445 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001026/0.6721, allocations: 163.3 kB / 0.7865 GB, free: 7.285 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.6731, allocations: 0.654 MB / 0.7871 GB, free: 6.59 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.109e-05/0.6732, allocations: 37 kB / 0.7871 GB, free: 6.555 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001115/0.6733, allocations: 51.98 kB / 0.7872 GB, free: 6.504 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001183/0.6745, allocations: 0.5897 MB / 0.7878 GB, free: 5.891 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.6745, allocations: 3.953 kB / 0.7878 GB, free: 5.887 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-05/0.6746, allocations: 16 kB / 0.7878 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.627e-05/0.6746, allocations: 12 kB / 0.7878 GB, free: 5.859 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.6758, allocations: 476.1 kB / 0.7882 GB, free: 5.395 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003632/0.6794, allocations: 2.67 MB / 0.7908 GB, free: 2.48 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/0.6806, allocations: 468.7 kB / 0.7913 GB, free: 2.008 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005486/0.6811, allocations: 241.6 kB / 0.7915 GB, free: 1.766 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003046/0.6814, allocations: 271.3 kB / 0.7918 GB, free: 1.445 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007697/0.6822, allocations: 390.4 kB / 0.7922 GB, free: 1.047 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=54): time 2.434e-06/0.6822, allocations: 0 / 0.7922 GB, free: 1.047 MB / 0.6231 GB Notification: Performance of matching and sorting (n=54): time 0.002625/0.6849, allocations: 1.037 MB / 0.7932 GB, free: 15.96 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.6849, allocations: 89.11 kB / 0.7933 GB, free: 15.86 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007142/0.6857, allocations: 0.5824 MB / 0.7938 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.157e-05/0.6857, allocations: 41.64 kB / 0.7939 GB, free: 15.22 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002621/0.686, allocations: 349.3 kB / 0.7942 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.6862, allocations: 190.4 kB / 0.7944 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/0.6865, allocations: 130.2 kB / 0.7945 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001802/0.6867, allocations: 382.8 kB / 0.7949 GB, free: 14.17 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005283/0.6872, allocations: 197 kB / 0.7951 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005708/0.6878, allocations: 258.6 kB / 0.7953 GB, free: 13.71 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001099/0.6889, allocations: 0.5159 MB / 0.7958 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.6889, allocations: 0 / 0.7958 GB, free: 13.16 MB / 0.6387 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001756/0.6907, allocations: 0.7675 MB / 0.7966 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.804e-05/0.6907, allocations: 63.39 kB / 0.7966 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.642e-05/0.6908, allocations: 15.92 kB / 0.7966 GB, free: 12.28 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003615/0.6911, allocations: 89.72 kB / 0.7967 GB, free: 12.18 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004766/0.6916, allocations: 123.9 kB / 0.7968 GB, free: 12.06 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00247/0.6941, allocations: 3.058 MB / 0.7998 GB, free: 8.723 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005195/0.6946, allocations: 67.66 kB / 0.7999 GB, free: 8.656 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.6948, allocations: 59.98 kB / 0.7999 GB, free: 8.598 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.0002952/0.6951, allocations: 189.7 kB / 0.8001 GB, free: 8.402 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.6952, allocations: 87.36 kB / 0.8002 GB, free: 8.316 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002719/0.6979, allocations: 1.308 MB / 0.8015 GB, free: 6.996 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.698, allocations: 8 kB / 0.8015 GB, free: 6.988 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.698, allocations: 4 kB / 0.8015 GB, free: 6.984 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.698, allocations: 3.984 kB / 0.8015 GB, free: 6.98 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/0.7008, allocations: 1.583 MB / 0.803 GB, free: 5.328 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/0.7008, allocations: 15.98 kB / 0.8031 GB, free: 5.312 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004575/0.7013, allocations: 111.9 kB / 0.8032 GB, free: 5.203 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002884/0.7016, allocations: 93.62 kB / 0.8033 GB, free: 5.105 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.692e-05/0.7017, allocations: 35.98 kB / 0.8033 GB, free: 5.07 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002277/0.704, allocations: 3.051 MB / 0.8063 GB, free: 1.746 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.704, allocations: 0 / 0.8063 GB, free: 1.746 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002159/0.7062, allocations: 1.139 MB / 0.8074 GB, free: 0.5781 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003155/0.7065, allocations: 220.4 kB / 0.8076 GB, free: 352 kB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.7066, allocations: 12.88 kB / 0.8076 GB, free: 340 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.7071, allocations: 35.95 kB / 0.8076 GB, free: 304 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001999/0.7073, allocations: 95.83 kB / 0.8077 GB, free: 208 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.302e-05/0.7074, allocations: 59.98 kB / 0.8078 GB, free: 148 kB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0004803/0.7079, allocations: 407.1 kB / 0.8082 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7079, allocations: 0 / 0.8082 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009587/0.7089, allocations: 311.3 kB / 0.8085 GB, free: 15.45 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.0008968/0.7098, allocations: 427.9 kB / 0.8089 GB, free: 15.03 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001811/0.7116, allocations: 0.9753 MB / 0.8098 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.7116, allocations: 0 / 0.8098 GB, free: 13.98 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.7126, allocations: 0.6682 MB / 0.8105 GB, free: 13.26 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.7137, allocations: 218.7 kB / 0.8107 GB, free: 13.05 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00291/0.7166, allocations: 1.559 MB / 0.8122 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004816/0.7171, allocations: 0.9269 MB / 0.8131 GB, free: 10.49 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.00112/0.7183, allocations: 0.6757 MB / 0.8138 GB, free: 9.812 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004092/0.7187, allocations: 139.3 kB / 0.8139 GB, free: 9.676 MB / 0.6544 GB Notification: Performance of SimCode: time 4.81e-07/0.7187, allocations: 0 / 0.8139 GB, free: 9.676 MB / 0.6544 GB Notification: Performance of Templates: time 0.02562/0.7443, allocations: 15.52 MB / 0.8291 GB, free: 10.28 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.makefile (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 & ./ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.TransportDelay_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches