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.001141/0.001141, allocations: 116.8 kB / 16.37 MB, free: 6 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.001924/0.001924, allocations: 193.1 kB / 17.31 MB, free: 5.613 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7127/0.7127, allocations: 89.49 MB / 380.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.88 kB / 459.7 MB, free: 10.6 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1243, allocations: 67.32 MB / 0.5146 GB, free: 7.211 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.411/0.5353, allocations: 192.2 MB / 0.7023 GB, free: 6.918 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.006966/0.5423, allocations: 5.45 MB / 0.7076 GB, free: 1.461 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005279/0.5429, allocations: 11.94 kB / 0.7076 GB, free: 1.449 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.5439, allocations: 413.3 kB / 0.708 GB, free: 1.043 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.00353/0.5475, allocations: 1.36 MB / 0.7094 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002028/0.5495, allocations: 0.8213 MB / 0.7102 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.003882/0.5534, allocations: 2.537 MB / 0.7126 GB, free: 12.32 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004211/0.5539, allocations: 231.2 kB / 0.7129 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003118/0.557, allocations: 1.778 MB / 0.7146 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009225/0.5579, allocations: 0.6734 MB / 0.7153 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001387/0.5581, allocations: 79.94 kB / 0.7153 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002573/0.5607, allocations: 1.225 MB / 0.7165 GB, free: 8.348 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.5609, allocations: 179.3 kB / 0.7167 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0004493/0.5613, allocations: 449.7 kB / 0.7171 GB, free: 7.73 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.5637, allocations: 1.597 MB / 0.7187 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.5637, allocations: 0 / 0.7187 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.242e-06/0.5637, allocations: 0 / 0.7187 GB, free: 6.129 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.172e-05/0.5637, allocations: 6.719 kB / 0.7187 GB, free: 6.125 MB / 0.5606 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.002996/0.5667, allocations: 1.424 MB / 0.7201 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.181e-05/0.5668, allocations: 16.03 kB / 0.7201 GB, free: 4.621 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001116/0.5679, allocations: 166.8 kB / 0.7203 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007157/0.5686, allocations: 0.4982 MB / 0.7207 GB, free: 3.918 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.394e-05/0.5687, allocations: 75 kB / 0.7208 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.5689, allocations: 71.91 kB / 0.7209 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00157/0.5704, allocations: 0.8154 MB / 0.7217 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.137e-05/0.5705, allocations: 0 / 0.7217 GB, free: 2.926 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.66e-05/0.5706, allocations: 25 kB / 0.7217 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.546e-05/0.5706, allocations: 12 kB / 0.7217 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.5724, allocations: 0.698 MB / 0.7224 GB, free: 2.195 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004709/0.5771, allocations: 3.56 MB / 0.7259 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001774/0.5789, allocations: 0.705 MB / 0.7266 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.5798, allocations: 345.8 kB / 0.7269 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008747/0.5806, allocations: 0.4937 MB / 0.7274 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001083/0.5817, allocations: 0.5093 MB / 0.7279 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=69): time 2.304e-06/0.5818, allocations: 0 / 0.7279 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of matching and sorting (n=69): time 0.003439/0.5852, allocations: 1.33 MB / 0.7292 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.5853, allocations: 93.05 kB / 0.7293 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006091/0.5859, allocations: 0.5226 MB / 0.7298 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.391e-05/0.586, allocations: 41.7 kB / 0.7298 GB, free: 10.09 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002203/0.5862, allocations: 324.5 kB / 0.7301 GB, free: 9.762 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/0.5864, allocations: 236.6 kB / 0.7303 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.5867, allocations: 174.5 kB / 0.7305 GB, free: 9.352 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5868, allocations: 374.7 kB / 0.7309 GB, free: 8.977 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008299/0.5877, allocations: 297.8 kB / 0.7312 GB, free: 8.688 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009/0.5886, allocations: 394.3 kB / 0.7315 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001651/0.5903, allocations: 0.739 MB / 0.7323 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5903, allocations: 0 / 0.7323 GB, free: 7.484 MB / 0.5762 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002324/0.5926, allocations: 1.013 MB / 0.7332 GB, free: 6.449 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.857e-05/0.5927, allocations: 63.39 kB / 0.7333 GB, free: 6.375 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/0.5927, allocations: 8 kB / 0.7333 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003251/0.593, allocations: 85.81 kB / 0.7334 GB, free: 6.277 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007233/0.5938, allocations: 187.7 kB / 0.7336 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.596, allocations: 3.052 MB / 0.7366 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006809/0.5967, allocations: 108.5 kB / 0.7367 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.5969, allocations: 83.97 kB / 0.7367 GB, free: 2.574 MB / 0.5762 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.0003199/0.5972, allocations: 198.4 kB / 0.7369 GB, free: 2.371 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.5973, allocations: 67.16 kB / 0.737 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003646/0.601, allocations: 1.776 MB / 0.7387 GB, free: 0.5391 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.601, allocations: 8 kB / 0.7387 GB, free: 0.5312 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.601, allocations: 3.984 kB / 0.7387 GB, free: 0.5273 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.6011, allocations: 3.984 kB / 0.7387 GB, free: 0.5234 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2005/0.8016, allocations: 1.905 MB / 0.7406 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.506e-05/0.8016, allocations: 10.86 kB / 0.7406 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006625/0.8023, allocations: 171.2 kB / 0.7408 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002721/0.8026, allocations: 89.3 kB / 0.7409 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.864e-05/0.8027, allocations: 46.84 kB / 0.7409 GB, free: 184.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001693/0.8044, allocations: 3.059 MB / 0.7439 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.8044, allocations: 2.719 kB / 0.7439 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002913/0.8073, allocations: 1.453 MB / 0.7453 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003479/0.8077, allocations: 237.2 kB / 0.7455 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/0.8078, allocations: 20.56 kB / 0.7456 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006015/0.8084, allocations: 57.14 kB / 0.7456 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002382/0.8087, allocations: 112.7 kB / 0.7457 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.8088, allocations: 78.78 kB / 0.7458 GB, free: 181.9 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003867/0.8092, allocations: 371.6 kB / 0.7462 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8092, allocations: 0 / 0.7462 GB, free: 181.8 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001058/0.8103, allocations: 339.3 kB / 0.7465 GB, free: 181.8 MB / 0.5762 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.0008049/0.8111, allocations: 436.5 kB / 0.7469 GB, free: 181.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002239/0.8133, allocations: 1.205 MB / 0.7481 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.8134, allocations: 2.719 kB / 0.7481 GB, free: 181.2 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.8146, allocations: 0.7856 MB / 0.7488 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.8159, allocations: 251.1 kB / 0.7491 GB, free: 180.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.8187, allocations: 1.649 MB / 0.7507 GB, free: 180.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.8191, allocations: 0.9262 MB / 0.7516 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001433/0.8205, allocations: 0.9762 MB / 0.7525 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.821, allocations: 174.4 kB / 0.7527 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of SimCode: time 1.152e-06/0.821, allocations: 0 / 0.7527 GB, free: 179.6 MB / 0.5762 GB Notification: Performance of Templates: time 0.03039/0.8514, allocations: 17.78 MB / 0.7701 GB, free: 178.1 MB / 0.5762 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches