Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001808/0.001808, allocations: 109 kB / 16.46 MB, free: 6.508 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002268/0.002268, allocations: 213.7 kB / 19.43 MB, free: 3.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.376/1.376, allocations: 230.6 MB / 252.8 MB, free: 9.113 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7223/0.7223, allocations: 94.56 MB / 403.4 MB, free: 10.12 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002336/0.002336, allocations: 88.08 kB / 0.5499 GB, free: 38.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1191, allocations: 73.02 MB / 0.6212 GB, free: 1.965 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4806/0.5997, allocations: 141 MB / 0.7589 GB, free: 2.262 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002342/0.6021, allocations: 2.134 MB / 0.7609 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002686/0.6023, allocations: 20.31 kB / 0.761 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004677/0.6028, allocations: 117.8 kB / 0.7611 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004006/0.6032, allocations: 155.9 kB / 0.7612 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004157/0.6036, allocations: 173.2 kB / 0.7614 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.6039, allocations: 324.1 kB / 0.7617 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.6041, allocations: 40.31 kB / 0.7617 GB, free: 2.207 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004754/0.6046, allocations: 229.3 kB / 0.762 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.6047, allocations: 123.9 kB / 0.7621 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.6048, allocations: 12.94 kB / 0.7621 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004095/0.6052, allocations: 205.5 kB / 0.7623 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.6053, allocations: 43.31 kB / 0.7623 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001101/0.6054, allocations: 103.2 kB / 0.7624 GB, free: 2.199 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005286/0.6059, allocations: 307.7 kB / 0.7627 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.6059, allocations: 0 / 0.7627 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.683e-06/0.6059, allocations: 0 / 0.7627 GB, free: 2.172 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.753e-06/0.6059, allocations: 0 / 0.7627 GB, free: 2.172 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001116/0.607, allocations: 0.5779 MB / 0.7633 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6071, allocations: 9.922 kB / 0.7633 GB, free: 17.7 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.848e-05/0.6071, allocations: 45.56 kB / 0.7633 GB, free: 17.66 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.845e-05/0.6072, allocations: 31.69 kB / 0.7634 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.6077, allocations: 325.8 kB / 0.7637 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.189e-05/0.6077, allocations: 16.31 kB / 0.7637 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.742e-05/0.6077, allocations: 16.83 kB / 0.7637 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003326/0.608, allocations: 167.9 kB / 0.7639 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.6081, allocations: 2.719 kB / 0.7639 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.6081, allocations: 5.078 kB / 0.7639 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.6081, allocations: 3.031 kB / 0.7639 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002773/0.6084, allocations: 102.1 kB / 0.764 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.6094, allocations: 0.907 MB / 0.7649 GB, free: 16.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.6097, allocations: 84.75 kB / 0.7649 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.6098, allocations: 37.72 kB / 0.765 GB, free: 16.56 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001041/0.6099, allocations: 82.97 kB / 0.7651 GB, free: 16.46 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.6101, allocations: 92.52 kB / 0.7651 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.573e-06/0.6101, allocations: 5.719 kB / 0.7651 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0004824/0.6106, allocations: 154 kB / 0.7653 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.6106, allocations: 56.75 kB / 0.7653 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.6109, allocations: 267 kB / 0.7656 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.597e-05/0.6109, allocations: 32.42 kB / 0.7656 GB, free: 16.16 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001177/0.611, allocations: 171.7 kB / 0.7658 GB, free: 16.05 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.6111, allocations: 28.67 kB / 0.7658 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.894e-05/0.6111, allocations: 38.36 kB / 0.7659 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001521/0.6113, allocations: 336.2 kB / 0.7662 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001436/0.6114, allocations: 40.89 kB / 0.7662 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001455/0.6116, allocations: 90.34 kB / 0.7663 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000285/0.6118, allocations: 151.6 kB / 0.7665 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.6118, allocations: 0 / 0.7665 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004341/0.6123, allocations: 207 kB / 0.7666 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.924e-05/0.6123, allocations: 35.89 kB / 0.7667 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.004e-06/0.6123, allocations: 1.5 kB / 0.7667 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.397e-05/0.6124, allocations: 7.281 kB / 0.7667 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.6125, allocations: 33.8 kB / 0.7667 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.6125, allocations: 5.828 kB / 0.7667 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.6127, allocations: 23.44 kB / 0.7668 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.6127, allocations: 7.969 kB / 0.7668 GB, free: 15.45 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.6128, allocations: 135.7 kB / 0.7669 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.739e-05/0.6129, allocations: 29.59 kB / 0.7669 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003647/0.6133, allocations: 139.6 kB / 0.767 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.6133, allocations: 1.219 kB / 0.767 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.6133, allocations: 0 / 0.767 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.84e-06/0.6133, allocations: 1.125 kB / 0.7671 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000242/0.6135, allocations: 242 kB / 0.7673 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.6135, allocations: 3.188 kB / 0.7673 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001157/0.6136, allocations: 18.06 kB / 0.7673 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.6136, allocations: 3.141 kB / 0.7673 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.6136, allocations: 7.875 kB / 0.7673 GB, free: 15.08 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.6136, allocations: 5 kB / 0.7673 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.6136, allocations: 0 / 0.7673 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004968/0.6141, allocations: 183.5 kB / 0.7675 GB, free: 15 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.363e-05/0.6142, allocations: 98.86 kB / 0.7676 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.638e-05/0.6143, allocations: 13.92 kB / 0.7676 GB, free: 14.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001096/0.6144, allocations: 13.03 kB / 0.7676 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.933e-05/0.6144, allocations: 10.45 kB / 0.7676 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.6145, allocations: 4.906 kB / 0.7676 GB, free: 14.88 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002344/0.6147, allocations: 189.9 kB / 0.7678 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6147, allocations: 1.203 kB / 0.7678 GB, free: 14.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002997/0.615, allocations: 45.59 kB / 0.7679 GB, free: 14.8 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009964/0.616, allocations: 0.7598 MB / 0.7686 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004779/0.6165, allocations: 157.3 kB / 0.7687 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6165, allocations: 0.5312 kB / 0.7687 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001638/0.6166, allocations: 43.61 kB / 0.7688 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.617, allocations: 52.14 kB / 0.7688 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003893/0.6209, allocations: 2.281 MB / 0.7711 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.6213, allocations: 0.7399 MB / 0.7718 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001315/0.6215, allocations: 21 kB / 0.7718 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.6216, allocations: 75.73 kB / 0.7719 GB, free: 12 MB / 0.5919 GB Notification: Performance of SimCode: time 1.483e-06/0.6216, allocations: 4 kB / 0.7719 GB, free: 12 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03064/0.6522, allocations: 5.283 MB / 0.777 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.01/8.663, allocations: 7.719 kB / 0.777 GB, free: 11.29 MB / 0.5919 GB " [Timeout remaining time 651] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.073774696007604]