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.006429/0.006429, allocations: 99.72 kB / 15.73 MB, free: 6.48 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.001498/0.001498, allocations: 195.5 kB / 16.67 MB, free: 6.379 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6652/0.6652, allocations: 91.2 MB / 381.7 MB, free: 9.336 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 79.88 kB / 0.5169 GB, free: 8.996 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.128, allocations: 67.69 MB / 0.583 GB, free: 5.219 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.5602/0.6882, allocations: 192.4 MB / 0.7708 GB, free: 7.348 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.007249/0.6955, allocations: 5.531 MB / 0.7762 GB, free: 1.805 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000786/0.6963, allocations: 39.75 kB / 0.7763 GB, free: 1.766 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001016/0.6973, allocations: 417.2 kB / 0.7767 GB, free: 1.355 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.003684/0.7011, allocations: 1.4 MB / 0.778 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.7031, allocations: 0.827 MB / 0.7788 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.004147/0.7073, allocations: 2.652 MB / 0.7814 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004186/0.7077, allocations: 243.9 kB / 0.7816 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003239/0.711, allocations: 1.847 MB / 0.7835 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008983/0.7119, allocations: 0.7082 MB / 0.7841 GB, free: 9.648 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0001144/0.712, allocations: 72 kB / 0.7842 GB, free: 9.578 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002515/0.7145, allocations: 1.217 MB / 0.7854 GB, free: 8.359 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.7147, allocations: 191.2 kB / 0.7856 GB, free: 8.172 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.0004761/0.7152, allocations: 485.3 kB / 0.786 GB, free: 7.695 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.003073/0.7183, allocations: 1.725 MB / 0.7877 GB, free: 5.965 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.7183, allocations: 0 / 0.7877 GB, free: 5.965 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.573e-06/0.7183, allocations: 0 / 0.7877 GB, free: 5.965 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.258e-05/0.7184, allocations: 0 / 0.7877 GB, free: 5.965 MB / 0.6231 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.00362/0.722, allocations: 1.568 MB / 0.7893 GB, free: 4.336 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.722, allocations: 11.97 kB / 0.7893 GB, free: 4.324 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001171/0.7232, allocations: 186.6 kB / 0.7895 GB, free: 4.141 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.7245, allocations: 0.7089 MB / 0.7901 GB, free: 3.391 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.7247, allocations: 83.81 kB / 0.7902 GB, free: 3.305 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001426/0.7248, allocations: 60 kB / 0.7903 GB, free: 3.246 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.7266, allocations: 0.8155 MB / 0.7911 GB, free: 2.402 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.7266, allocations: 0 / 0.7911 GB, free: 2.402 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.432e-05/0.7267, allocations: 24 kB / 0.7911 GB, free: 2.379 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.934e-05/0.7267, allocations: 23.97 kB / 0.7911 GB, free: 2.355 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/0.7287, allocations: 0.6891 MB / 0.7918 GB, free: 1.668 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005177/0.7339, allocations: 3.613 MB / 0.7953 GB, free: 13.74 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.7359, allocations: 0.7056 MB / 0.796 GB, free: 13.02 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000953/0.7369, allocations: 346.5 kB / 0.7963 GB, free: 12.68 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009133/0.7378, allocations: 0.4899 MB / 0.7968 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/0.739, allocations: 0.5062 MB / 0.7973 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=69): time 4.949e-06/0.739, allocations: 0 / 0.7973 GB, free: 11.57 MB / 0.6387 GB Notification: Performance of matching and sorting (n=69): time 0.003852/0.7429, allocations: 1.366 MB / 0.7987 GB, free: 10.15 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.86e-05/0.743, allocations: 89.09 kB / 0.7987 GB, free: 10.05 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008378/0.7438, allocations: 0.661 MB / 0.7994 GB, free: 9.375 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 7.453e-05/0.7439, allocations: 41.69 kB / 0.7994 GB, free: 9.328 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002965/0.7442, allocations: 388.5 kB / 0.7998 GB, free: 8.945 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.7444, allocations: 224.8 kB / 0.8 GB, free: 8.723 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002884/0.7447, allocations: 170.5 kB / 0.8002 GB, free: 8.551 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7449, allocations: 338 kB / 0.8005 GB, free: 8.215 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008883/0.7458, allocations: 289.8 kB / 0.8008 GB, free: 7.93 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009737/0.7467, allocations: 394.3 kB / 0.8011 GB, free: 7.512 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001889/0.7486, allocations: 0.739 MB / 0.8019 GB, free: 6.727 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.7487, allocations: 0 / 0.8019 GB, free: 6.727 MB / 0.6387 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002624/0.7513, allocations: 1.026 MB / 0.8029 GB, free: 5.676 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 5.519e-05/0.7514, allocations: 59.41 kB / 0.8029 GB, free: 5.605 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.7514, allocations: 16.2 kB / 0.8029 GB, free: 5.59 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003748/0.7518, allocations: 85.59 kB / 0.803 GB, free: 5.5 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007651/0.7526, allocations: 191.7 kB / 0.8032 GB, free: 5.312 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00246/0.755, allocations: 3.052 MB / 0.8062 GB, free: 1.992 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008099/0.7559, allocations: 111.3 kB / 0.8063 GB, free: 1.883 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.756, allocations: 82.09 kB / 0.8064 GB, free: 1.805 MB / 0.6387 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.0003927/0.7564, allocations: 209.6 kB / 0.8066 GB, free: 1.59 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001752/0.7566, allocations: 82.97 kB / 0.8066 GB, free: 1.508 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003944/0.7606, allocations: 1.795 MB / 0.8084 GB, free: 15.7 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/0.7606, allocations: 15.92 kB / 0.8084 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.7606, allocations: 0 / 0.8084 GB, free: 15.68 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.662e-05/0.7606, allocations: 11.98 kB / 0.8084 GB, free: 15.67 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.7649, allocations: 1.941 MB / 0.8103 GB, free: 13.66 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-05/0.7649, allocations: 11.98 kB / 0.8103 GB, free: 13.65 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007084/0.7656, allocations: 175.8 kB / 0.8105 GB, free: 13.48 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003111/0.766, allocations: 85.58 kB / 0.8106 GB, free: 13.39 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.103e-05/0.7661, allocations: 39.97 kB / 0.8106 GB, free: 13.35 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00252/0.7686, allocations: 3.064 MB / 0.8136 GB, free: 10 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7686, allocations: 0 / 0.8136 GB, free: 10 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003667/0.7723, allocations: 1.471 MB / 0.815 GB, free: 8.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004676/0.7728, allocations: 247.7 kB / 0.8153 GB, free: 8.238 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001207/0.7729, allocations: 20.56 kB / 0.8153 GB, free: 8.219 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006297/0.7736, allocations: 59.92 kB / 0.8154 GB, free: 8.16 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.7738, allocations: 103.9 kB / 0.8155 GB, free: 8.059 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/0.774, allocations: 79.97 kB / 0.8155 GB, free: 7.98 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0005967/0.7746, allocations: 463 kB / 0.816 GB, free: 7.535 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7746, allocations: 0 / 0.816 GB, free: 7.535 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001073/0.7756, allocations: 339.6 kB / 0.8163 GB, free: 7.203 MB / 0.6544 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.0008465/0.7765, allocations: 428.9 kB / 0.8167 GB, free: 6.789 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002722/0.7792, allocations: 1.229 MB / 0.8179 GB, free: 5.484 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.7793, allocations: 0 / 0.8179 GB, free: 5.484 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001598/0.7809, allocations: 0.7852 MB / 0.8187 GB, free: 4.645 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001371/0.7822, allocations: 260.6 kB / 0.8189 GB, free: 4.391 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00365/0.7859, allocations: 1.805 MB / 0.8207 GB, free: 2.539 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005433/0.7865, allocations: 0.9668 MB / 0.8216 GB, free: 1.543 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001707/0.7882, allocations: 0.9979 MB / 0.8226 GB, free: 0.5508 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005338/0.7887, allocations: 183.3 kB / 0.8228 GB, free: 380 kB / 0.6544 GB Notification: Performance of SimCode: time 8.01e-07/0.7887, allocations: 0 / 0.8228 GB, free: 380 kB / 0.6544 GB Notification: Performance of Templates: time 0.2811/1.07, allocations: 18.57 MB / 0.8409 GB, free: 225.9 MB / 0.67 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