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.006788/0.006788, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001527/0.001527, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6674/0.6674, allocations: 91.2 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 79.86 kB / 0.5168 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3354, allocations: 67.68 MB / 0.5829 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.4879/0.8234, allocations: 189.2 MB / 0.7677 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.008484/0.8319, allocations: 7.326 MB / 0.7749 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007847/0.8327, allocations: 31.75 kB / 0.7749 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.8338, allocations: 373.4 kB / 0.7752 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00392/0.8378, allocations: 1.3 MB / 0.7765 GB, free: 1.293 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001676/0.8395, allocations: 0.6716 MB / 0.7772 GB, free: 1.277 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003086/0.8426, allocations: 2.362 MB / 0.7795 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003354/0.8429, allocations: 210.8 kB / 0.7797 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.8453, allocations: 1.632 MB / 0.7813 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006436/0.846, allocations: 0.576 MB / 0.7818 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.78e-05/0.8461, allocations: 57.88 kB / 0.7819 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002269/0.8484, allocations: 1.156 MB / 0.783 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.8486, allocations: 150.2 kB / 0.7832 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.8489, allocations: 401.9 kB / 0.7835 GB, free: 1.051 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.8509, allocations: 1.479 MB / 0.785 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.8509, allocations: 0 / 0.785 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.8509, allocations: 0.8438 kB / 0.785 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.007e-05/0.8509, allocations: 0 / 0.785 GB, free: 0.8398 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.002431/0.8534, allocations: 1.351 MB / 0.7863 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.8534, allocations: 11.2 kB / 0.7863 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009173/0.8543, allocations: 158.2 kB / 0.7865 GB, free: 16 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008957/0.8552, allocations: 0.6398 MB / 0.7871 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.683e-05/0.8553, allocations: 43.06 kB / 0.7871 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001018/0.8554, allocations: 57.72 kB / 0.7872 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009956/0.8564, allocations: 0.5842 MB / 0.7878 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.8564, allocations: 4.125 kB / 0.7878 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.733e-05/0.8565, allocations: 18.91 kB / 0.7878 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.8565, allocations: 10.12 kB / 0.7878 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.8575, allocations: 467.1 kB / 0.7882 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.8608, allocations: 2.672 MB / 0.7908 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.8618, allocations: 462.2 kB / 0.7913 GB, free: 14.01 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00048/0.8623, allocations: 244.8 kB / 0.7915 GB, free: 14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003255/0.8626, allocations: 268.3 kB / 0.7918 GB, free: 13.71 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007044/0.8633, allocations: 389.3 kB / 0.7921 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=54): time 2.395e-06/0.8634, allocations: 0.9062 kB / 0.7921 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of matching and sorting (n=54): time 0.002437/0.8658, allocations: 1.038 MB / 0.7932 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.8659, allocations: 87.25 kB / 0.7932 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005952/0.8665, allocations: 0.5792 MB / 0.7938 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.765e-05/0.8665, allocations: 38.73 kB / 0.7938 GB, free: 13.1 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.8668, allocations: 338.8 kB / 0.7942 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.867, allocations: 175.3 kB / 0.7943 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.8672, allocations: 138.5 kB / 0.7945 GB, free: 12.83 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.8674, allocations: 385.2 kB / 0.7948 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004616/0.8679, allocations: 196.6 kB / 0.795 GB, free: 12.52 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005068/0.8684, allocations: 262.7 kB / 0.7953 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009914/0.8694, allocations: 0.5128 MB / 0.7958 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.8694, allocations: 0.6875 kB / 0.7958 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001529/0.8709, allocations: 0.7625 MB / 0.7965 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.113e-05/0.871, allocations: 63.83 kB / 0.7966 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.045e-05/0.871, allocations: 13.98 kB / 0.7966 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003496/0.8714, allocations: 83.5 kB / 0.7967 GB, free: 12.11 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.8719, allocations: 125.9 kB / 0.7968 GB, free: 12.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.8741, allocations: 3.058 MB / 0.7998 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.8746, allocations: 65.31 kB / 0.7998 GB, free: 9.367 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.8748, allocations: 62.27 kB / 0.7999 GB, free: 9.367 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.0003037/0.8751, allocations: 204.5 kB / 0.8001 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.8752, allocations: 71.53 kB / 0.8002 GB, free: 9.203 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.8778, allocations: 1.31 MB / 0.8014 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.8778, allocations: 8.75 kB / 0.8015 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.8778, allocations: 2.031 kB / 0.8015 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.435e-06/0.8778, allocations: 5.281 kB / 0.8015 GB, free: 9.059 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002597/0.8804, allocations: 1.584 MB / 0.803 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-05/0.8804, allocations: 15.3 kB / 0.803 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004472/0.8809, allocations: 118.5 kB / 0.8031 GB, free: 8.605 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002662/0.8812, allocations: 80.23 kB / 0.8032 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-05/0.8813, allocations: 36.69 kB / 0.8032 GB, free: 8.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002196/0.8835, allocations: 3.055 MB / 0.8062 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.8835, allocations: 2.469 kB / 0.8062 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.8856, allocations: 1.128 MB / 0.8073 GB, free: 5.562 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002781/0.8858, allocations: 219 kB / 0.8075 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.087e-05/0.8859, allocations: 13.67 kB / 0.8076 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004431/0.8864, allocations: 35.98 kB / 0.8076 GB, free: 5.422 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.8866, allocations: 90 kB / 0.8077 GB, free: 5.418 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.911e-05/0.8867, allocations: 60.56 kB / 0.8077 GB, free: 5.418 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004281/0.8871, allocations: 408.8 kB / 0.8081 GB, free: 5.328 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.41e-07/0.8871, allocations: 0 / 0.8081 GB, free: 5.328 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009187/0.8881, allocations: 302.5 kB / 0.8084 GB, free: 5.289 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.0008134/0.8889, allocations: 433.5 kB / 0.8088 GB, free: 5.117 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001712/0.8906, allocations: 0.9797 MB / 0.8098 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.8906, allocations: 0 / 0.8098 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0009715/0.8916, allocations: 0.6679 MB / 0.8104 GB, free: 4.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009893/0.8926, allocations: 220.1 kB / 0.8106 GB, free: 4.227 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.8954, allocations: 1.541 MB / 0.8121 GB, free: 3.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005137/0.8959, allocations: 0.9219 MB / 0.813 GB, free: 2.793 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001253/0.8971, allocations: 0.6788 MB / 0.8137 GB, free: 2.684 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003591/0.8975, allocations: 127.5 kB / 0.8138 GB, free: 2.668 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/0.8975, allocations: 0 / 0.8138 GB, free: 2.668 MB / 0.5919 GB Notification: Performance of Templates: time 0.02482/0.9223, allocations: 15.53 MB / 0.829 GB, free: 5.398 MB / 0.6075 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