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.00581/0.00581, allocations: 101.4 kB / 15.73 MB, free: 6.027 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.001257/0.001257, allocations: 193.3 kB / 16.67 MB, free: 5.957 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6749/0.6749, allocations: 91.2 MB / 381.7 MB, free: 9.359 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 83.88 kB / 0.5169 GB, free: 9.012 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.136, allocations: 67.68 MB / 0.583 GB, free: 5.242 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.5151/0.6511, allocations: 189.2 MB / 0.7677 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.008928/0.6601, allocations: 7.324 MB / 0.7749 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008722/0.661, allocations: 31.81 kB / 0.7749 GB, free: 3.324 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.00107/0.6621, allocations: 373.5 kB / 0.7753 GB, free: 2.957 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003748/0.6659, allocations: 1.284 MB / 0.7765 GB, free: 1.668 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.001829/0.6677, allocations: 0.67 MB / 0.7772 GB, free: 0.9961 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.004045/0.6718, allocations: 2.357 MB / 0.7795 GB, free: 14.63 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003693/0.6722, allocations: 203.7 kB / 0.7797 GB, free: 14.42 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002911/0.6751, allocations: 1.625 MB / 0.7812 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008089/0.6759, allocations: 0.5797 MB / 0.7818 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001013/0.676, allocations: 56 kB / 0.7819 GB, free: 12.15 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002578/0.6786, allocations: 1.151 MB / 0.783 GB, free: 11 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.6788, allocations: 147.3 kB / 0.7831 GB, free: 10.86 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0004316/0.6792, allocations: 401.7 kB / 0.7835 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.00213/0.6814, allocations: 1.476 MB / 0.785 GB, free: 8.98 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.6814, allocations: 0 / 0.785 GB, free: 8.98 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.353e-06/0.6814, allocations: 0 / 0.785 GB, free: 8.98 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.6814, allocations: 4 kB / 0.785 GB, free: 8.977 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.002636/0.684, allocations: 1.354 MB / 0.7863 GB, free: 7.562 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.6841, allocations: 12.03 kB / 0.7863 GB, free: 7.551 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009715/0.6851, allocations: 162.8 kB / 0.7864 GB, free: 7.391 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.6862, allocations: 0.6429 MB / 0.7871 GB, free: 6.703 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.6862, allocations: 33 kB / 0.7871 GB, free: 6.672 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.6864, allocations: 52 kB / 0.7872 GB, free: 6.621 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001208/0.6876, allocations: 0.5857 MB / 0.7877 GB, free: 6.012 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.6876, allocations: 4 kB / 0.7877 GB, free: 6.008 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.591e-05/0.6877, allocations: 31.91 kB / 0.7878 GB, free: 5.977 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.6877, allocations: 12 kB / 0.7878 GB, free: 5.965 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001168/0.6889, allocations: 460.1 kB / 0.7882 GB, free: 5.516 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/0.6927, allocations: 2.669 MB / 0.7908 GB, free: 2.602 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001098/0.6938, allocations: 469.9 kB / 0.7913 GB, free: 2.125 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000561/0.6944, allocations: 237.6 kB / 0.7915 GB, free: 1.887 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003024/0.6947, allocations: 267.3 kB / 0.7917 GB, free: 1.57 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007734/0.6955, allocations: 402.3 kB / 0.7921 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=54): time 2.174e-06/0.6955, allocations: 0 / 0.7921 GB, free: 1.16 MB / 0.6231 GB Notification: Performance of matching and sorting (n=54): time 0.002641/0.6981, allocations: 1.037 MB / 0.7931 GB, free: 76 kB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.752e-05/0.6982, allocations: 85.11 kB / 0.7932 GB, free: 15.97 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000652/0.6989, allocations: 0.5786 MB / 0.7938 GB, free: 15.39 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.029e-05/0.6989, allocations: 37.7 kB / 0.7938 GB, free: 15.34 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002654/0.6992, allocations: 340.8 kB / 0.7941 GB, free: 15.01 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.6994, allocations: 177.5 kB / 0.7943 GB, free: 14.83 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.6996, allocations: 142.1 kB / 0.7945 GB, free: 14.69 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.6998, allocations: 378.8 kB / 0.7948 GB, free: 14.31 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.7003, allocations: 193 kB / 0.795 GB, free: 14.12 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005688/0.7009, allocations: 266.6 kB / 0.7953 GB, free: 13.84 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001107/0.702, allocations: 0.5159 MB / 0.7958 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.702, allocations: 0 / 0.7958 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001692/0.7037, allocations: 0.7672 MB / 0.7965 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 4.7e-05/0.7038, allocations: 63.41 kB / 0.7966 GB, free: 12.43 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.992e-05/0.7038, allocations: 15.92 kB / 0.7966 GB, free: 12.41 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003448/0.7042, allocations: 85.66 kB / 0.7967 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.7047, allocations: 120.8 kB / 0.7968 GB, free: 12.2 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/0.7072, allocations: 3.059 MB / 0.7998 GB, free: 8.859 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.7077, allocations: 59.5 kB / 0.7998 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.7078, allocations: 67.98 kB / 0.7999 GB, free: 8.734 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.0002969/0.7081, allocations: 189.6 kB / 0.8001 GB, free: 8.539 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001252/0.7082, allocations: 83.02 kB / 0.8001 GB, free: 8.457 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002749/0.711, allocations: 1.305 MB / 0.8014 GB, free: 7.145 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.711, allocations: 8 kB / 0.8014 GB, free: 7.137 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.711, allocations: 0 / 0.8014 GB, free: 7.137 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.711, allocations: 15.92 kB / 0.8014 GB, free: 7.121 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.7138, allocations: 1.571 MB / 0.803 GB, free: 5.477 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.748e-05/0.7139, allocations: 15.92 kB / 0.803 GB, free: 5.461 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004747/0.7144, allocations: 116.7 kB / 0.8031 GB, free: 5.348 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002865/0.7147, allocations: 89.62 kB / 0.8032 GB, free: 5.254 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.09e-05/0.7148, allocations: 36.05 kB / 0.8032 GB, free: 5.219 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.7171, allocations: 3.062 MB / 0.8062 GB, free: 1.887 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.7172, allocations: 0 / 0.8062 GB, free: 1.887 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002308/0.7195, allocations: 1.126 MB / 0.8073 GB, free: 0.7305 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003409/0.7198, allocations: 216 kB / 0.8075 GB, free: 0.5 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.884e-05/0.7199, allocations: 15.98 kB / 0.8075 GB, free: 496 kB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004964/0.7204, allocations: 39.91 kB / 0.8076 GB, free: 456 kB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.7207, allocations: 87.89 kB / 0.8077 GB, free: 368 kB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.826e-05/0.7208, allocations: 63.97 kB / 0.8077 GB, free: 304 kB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0004939/0.7213, allocations: 407.1 kB / 0.8081 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.61e-07/0.7213, allocations: 0 / 0.8081 GB, free: 15.91 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00102/0.7223, allocations: 299.6 kB / 0.8084 GB, free: 15.61 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.0009585/0.7233, allocations: 438.6 kB / 0.8088 GB, free: 15.19 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001954/0.7252, allocations: 0.9867 MB / 0.8098 GB, free: 14.12 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.7253, allocations: 0 / 0.8098 GB, free: 14.12 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.00113/0.7264, allocations: 0.6686 MB / 0.8104 GB, free: 13.41 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001132/0.7275, allocations: 201.2 kB / 0.8106 GB, free: 13.21 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.7306, allocations: 1.533 MB / 0.8121 GB, free: 11.64 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.7311, allocations: 0.9308 MB / 0.813 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001148/0.7323, allocations: 0.6796 MB / 0.8137 GB, free: 10 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003925/0.7327, allocations: 131.4 kB / 0.8138 GB, free: 9.875 MB / 0.6544 GB Notification: Performance of SimCode: time 2.51e-07/0.7327, allocations: 0 / 0.8138 GB, free: 9.875 MB / 0.6544 GB Notification: Performance of Templates: time 0.02595/0.7587, allocations: 15.82 MB / 0.8293 GB, free: 10.18 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