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.001155/0.001155, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001447/0.001447, allocations: 195.8 kB / 16.14 MB, free: 6.645 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.382/1.382, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6748/0.6748, allocations: 91.19 MB / 381.1 MB, free: 9.621 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 89.72 kB / 459.6 MB, free: 23.4 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1196/0.1213, allocations: 67.68 MB / 0.515 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TransportDelay): time 0.4627/0.5841, allocations: 190.5 MB / 0.701 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.008857/0.593, allocations: 5.652 MB / 0.7065 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001178/0.5942, allocations: 39.75 kB / 0.7065 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.5955, allocations: 358 kB / 0.7069 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004434/0.6, allocations: 1.231 MB / 0.7081 GB, free: 10.39 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002516/0.6025, allocations: 0.7359 MB / 0.7088 GB, free: 9.656 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005005/0.6076, allocations: 2.984 MB / 0.7117 GB, free: 6.664 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005313/0.6081, allocations: 234.3 kB / 0.7119 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003688/0.6118, allocations: 1.773 MB / 0.7136 GB, free: 4.652 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001203/0.6131, allocations: 0.6925 MB / 0.7143 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002385/0.6133, allocations: 48 kB / 0.7144 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.616, allocations: 1.112 MB / 0.7155 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003237/0.6164, allocations: 179.1 kB / 0.7156 GB, free: 2.621 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007098/0.6171, allocations: 461.3 kB / 0.7161 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003176/0.6203, allocations: 1.644 MB / 0.7177 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.6203, allocations: 0 / 0.7177 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.282e-06/0.6203, allocations: 0 / 0.7177 GB, free: 0.5195 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.081e-05/0.6204, allocations: 0 / 0.7177 GB, free: 0.5195 MB / 0.5137 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.003939/0.6243, allocations: 1.568 MB / 0.7192 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.6244, allocations: 8.031 kB / 0.7192 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.6256, allocations: 190.6 kB / 0.7194 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.6268, allocations: 0.6505 MB / 0.72 GB, free: 14 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.18e-05/0.6269, allocations: 82.94 kB / 0.7201 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001613/0.6271, allocations: 67.91 kB / 0.7202 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001871/0.629, allocations: 0.8 MB / 0.721 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.629, allocations: 3.938 kB / 0.721 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.685e-05/0.6291, allocations: 27.98 kB / 0.721 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.73e-05/0.6292, allocations: 16 kB / 0.721 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001926/0.6311, allocations: 0.697 MB / 0.7217 GB, free: 12.27 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005335/0.6364, allocations: 3.624 MB / 0.7252 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001977/0.6385, allocations: 0.6985 MB / 0.7259 GB, free: 7.621 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009091/0.6394, allocations: 345.8 kB / 0.7262 GB, free: 7.277 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009681/0.6404, allocations: 0.5016 MB / 0.7267 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.6416, allocations: 0.5048 MB / 0.7272 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=69): time 3.546e-06/0.6417, allocations: 0 / 0.7272 GB, free: 6.16 MB / 0.5294 GB Notification: Performance of matching and sorting (n=69): time 0.00388/0.6456, allocations: 1.353 MB / 0.7285 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.6456, allocations: 89.09 kB / 0.7286 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008811/0.6465, allocations: 0.6572 MB / 0.7293 GB, free: 3.984 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 9.583e-05/0.6466, allocations: 37.7 kB / 0.7293 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003087/0.647, allocations: 384.6 kB / 0.7297 GB, free: 3.562 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.6472, allocations: 232.6 kB / 0.7299 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003112/0.6475, allocations: 170.5 kB / 0.73 GB, free: 3.16 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000123/0.6476, allocations: 334 kB / 0.7304 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00088/0.6485, allocations: 297.7 kB / 0.7306 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000947/0.6495, allocations: 390.4 kB / 0.731 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001847/0.6513, allocations: 0.7429 MB / 0.7317 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.6514, allocations: 4 kB / 0.7317 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.002627/0.654, allocations: 1.018 MB / 0.7327 GB, free: 292 kB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.733e-05/0.6541, allocations: 59.41 kB / 0.7328 GB, free: 220 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.165e-05/0.6541, allocations: 12.2 kB / 0.7328 GB, free: 208 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003878/0.6545, allocations: 85.66 kB / 0.7329 GB, free: 116 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008025/0.6553, allocations: 191.7 kB / 0.7331 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/0.6579, allocations: 2.846 MB / 0.7359 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008778/0.6588, allocations: 107.3 kB / 0.736 GB, free: 12.71 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/0.659, allocations: 83.97 kB / 0.736 GB, free: 12.63 MB / 0.545 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.0005107/0.6595, allocations: 201.7 kB / 0.7362 GB, free: 12.43 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.6598, allocations: 82.97 kB / 0.7363 GB, free: 12.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004519/0.6643, allocations: 1.805 MB / 0.7381 GB, free: 10.53 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-05/0.6643, allocations: 11.94 kB / 0.7381 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.6644, allocations: 7.938 kB / 0.7381 GB, free: 10.51 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.6644, allocations: 3.984 kB / 0.7381 GB, free: 10.51 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004466/0.6689, allocations: 1.949 MB / 0.74 GB, free: 8.484 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/0.6689, allocations: 4 kB / 0.74 GB, free: 8.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/0.6697, allocations: 167.8 kB / 0.7402 GB, free: 8.316 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003221/0.67, allocations: 97.64 kB / 0.7403 GB, free: 8.215 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.6701, allocations: 43.97 kB / 0.7403 GB, free: 8.172 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/0.6725, allocations: 2.842 MB / 0.7431 GB, free: 5.059 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.6726, allocations: 8 kB / 0.7431 GB, free: 5.051 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003663/0.6762, allocations: 1.46 MB / 0.7445 GB, free: 3.559 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005307/0.6768, allocations: 255.7 kB / 0.7447 GB, free: 3.289 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/0.677, allocations: 16 kB / 0.7448 GB, free: 3.273 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000795/0.6778, allocations: 63.88 kB / 0.7448 GB, free: 3.211 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.6781, allocations: 107.8 kB / 0.7449 GB, free: 3.105 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001393/0.6783, allocations: 79.97 kB / 0.745 GB, free: 3.027 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0006914/0.679, allocations: 463 kB / 0.7454 GB, free: 2.582 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/0.679, allocations: 4 kB / 0.7455 GB, free: 2.578 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0014/0.6804, allocations: 347.5 kB / 0.7458 GB, free: 2.238 MB / 0.545 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.001205/0.6816, allocations: 435.7 kB / 0.7462 GB, free: 1.816 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002942/0.6846, allocations: 1.218 MB / 0.7474 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6846, allocations: 0 / 0.7474 GB, free: 0.5234 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001644/0.6863, allocations: 0.7929 MB / 0.7482 GB, free: 15.68 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001589/0.6879, allocations: 236.1 kB / 0.7484 GB, free: 15.45 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.6921, allocations: 2.133 MB / 0.7505 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006007/0.6927, allocations: 0.9707 MB / 0.7514 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002239/0.6949, allocations: 0.9949 MB / 0.7524 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007149/0.6957, allocations: 183.3 kB / 0.7526 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of SimCode: time 6.22e-07/0.6957, allocations: 0 / 0.7526 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of Templates: time 0.03145/0.7272, allocations: 17.13 MB / 0.7693 GB, free: 10.13 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 -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