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: translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.rear.m_flow|transportDelay1.x|trapezoid.T_start|trapezoid.count|trapezoid1.T_start|trapezoid1.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007503/0.007503, allocations: 99.14 kB / 15.73 MB, free: 6.062 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.001914/0.001914, allocations: 191.8 kB / 16.67 MB, free: 5.969 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6956/0.6956, allocations: 91.18 MB / 381.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 71.89 kB / 0.5168 GB, free: 4.086 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3251/0.3266, allocations: 67.69 MB / 0.5829 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.4933/0.8199, allocations: 192.4 MB / 0.7708 GB, free: 1.387 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006898/0.8269, allocations: 5.522 MB / 0.7762 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.8281, allocations: 35.78 kB / 0.7762 GB, free: 1.328 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.8295, allocations: 413.3 kB / 0.7766 GB, free: 1.32 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004148/0.8338, allocations: 1.423 MB / 0.778 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.8362, allocations: 0.8236 MB / 0.7788 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004151/0.8404, allocations: 2.642 MB / 0.7814 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000492/0.8409, allocations: 243.6 kB / 0.7816 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003384/0.8443, allocations: 1.84 MB / 0.7834 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.8456, allocations: 0.6949 MB / 0.7841 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002879/0.8459, allocations: 71.91 kB / 0.7842 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003065/0.8489, allocations: 1.226 MB / 0.7854 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002906/0.8492, allocations: 193.7 kB / 0.7856 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0007744/0.85, allocations: 489.9 kB / 0.786 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003364/0.8534, allocations: 1.729 MB / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.8534, allocations: 0.9688 kB / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.283e-06/0.8534, allocations: 2.094 kB / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.751e-05/0.8535, allocations: 0 / 0.7877 GB, free: 0.6797 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.003841/0.8573, allocations: 1.599 MB / 0.7893 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.8574, allocations: 8.156 kB / 0.7893 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.8585, allocations: 195 kB / 0.7895 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001252/0.8598, allocations: 0.7183 MB / 0.7902 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.8599, allocations: 75.92 kB / 0.7902 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.8601, allocations: 67.2 kB / 0.7903 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.8616, allocations: 0.8058 MB / 0.7911 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.8617, allocations: 3.531 kB / 0.7911 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.552e-05/0.8618, allocations: 28.12 kB / 0.7911 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.8618, allocations: 16.91 kB / 0.7911 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.8635, allocations: 0.6893 MB / 0.7918 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.8689, allocations: 3.621 MB / 0.7954 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001813/0.8708, allocations: 0.6942 MB / 0.796 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008545/0.8716, allocations: 343.1 kB / 0.7964 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000919/0.8726, allocations: 0.4955 MB / 0.7968 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001138/0.8737, allocations: 0.5112 MB / 0.7973 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=69): time 3.947e-06/0.8737, allocations: 3.938 kB / 0.7973 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69): time 0.003634/0.8774, allocations: 1.356 MB / 0.7987 GB, free: 12.23 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.8774, allocations: 87.44 kB / 0.7988 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008002/0.8783, allocations: 0.6649 MB / 0.7994 GB, free: 12 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.053e-05/0.8783, allocations: 35.36 kB / 0.7994 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003245/0.8787, allocations: 397.3 kB / 0.7998 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002071/0.8789, allocations: 242.8 kB / 0.8 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.8792, allocations: 167.5 kB / 0.8002 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001375/0.8793, allocations: 334.7 kB / 0.8005 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008937/0.8802, allocations: 291.3 kB / 0.8008 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00105/0.8813, allocations: 404 kB / 0.8012 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.8831, allocations: 0.7395 MB / 0.8019 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.251e-06/0.8831, allocations: 0.9375 kB / 0.8019 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002421/0.8855, allocations: 1.02 MB / 0.8029 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.209e-05/0.8856, allocations: 62.36 kB / 0.803 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.278e-05/0.8856, allocations: 11.89 kB / 0.803 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.886, allocations: 89.14 kB / 0.8031 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006979/0.8867, allocations: 190.5 kB / 0.8032 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002545/0.8893, allocations: 3.068 MB / 0.8062 GB, free: 8.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007949/0.8901, allocations: 100.4 kB / 0.8063 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001486/0.8903, allocations: 80.94 kB / 0.8064 GB, free: 8.055 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.0004025/0.8907, allocations: 209.6 kB / 0.8066 GB, free: 7.934 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001907/0.8909, allocations: 91.86 kB / 0.8067 GB, free: 7.883 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.8945, allocations: 1.788 MB / 0.8084 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.8945, allocations: 8.438 kB / 0.8085 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.8946, allocations: 5.781 kB / 0.8085 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.8946, allocations: 8.766 kB / 0.8085 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003588/0.8982, allocations: 1.949 MB / 0.8104 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.586e-05/0.8982, allocations: 14.08 kB / 0.8104 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006384/0.8988, allocations: 166.9 kB / 0.8105 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002988/0.8992, allocations: 90.34 kB / 0.8106 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001117/0.8993, allocations: 46.14 kB / 0.8107 GB, free: 7.184 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002848/0.9021, allocations: 3.06 MB / 0.8137 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.9022, allocations: 4.625 kB / 0.8137 GB, free: 4.137 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003336/0.9055, allocations: 1.471 MB / 0.8151 GB, free: 3.305 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004214/0.9059, allocations: 260.2 kB / 0.8154 GB, free: 3.074 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000162/0.9061, allocations: 19.7 kB / 0.8154 GB, free: 3.062 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006679/0.9068, allocations: 62.55 kB / 0.8154 GB, free: 3.027 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.9071, allocations: 109.2 kB / 0.8155 GB, free: 2.973 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.9072, allocations: 74.53 kB / 0.8156 GB, free: 2.961 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005834/0.9078, allocations: 472.7 kB / 0.8161 GB, free: 2.695 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9078, allocations: 0 / 0.8161 GB, free: 2.695 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001138/0.9089, allocations: 335.4 kB / 0.8164 GB, free: 2.617 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.0009646/0.9099, allocations: 432.8 kB / 0.8168 GB, free: 2.406 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002586/0.9125, allocations: 1.222 MB / 0.818 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.9125, allocations: 0 / 0.818 GB, free: 1.594 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001513/0.914, allocations: 0.7897 MB / 0.8188 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001316/0.9154, allocations: 264.7 kB / 0.819 GB, free: 0.5938 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003922/0.9193, allocations: 1.834 MB / 0.8208 GB, free: 14.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.9198, allocations: 0.9746 MB / 0.8218 GB, free: 13.72 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001606/0.9215, allocations: 0.9921 MB / 0.8227 GB, free: 12.75 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005751/0.922, allocations: 179.3 kB / 0.8229 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of SimCode: time 1.012e-06/0.922, allocations: 0 / 0.8229 GB, free: 12.58 MB / 0.6075 GB Notification: Performance of Templates: time 0.03194/0.954, allocations: 18.21 MB / 0.8407 GB, free: 10.63 MB / 0.6231 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.makefile (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 & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches