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.007277/0.007278, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001647/0.001647, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6789/0.6789, allocations: 91.18 MB / 381.7 MB, free: 7.508 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.00155, allocations: 79.88 kB / 0.5168 GB, free: 4.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3462, allocations: 67.68 MB / 0.5829 GB, free: 14 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.5188/0.8651, allocations: 192.4 MB / 0.7708 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005933/0.8711, allocations: 5.523 MB / 0.7762 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007608/0.8719, allocations: 34.38 kB / 0.7762 GB, free: 1.332 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009713/0.8728, allocations: 418.1 kB / 0.7766 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003364/0.8763, allocations: 1.434 MB / 0.778 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001911/0.8782, allocations: 0.8344 MB / 0.7788 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.003035/0.8813, allocations: 2.644 MB / 0.7814 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003456/0.8816, allocations: 243.2 kB / 0.7817 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002697/0.8843, allocations: 1.862 MB / 0.7835 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007809/0.8851, allocations: 0.7001 MB / 0.7842 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.8852, allocations: 73.45 kB / 0.7842 GB, free: 1.164 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002572/0.8878, allocations: 1.225 MB / 0.7854 GB, free: 1.133 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000177/0.888, allocations: 191.6 kB / 0.7856 GB, free: 1.094 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003963/0.8884, allocations: 491.4 kB / 0.7861 GB, free: 0.9414 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002014/0.8904, allocations: 1.722 MB / 0.7878 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.8905, allocations: 2.219 kB / 0.7878 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8905, allocations: 0.875 kB / 0.7878 GB, free: 0.6953 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.394e-05/0.8905, allocations: 0 / 0.7878 GB, free: 0.6953 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.003011/0.8935, allocations: 1.561 MB / 0.7893 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.8935, allocations: 11.56 kB / 0.7893 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.8946, allocations: 185.4 kB / 0.7895 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009538/0.8955, allocations: 0.7048 MB / 0.7902 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.23e-05/0.8956, allocations: 78.48 kB / 0.7902 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.8958, allocations: 60.56 kB / 0.7903 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001443/0.8972, allocations: 0.8159 MB / 0.7911 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.8973, allocations: 6 kB / 0.7911 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.8973, allocations: 22.09 kB / 0.7911 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.8974, allocations: 21.47 kB / 0.7911 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001624/0.899, allocations: 0.6985 MB / 0.7918 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004384/0.9034, allocations: 3.605 MB / 0.7953 GB, free: 13.21 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/0.9051, allocations: 0.6955 MB / 0.796 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007703/0.9059, allocations: 345.1 kB / 0.7964 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008754/0.9067, allocations: 0.4945 MB / 0.7968 GB, free: 12.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009807/0.9077, allocations: 0.5138 MB / 0.7973 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=69): time 2.415e-06/0.9077, allocations: 0.7188 kB / 0.7973 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69): time 0.003276/0.911, allocations: 1.35 MB / 0.7987 GB, free: 12.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.9111, allocations: 91.94 kB / 0.7987 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007329/0.9118, allocations: 0.6627 MB / 0.7994 GB, free: 12.07 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 6.687e-05/0.9119, allocations: 38.7 kB / 0.7994 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.000244/0.9122, allocations: 391.2 kB / 0.7998 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.9124, allocations: 233.8 kB / 0.8 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002624/0.9126, allocations: 166.7 kB / 0.8002 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000131/0.9128, allocations: 330.9 kB / 0.8005 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008276/0.9136, allocations: 295.2 kB / 0.8008 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009003/0.9145, allocations: 395.9 kB / 0.8012 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001652/0.9162, allocations: 0.7359 MB / 0.8019 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/0.9162, allocations: 1.062 kB / 0.8019 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002245/0.9184, allocations: 1.025 MB / 0.8029 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.097e-05/0.9185, allocations: 63.86 kB / 0.8029 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/0.9185, allocations: 12.22 kB / 0.803 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003364/0.9189, allocations: 88.59 kB / 0.803 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007117/0.9196, allocations: 186 kB / 0.8032 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00257/0.9222, allocations: 3.064 MB / 0.8062 GB, free: 8.184 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007251/0.9229, allocations: 102 kB / 0.8063 GB, free: 8.148 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001401/0.9231, allocations: 81.66 kB / 0.8064 GB, free: 8.148 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.0004063/0.9235, allocations: 217.2 kB / 0.8066 GB, free: 8.02 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001487/0.9237, allocations: 87.22 kB / 0.8067 GB, free: 7.977 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.9272, allocations: 1.784 MB / 0.8084 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.9272, allocations: 8.094 kB / 0.8084 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.9272, allocations: 3.047 kB / 0.8084 GB, free: 7.777 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.166e-05/0.9272, allocations: 5.391 kB / 0.8084 GB, free: 7.773 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.9306, allocations: 1.954 MB / 0.8103 GB, free: 7.312 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.9306, allocations: 18.91 kB / 0.8104 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006201/0.9312, allocations: 164 kB / 0.8105 GB, free: 7.305 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002714/0.9315, allocations: 90.03 kB / 0.8106 GB, free: 7.281 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.743e-05/0.9316, allocations: 48.03 kB / 0.8106 GB, free: 7.273 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.9339, allocations: 3.058 MB / 0.8136 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.9339, allocations: 1.312 kB / 0.8136 GB, free: 4.234 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.937, allocations: 1.468 MB / 0.8151 GB, free: 3.406 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003451/0.9374, allocations: 251.9 kB / 0.8153 GB, free: 3.184 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.9375, allocations: 20.95 kB / 0.8153 GB, free: 3.168 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006149/0.9381, allocations: 56.94 kB / 0.8154 GB, free: 3.141 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.9384, allocations: 107.7 kB / 0.8155 GB, free: 3.09 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/0.9385, allocations: 78.28 kB / 0.8156 GB, free: 3.074 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005001/0.939, allocations: 463.6 kB / 0.816 GB, free: 2.816 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.939, allocations: 0 / 0.816 GB, free: 2.816 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001014/0.9401, allocations: 343.5 kB / 0.8163 GB, free: 2.734 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.0008633/0.9409, allocations: 445.7 kB / 0.8167 GB, free: 2.516 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002508/0.9435, allocations: 1.22 MB / 0.8179 GB, free: 1.695 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.9435, allocations: 2.969 kB / 0.8179 GB, free: 1.695 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001441/0.9449, allocations: 0.7887 MB / 0.8187 GB, free: 0.9766 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.9462, allocations: 255.2 kB / 0.819 GB, free: 0.7305 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003471/0.9497, allocations: 1.798 MB / 0.8207 GB, free: 14.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.9502, allocations: 0.9746 MB / 0.8217 GB, free: 13.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001595/0.9518, allocations: 0.9823 MB / 0.8226 GB, free: 12.94 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000505/0.9523, allocations: 183.3 kB / 0.8228 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of SimCode: time 4.11e-07/0.9523, allocations: 0 / 0.8228 GB, free: 12.76 MB / 0.6075 GB Notification: Performance of Templates: time 0.02807/0.9804, allocations: 18.2 MB / 0.8406 GB, free: 10.81 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