Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay") translateModel(ThermofluidStream.Processes.Tests.TransportDelay,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|sawTooth.T_start|sawTooth.count|sawTooth1.T_start|sawTooth1.count|transportDelay.inlet.m_flow|transportDelay.x|transportDelay1.inlet.m_flow|transportDelay1.x",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 104.5 kB / 16.35 MB, free: 5.824 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.001107/0.001107, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.249/1.249, allocations: 222.9 MB / 241 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.6434/0.6434, allocations: 89.5 MB / 380.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001437/0.001437, allocations: 75.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 67.31 MB / 0.5146 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.3973/0.5114, allocations: 189 MB / 0.6992 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.008114/0.5196, allocations: 7.276 MB / 0.7063 GB, free: 2.789 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004604/0.5201, allocations: 10.56 kB / 0.7063 GB, free: 2.781 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008254/0.5209, allocations: 365.7 kB / 0.7067 GB, free: 2.422 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.002827/0.5238, allocations: 1.237 MB / 0.7079 GB, free: 1.184 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00148/0.5253, allocations: 0.6617 MB / 0.7085 GB, free: 0.5195 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.003139/0.5285, allocations: 2.261 MB / 0.7107 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.5288, allocations: 187.6 kB / 0.7109 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.5312, allocations: 1.54 MB / 0.7124 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006511/0.5319, allocations: 0.5567 MB / 0.713 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.336e-05/0.532, allocations: 60 kB / 0.713 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002365/0.5343, allocations: 1.143 MB / 0.7141 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001424/0.5345, allocations: 147.4 kB / 0.7143 GB, free: 10.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003532/0.5349, allocations: 362.1 kB / 0.7146 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00224/0.5371, allocations: 1.363 MB / 0.716 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.5371, allocations: 0 / 0.716 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.225e-06/0.5371, allocations: 0 / 0.716 GB, free: 8.914 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.007e-06/0.5371, allocations: 0 / 0.716 GB, free: 8.914 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.002324/0.5395, allocations: 1.227 MB / 0.7172 GB, free: 7.629 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.578e-05/0.5395, allocations: 8.031 kB / 0.7172 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009095/0.5404, allocations: 152 kB / 0.7173 GB, free: 7.473 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006068/0.5411, allocations: 460.3 kB / 0.7177 GB, free: 6.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.659e-05/0.5411, allocations: 37 kB / 0.7178 GB, free: 6.945 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001043/0.5412, allocations: 51.98 kB / 0.7178 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00103/0.5423, allocations: 0.5907 MB / 0.7184 GB, free: 6.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.5423, allocations: 7.875 kB / 0.7184 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.623e-05/0.5424, allocations: 23.94 kB / 0.7184 GB, free: 6.254 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/0.5424, allocations: 12 kB / 0.7184 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.5434, allocations: 460.1 kB / 0.7189 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.5467, allocations: 2.642 MB / 0.7215 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009787/0.5477, allocations: 452.9 kB / 0.7219 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005024/0.5482, allocations: 246.4 kB / 0.7221 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.5485, allocations: 267.3 kB / 0.7224 GB, free: 1.883 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007469/0.5492, allocations: 402.3 kB / 0.7228 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=54): time 1.953e-06/0.5493, allocations: 0 / 0.7228 GB, free: 1.469 MB / 0.5606 GB Notification: Performance of matching and sorting (n=54): time 0.002346/0.5516, allocations: 1.021 MB / 0.7238 GB, free: 408 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.5517, allocations: 85.09 kB / 0.7239 GB, free: 304 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004944/0.5522, allocations: 454.1 kB / 0.7243 GB, free: 15.84 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.586e-05/0.5522, allocations: 37.7 kB / 0.7243 GB, free: 15.8 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.5524, allocations: 280.9 kB / 0.7246 GB, free: 15.52 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.5526, allocations: 189.3 kB / 0.7248 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/0.5528, allocations: 130.2 kB / 0.7249 GB, free: 15.2 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001419/0.5529, allocations: 374.7 kB / 0.7253 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004954/0.5534, allocations: 197.5 kB / 0.7254 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005066/0.554, allocations: 258.6 kB / 0.7257 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009719/0.5549, allocations: 0.5159 MB / 0.7262 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.5549, allocations: 4.562 kB / 0.7262 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001478/0.5564, allocations: 0.7556 MB / 0.7269 GB, free: 13.04 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.5565, allocations: 67.39 kB / 0.727 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/0.5565, allocations: 11.98 kB / 0.727 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003225/0.5569, allocations: 81.66 kB / 0.7271 GB, free: 12.86 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004724/0.5573, allocations: 119.9 kB / 0.7272 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00224/0.5596, allocations: 3.045 MB / 0.7302 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004691/0.5601, allocations: 67.52 kB / 0.7302 GB, free: 9.344 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.5602, allocations: 67.92 kB / 0.7303 GB, free: 9.277 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 (sawTooth.count,$PRE.sawTooth.count,sawTooth.T_start,$PRE.sawTooth.T_start,$whenCondition2,sawTooth1.count,$PRE.sawTooth1.count,sawTooth1.T_start,$PRE.sawTooth1.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 52 * 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.0002457/0.5604, allocations: 178.3 kB / 0.7305 GB, free: 9.094 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001063/0.5606, allocations: 63.19 kB / 0.7305 GB, free: 9.031 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/0.5631, allocations: 1.293 MB / 0.7318 GB, free: 7.75 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.5631, allocations: 8 kB / 0.7318 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5632, allocations: 0 / 0.7318 GB, free: 7.742 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.5632, allocations: 7.984 kB / 0.7318 GB, free: 7.734 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002609/0.5658, allocations: 1.537 MB / 0.7333 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.303e-05/0.5658, allocations: 15.98 kB / 0.7333 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004445/0.5663, allocations: 115.9 kB / 0.7334 GB, free: 6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002606/0.5665, allocations: 85.62 kB / 0.7335 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.919e-05/0.5666, allocations: 44.72 kB / 0.7336 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002305/0.5689, allocations: 3.053 MB / 0.7365 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.06e-06/0.569, allocations: 9.531 kB / 0.7366 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002017/0.571, allocations: 1.111 MB / 0.7376 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002831/0.5713, allocations: 208.2 kB / 0.7378 GB, free: 1.168 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.795e-05/0.5714, allocations: 19.92 kB / 0.7379 GB, free: 1.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004371/0.5718, allocations: 35.97 kB / 0.7379 GB, free: 1.113 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001811/0.572, allocations: 87.89 kB / 0.738 GB, free: 1.027 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.864e-05/0.5721, allocations: 59.98 kB / 0.738 GB, free: 0.9688 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003364/0.5725, allocations: 326.9 kB / 0.7383 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5725, allocations: 0 / 0.7383 GB, free: 0.6523 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008544/0.5733, allocations: 291.6 kB / 0.7386 GB, free: 376 kB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (transportDelay1.x,flowResistance1.inlet.m_flow,transportDelay.x,flowResistance.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,sawTooth1.T_start,sawTooth1.count,$whenCondition2,sawTooth.T_start,sawTooth.count) * Number of discrete states: 2 (sawTooth.count,sawTooth1.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 44 * 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.1814/0.7548, allocations: 427.9 kB / 0.739 GB, free: 185.2 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001715/0.7565, allocations: 0.9692 MB / 0.74 GB, free: 184.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.7565, allocations: 1.438 kB / 0.74 GB, free: 184.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008656/0.7574, allocations: 0.6635 MB / 0.7406 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.7584, allocations: 200.3 kB / 0.7408 GB, free: 184.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.7607, allocations: 1.387 MB / 0.7422 GB, free: 183.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.7609, allocations: 0.8909 MB / 0.743 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009275/0.7618, allocations: 0.6584 MB / 0.7437 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000322/0.7622, allocations: 127.2 kB / 0.7438 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/0.7622, allocations: 2.344 kB / 0.7438 GB, free: 183.2 MB / 0.5762 GB Notification: Performance of Templates: time 0.6356/1.398, allocations: 15.16 MB / 0.7586 GB, free: 182.3 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay -abortSlowSimulation -alarm=1200 -s cvode -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.TransportDelay_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches