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: "" <> buildModelFMU(ThermofluidStream.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Processes.Tests.TransportDelay,fileNamePrefix="ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001527/0.001527, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001605/0.001605, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.727/1.727, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.9557/0.9557, allocations: 91.2 MB / 381.6 MB, free: 9.426 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001834/0.001835, allocations: 80.75 kB / 460.4 MB, free: 23.1 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.1939, allocations: 67.69 MB / 0.5157 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Processes.Tests.TransportDelay): time 0.7234/0.9174, allocations: 189.2 MB / 0.7005 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01237/0.9298, allocations: 7.33 MB / 0.7076 GB, free: 11 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001421/0.9313, allocations: 27.81 kB / 0.7077 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.933, allocations: 377.5 kB / 0.708 GB, free: 10.6 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.00573/0.9388, allocations: 1.28 MB / 0.7093 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003018/0.9419, allocations: 0.6695 MB / 0.7099 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005659/0.9475, allocations: 2.357 MB / 0.7122 GB, free: 6.281 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005974/0.9482, allocations: 211.5 kB / 0.7124 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003831/0.952, allocations: 1.594 MB / 0.714 GB, free: 4.461 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/0.9535, allocations: 0.5836 MB / 0.7146 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003931/0.9539, allocations: 63.94 kB / 0.7146 GB, free: 3.812 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004011/0.9579, allocations: 1.1 MB / 0.7157 GB, free: 2.711 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004888/0.9585, allocations: 155.3 kB / 0.7158 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001098/0.9596, allocations: 401.7 kB / 0.7162 GB, free: 2.164 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00535/0.9649, allocations: 1.441 MB / 0.7176 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 9.679e-06/0.965, allocations: 0 / 0.7176 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.545e-06/0.965, allocations: 0 / 0.7176 GB, free: 0.7188 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.884e-05/0.965, allocations: 0 / 0.7176 GB, free: 0.7188 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: 118 * Number of variables: 118 Notification: Performance of Generate backend data structure: time 0.004573/0.9696, allocations: 1.354 MB / 0.719 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.36e-05/0.9697, allocations: 8.031 kB / 0.719 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.9699, allocations: 98.45 kB / 0.7191 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.9711, allocations: 158.8 kB / 0.7192 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001438/0.9726, allocations: 0.5922 MB / 0.7198 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.346e-05/0.9726, allocations: 36.94 kB / 0.7198 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000182/0.9728, allocations: 55.98 kB / 0.7199 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001401/0.9742, allocations: 0.5858 MB / 0.7205 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.9743, allocations: 0 / 0.7205 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.896e-05/0.9744, allocations: 20 kB / 0.7205 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.104e-05/0.9744, allocations: 12 kB / 0.7205 GB, free: 13.67 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.9757, allocations: 464.1 kB / 0.7209 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005041/0.9808, allocations: 2.685 MB / 0.7235 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001355/0.9822, allocations: 468.8 kB / 0.724 GB, free: 9.812 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007643/0.983, allocations: 241.5 kB / 0.7242 GB, free: 9.57 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003497/0.9833, allocations: 271.3 kB / 0.7245 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/0.9844, allocations: 395.2 kB / 0.7249 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=54): time 3.968e-06/0.9844, allocations: 0 / 0.7249 GB, free: 8.844 MB / 0.5294 GB Notification: Performance of matching and sorting (n=54): time 0.003117/0.9875, allocations: 1.041 MB / 0.7259 GB, free: 7.754 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.975e-05/0.9876, allocations: 81.11 kB / 0.726 GB, free: 7.656 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008719/0.9885, allocations: 0.5747 MB / 0.7265 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.217e-05/0.9886, allocations: 37.7 kB / 0.7266 GB, free: 7.031 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005054/0.9891, allocations: 348.9 kB / 0.7269 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002237/0.9893, allocations: 177.4 kB / 0.7271 GB, free: 6.512 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003058/0.9896, allocations: 130.2 kB / 0.7272 GB, free: 6.379 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0002407/0.9899, allocations: 382.8 kB / 0.7275 GB, free: 5.996 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006412/0.9905, allocations: 204.9 kB / 0.7277 GB, free: 5.797 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/0.9913, allocations: 262.6 kB / 0.728 GB, free: 5.52 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00137/0.9927, allocations: 0.5081 MB / 0.7285 GB, free: 4.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.861e-06/0.9927, allocations: 0 / 0.7285 GB, free: 4.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002095/0.9948, allocations: 0.7671 MB / 0.7292 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.864e-05/0.9949, allocations: 71.33 kB / 0.7293 GB, free: 4.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.99e-05/0.9949, allocations: 11.98 kB / 0.7293 GB, free: 4.094 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004018/0.9953, allocations: 89.77 kB / 0.7294 GB, free: 4 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005766/0.9959, allocations: 123.8 kB / 0.7295 GB, free: 3.879 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003287/0.9992, allocations: 3.058 MB / 0.7325 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007281/1, allocations: 63.53 kB / 0.7326 GB, free: 488 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001356/1, allocations: 67.97 kB / 0.7326 GB, free: 420 kB / 0.5294 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.0003953/1.001, allocations: 185.7 kB / 0.7328 GB, free: 224 kB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002219/1.001, allocations: 75 kB / 0.7329 GB, free: 148 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003579/1.004, allocations: 1.321 MB / 0.7342 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/1.004, allocations: 4 kB / 0.7342 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/1.004, allocations: 4 kB / 0.7342 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/1.004, allocations: 0 / 0.7342 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/1.008, allocations: 1.583 MB / 0.7357 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.351e-05/1.008, allocations: 11.98 kB / 0.7357 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006487/1.009, allocations: 115.9 kB / 0.7358 GB, free: 13.03 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003275/1.009, allocations: 89.55 kB / 0.7359 GB, free: 12.94 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.341e-05/1.009, allocations: 35.97 kB / 0.736 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003231/1.012, allocations: 3.052 MB / 0.7389 GB, free: 9.562 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/1.012, allocations: 4.031 kB / 0.7389 GB, free: 9.559 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002715/1.015, allocations: 1.124 MB / 0.74 GB, free: 8.406 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006664/1.016, allocations: 224 kB / 0.7403 GB, free: 8.168 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/1.016, allocations: 13.12 kB / 0.7403 GB, free: 8.156 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/1.017, allocations: 35.97 kB / 0.7403 GB, free: 8.121 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002897/1.017, allocations: 87.88 kB / 0.7404 GB, free: 8.035 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002155/1.017, allocations: 63.92 kB / 0.7405 GB, free: 7.973 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000769/1.018, allocations: 411.1 kB / 0.7408 GB, free: 7.578 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.6e-07/1.018, allocations: 0 / 0.7408 GB, free: 7.578 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.001626/1.02, allocations: 303.5 kB / 0.7411 GB, free: 7.281 MB / 0.545 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.004473/1.024, allocations: 1.998 MB / 0.7431 GB, free: 5.25 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002752/1.027, allocations: 0.9991 MB / 0.7441 GB, free: 4.18 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/1.027, allocations: 0 / 0.7441 GB, free: 4.18 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001444/1.028, allocations: 0.6641 MB / 0.7447 GB, free: 3.465 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001444/1.03, allocations: 220.9 kB / 0.7449 GB, free: 3.254 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/1.044, allocations: 6.245 MB / 0.751 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007484/1.045, allocations: 0.923 MB / 0.7519 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00197/1.047, allocations: 0.6795 MB / 0.7526 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009509/1.048, allocations: 355.2 kB / 0.7529 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of SimCode: time 1.443e-06/1.048, allocations: 0 / 0.7529 GB, free: 10.87 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07651/1.124, allocations: 22.64 MB / 0.775 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.67/12.79, allocations: 15.97 kB / 0.775 GB, free: 4.434 MB / 0.5762 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.csv --start-time 0 --stop-time 2.5 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0025 ThermofluidStream_ThermofluidStream_Processes_Tests_TransportDelay.fmu > ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.TransportDelay_res.csv","/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