Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00172/0.00172, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.6 MB / 249.4 MB, free: 3.145 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6315/0.6315, allocations: 94.59 MB / 399.1 MB, free: 15.75 MB / 334.1 MB " [Timeout remaining time 179] 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=1000,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_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Undirected.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002471/0.002471, allocations: 80.11 kB / 0.5448 GB, free: 12.05 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3735/0.3759, allocations: 71.84 MB / 0.615 GB, free: 4.082 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.2342/0.6102, allocations: 193.4 MB / 0.8038 GB, free: 2.957 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.008543/0.6187, allocations: 5.582 MB / 0.8092 GB, free: 13.36 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001032/0.6197, allocations: 39.75 kB / 0.8093 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.6211, allocations: 421.1 kB / 0.8097 GB, free: 12.9 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004343/0.6254, allocations: 1.451 MB / 0.8111 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.6278, allocations: 0.8329 MB / 0.8119 GB, free: 10.62 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004746/0.6326, allocations: 2.691 MB / 0.8145 GB, free: 7.918 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004101/0.633, allocations: 155.3 kB / 0.8147 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003965/0.6369, allocations: 1.882 MB / 0.8165 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001426/0.6384, allocations: 0.7121 MB / 0.8172 GB, free: 5.156 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0003156/0.6387, allocations: 76 kB / 0.8173 GB, free: 5.082 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003268/0.6419, allocations: 1.251 MB / 0.8185 GB, free: 3.832 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.00039/0.6423, allocations: 191.2 kB / 0.8187 GB, free: 3.645 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0007854/0.6431, allocations: 497.2 kB / 0.8192 GB, free: 3.156 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004034/0.6472, allocations: 1.74 MB / 0.8209 GB, free: 1.41 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.6472, allocations: 0 / 0.8209 GB, free: 1.41 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.974e-06/0.6472, allocations: 0 / 0.8209 GB, free: 1.41 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 3.813e-05/0.6472, allocations: 0 / 0.8209 GB, free: 1.41 MB / 0.6387 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.004153/0.6514, allocations: 1.616 MB / 0.8225 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.6514, allocations: 8.031 kB / 0.8225 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/0.6527, allocations: 195.1 kB / 0.8226 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.6541, allocations: 0.7253 MB / 0.8234 GB, free: 14.76 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.6542, allocations: 78.77 kB / 0.8234 GB, free: 14.68 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001628/0.6544, allocations: 63.98 kB / 0.8235 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.6564, allocations: 0.8077 MB / 0.8243 GB, free: 13.78 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.227e-05/0.6564, allocations: 4 kB / 0.8243 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.086e-05/0.6565, allocations: 24 kB / 0.8243 GB, free: 13.75 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.243e-05/0.6565, allocations: 19.94 kB / 0.8243 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002117/0.6587, allocations: 0.6969 MB / 0.825 GB, free: 13.04 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00631/0.665, allocations: 3.614 MB / 0.8285 GB, free: 9.105 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.667, allocations: 0.658 MB / 0.8292 GB, free: 8.43 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009265/0.6679, allocations: 317.8 kB / 0.8295 GB, free: 8.113 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00101/0.6689, allocations: 0.4977 MB / 0.83 GB, free: 7.523 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.6702, allocations: 0.5125 MB / 0.8305 GB, free: 6.992 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=69): time 2.966e-06/0.6702, allocations: 0 / 0.8305 GB, free: 6.992 MB / 0.6544 GB Notification: Performance of matching and sorting (n=69): time 0.004003/0.6742, allocations: 1.353 MB / 0.8318 GB, free: 5.59 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.675e-05/0.6743, allocations: 93.09 kB / 0.8319 GB, free: 5.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.6753, allocations: 0.669 MB / 0.8325 GB, free: 4.801 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.567e-05/0.6754, allocations: 37.7 kB / 0.8326 GB, free: 4.758 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.000367/0.6758, allocations: 393.1 kB / 0.8329 GB, free: 4.371 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/0.676, allocations: 245.9 kB / 0.8332 GB, free: 4.129 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003278/0.6763, allocations: 166.6 kB / 0.8333 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001695/0.6765, allocations: 341.9 kB / 0.8337 GB, free: 3.621 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008945/0.6774, allocations: 293.8 kB / 0.8339 GB, free: 3.332 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009905/0.6784, allocations: 394.3 kB / 0.8343 GB, free: 2.914 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.6803, allocations: 0.739 MB / 0.835 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.6803, allocations: 0 / 0.835 GB, free: 2.129 MB / 0.6544 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002813/0.6832, allocations: 1.019 MB / 0.836 GB, free: 1.086 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 7.179e-05/0.6832, allocations: 69.58 kB / 0.8361 GB, free: 1.008 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.77e-05/0.6833, allocations: 20.14 kB / 0.8361 GB, free: 0.9883 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000384/0.6836, allocations: 81.66 kB / 0.8362 GB, free: 0.9023 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007856/0.6844, allocations: 187.7 kB / 0.8364 GB, free: 0.7188 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002955/0.6874, allocations: 3.059 MB / 0.8394 GB, free: 13.38 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008127/0.6882, allocations: 107.5 kB / 0.8395 GB, free: 13.28 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.6884, allocations: 83.97 kB / 0.8395 GB, free: 13.2 MB / 0.67 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.0004294/0.6888, allocations: 197.7 kB / 0.8397 GB, free: 12.99 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002239/0.689, allocations: 95.33 kB / 0.8398 GB, free: 12.9 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004283/0.6933, allocations: 1.791 MB / 0.8416 GB, free: 11.09 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.6933, allocations: 8 kB / 0.8416 GB, free: 11.08 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.6933, allocations: 0 / 0.8416 GB, free: 11.08 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/0.6933, allocations: 7.984 kB / 0.8416 GB, free: 11.07 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004321/0.6977, allocations: 1.959 MB / 0.8435 GB, free: 9.043 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-05/0.6977, allocations: 11.98 kB / 0.8435 GB, free: 9.031 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007207/0.6984, allocations: 167.9 kB / 0.8437 GB, free: 8.867 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003272/0.6987, allocations: 85.62 kB / 0.8438 GB, free: 8.777 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.6988, allocations: 47.91 kB / 0.8438 GB, free: 8.73 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002838/0.7017, allocations: 3.066 MB / 0.8468 GB, free: 5.379 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.7017, allocations: 4.031 kB / 0.8468 GB, free: 5.375 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00364/0.7053, allocations: 1.471 MB / 0.8482 GB, free: 3.875 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004424/0.7058, allocations: 256.2 kB / 0.8485 GB, free: 3.605 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001395/0.7059, allocations: 16 kB / 0.8485 GB, free: 3.59 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006436/0.7065, allocations: 55.94 kB / 0.8486 GB, free: 3.535 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000312/0.7069, allocations: 111.9 kB / 0.8487 GB, free: 3.426 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.707, allocations: 75.92 kB / 0.8487 GB, free: 3.352 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006405/0.7076, allocations: 471 kB / 0.8492 GB, free: 2.898 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7076, allocations: 3.938 kB / 0.8492 GB, free: 2.895 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001143/0.7088, allocations: 347.3 kB / 0.8495 GB, free: 2.555 MB / 0.67 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.0009237/0.7097, allocations: 436.5 kB / 0.8499 GB, free: 2.133 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002777/0.7125, allocations: 1.167 MB / 0.8511 GB, free: 0.8906 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.7125, allocations: 4 kB / 0.8511 GB, free: 0.8867 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001579/0.7141, allocations: 0.7657 MB / 0.8518 GB, free: 72 kB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001429/0.7155, allocations: 272.1 kB / 0.8521 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003921/0.7194, allocations: 1.853 MB / 0.8539 GB, free: 13.91 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006765/0.7201, allocations: 0.9747 MB / 0.8548 GB, free: 12.91 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001876/0.722, allocations: 0.9872 MB / 0.8558 GB, free: 11.93 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005666/0.7225, allocations: 183.3 kB / 0.856 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of SimCode: time 9.32e-07/0.7225, allocations: 0 / 0.856 GB, free: 11.75 MB / 0.6856 GB Notification: Performance of Templates: time 0.2938/1.016, allocations: 18.59 MB / 0.8741 GB, free: 231.2 MB / 0.6856 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_ThermofluidStream.Undirected.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.100077368319035]