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.01202/0.01202, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.002523/0.002523, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6822/0.6822, allocations: 91.19 MB / 381.7 MB, free: 7.48 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 79.88 kB / 0.5168 GB, free: 4.082 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.3084, allocations: 67.68 MB / 0.5829 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.5153/0.8237, allocations: 192.4 MB / 0.7708 GB, free: 1.383 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006618/0.8304, allocations: 5.525 MB / 0.7762 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.8317, allocations: 37.12 kB / 0.7762 GB, free: 1.324 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001194/0.8329, allocations: 409.1 kB / 0.7766 GB, free: 1.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00421/0.8372, allocations: 1.417 MB / 0.778 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.8394, allocations: 0.832 MB / 0.7788 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004463/0.8439, allocations: 2.64 MB / 0.7814 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000477/0.8444, allocations: 238.8 kB / 0.7816 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003147/0.8476, allocations: 1.839 MB / 0.7834 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009671/0.8485, allocations: 0.695 MB / 0.7841 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001397/0.8487, allocations: 74.66 kB / 0.7842 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.8521, allocations: 1.218 MB / 0.7854 GB, free: 1.125 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.8524, allocations: 197.3 kB / 0.7856 GB, free: 1.086 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006251/0.853, allocations: 489 kB / 0.786 GB, free: 0.9336 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.004152/0.8572, allocations: 1.731 MB / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.8572, allocations: 0 / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.405e-06/0.8572, allocations: 3.031 kB / 0.7877 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.641e-05/0.8572, 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.003552/0.8608, allocations: 1.594 MB / 0.7893 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.8609, allocations: 9.656 kB / 0.7893 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/0.8619, allocations: 189.3 kB / 0.7895 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.8631, allocations: 0.7184 MB / 0.7902 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.8632, allocations: 79.73 kB / 0.7902 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.8633, allocations: 66.39 kB / 0.7903 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001506/0.8648, allocations: 0.8124 MB / 0.7911 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.215e-05/0.8648, allocations: 4.031 kB / 0.7911 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.448e-05/0.8649, allocations: 29.7 kB / 0.7911 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.393e-05/0.8649, allocations: 17.19 kB / 0.7912 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/0.8666, allocations: 0.6938 MB / 0.7918 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004676/0.8713, allocations: 3.606 MB / 0.7954 GB, free: 13.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001735/0.8731, allocations: 0.6967 MB / 0.796 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007956/0.8739, allocations: 346.7 kB / 0.7964 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008309/0.8747, allocations: 0.4977 MB / 0.7968 GB, free: 12.6 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001077/0.8758, allocations: 0.5083 MB / 0.7973 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=69): time 2.635e-06/0.8758, allocations: 0.7812 kB / 0.7973 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of matching and sorting (n=69): time 0.003491/0.8793, allocations: 1.358 MB / 0.7987 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.8794, allocations: 86.8 kB / 0.7988 GB, free: 12.13 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007588/0.8802, allocations: 0.6651 MB / 0.7994 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 7.552e-05/0.8803, allocations: 41.02 kB / 0.7994 GB, free: 11.96 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002803/0.8805, allocations: 395 kB / 0.7998 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002027/0.8808, allocations: 247.8 kB / 0.8001 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002585/0.881, allocations: 168.9 kB / 0.8002 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001182/0.8812, allocations: 328.9 kB / 0.8005 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008182/0.882, allocations: 298.1 kB / 0.8008 GB, free: 11.32 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009213/0.8829, allocations: 396.8 kB / 0.8012 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.8847, allocations: 0.7379 MB / 0.8019 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.8847, allocations: 0 / 0.8019 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00248/0.8872, allocations: 1.024 MB / 0.8029 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 7.598e-05/0.8873, allocations: 67.33 kB / 0.803 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.342e-05/0.8874, allocations: 8.281 kB / 0.803 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003719/0.8877, allocations: 85.41 kB / 0.8031 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007382/0.8885, allocations: 183.5 kB / 0.8032 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.8909, allocations: 3.063 MB / 0.8062 GB, free: 8.094 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000882/0.8918, allocations: 106.4 kB / 0.8063 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001608/0.892, allocations: 81.83 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.000425/0.8924, allocations: 212.4 kB / 0.8066 GB, free: 7.938 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001822/0.8926, allocations: 90.55 kB / 0.8067 GB, free: 7.887 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003596/0.8962, allocations: 1.796 MB / 0.8085 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.8962, allocations: 7.344 kB / 0.8085 GB, free: 7.68 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.8963, allocations: 7.438 kB / 0.8085 GB, free: 7.676 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.8963, allocations: 9.328 kB / 0.8085 GB, free: 7.672 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003737/0.9, allocations: 1.947 MB / 0.8104 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.691e-05/0.9001, allocations: 18.64 kB / 0.8104 GB, free: 7.203 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006455/0.9007, allocations: 164.6 kB / 0.8106 GB, free: 7.203 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002916/0.901, allocations: 83.48 kB / 0.8106 GB, free: 7.188 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.944e-05/0.9011, allocations: 41.8 kB / 0.8107 GB, free: 7.188 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002441/0.9036, allocations: 3.068 MB / 0.8137 GB, free: 4.168 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.9036, allocations: 5.375 kB / 0.8137 GB, free: 4.164 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003373/0.907, allocations: 1.477 MB / 0.8151 GB, free: 3.328 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004939/0.9075, allocations: 251.8 kB / 0.8154 GB, free: 3.105 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.9076, allocations: 24.42 kB / 0.8154 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000613/0.9083, allocations: 60.17 kB / 0.8154 GB, free: 3.055 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.9085, allocations: 105 kB / 0.8155 GB, free: 3.004 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.9087, allocations: 78.5 kB / 0.8156 GB, free: 2.988 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005845/0.9093, allocations: 464.9 kB / 0.8161 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9093, allocations: 3.188 kB / 0.8161 GB, free: 2.73 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001205/0.9105, allocations: 342.3 kB / 0.8164 GB, free: 2.648 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.0008741/0.9114, allocations: 433 kB / 0.8168 GB, free: 2.438 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002607/0.914, allocations: 1.212 MB / 0.818 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.914, allocations: 6.562 kB / 0.818 GB, free: 1.621 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.9155, allocations: 0.7887 MB / 0.8188 GB, free: 0.8867 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.9169, allocations: 273.3 kB / 0.819 GB, free: 0.6289 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003806/0.9207, allocations: 1.836 MB / 0.8208 GB, free: 14.75 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005995/0.9213, allocations: 0.9746 MB / 0.8218 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001743/0.9231, allocations: 0.9836 MB / 0.8227 GB, free: 12.79 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005438/0.9236, allocations: 179.3 kB / 0.8229 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of SimCode: time 6.82e-07/0.9237, allocations: 0 / 0.8229 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of Templates: time 0.03072/0.9544, allocations: 18.21 MB / 0.8407 GB, free: 10.67 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