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.001816/0.001816, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002727/0.002727, allocations: 208 kB / 22.24 MB, free: 5.262 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.467/1.467, allocations: 230.6 MB / 256 MB, free: 7.742 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.7369/0.7369, allocations: 94.62 MB / 407 MB, free: 8.863 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.002525/0.002525, allocations: 86.69 kB / 0.5549 GB, free: 38.32 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1325, allocations: 73.05 MB / 0.6263 GB, free: 168 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.15/0.2825, allocations: 121 MB / 0.7444 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002528/0.285, allocations: 1.956 MB / 0.7463 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000207/0.2852, allocations: 19.81 kB / 0.7463 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004456/0.2857, allocations: 107.3 kB / 0.7464 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003657/0.286, allocations: 151 kB / 0.7466 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004007/0.2864, allocations: 171.4 kB / 0.7467 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003846/0.2868, allocations: 330.6 kB / 0.747 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.287, allocations: 40.34 kB / 0.7471 GB, free: 3.965 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004773/0.2874, allocations: 231 kB / 0.7473 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001754/0.2876, allocations: 107.5 kB / 0.7474 GB, free: 3.633 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.131e-05/0.2876, allocations: 12 kB / 0.7474 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003304/0.288, allocations: 179.6 kB / 0.7476 GB, free: 3.445 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.405e-05/0.288, allocations: 31.8 kB / 0.7476 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.648e-05/0.2881, allocations: 83.55 kB / 0.7477 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004361/0.2886, allocations: 298.7 kB / 0.748 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2886, allocations: 4 kB / 0.748 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.372e-06/0.2886, allocations: 0 / 0.748 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.752e-06/0.2886, allocations: 0 / 0.748 GB, free: 3.035 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.0009111/0.2895, allocations: 0.5064 MB / 0.7485 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.2895, allocations: 8.031 kB / 0.7485 GB, free: 2.484 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.031e-05/0.2896, allocations: 38.75 kB / 0.7485 GB, free: 2.438 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.708e-05/0.2896, allocations: 32.75 kB / 0.7486 GB, free: 2.406 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004731/0.2901, allocations: 256 kB / 0.7488 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.2901, allocations: 12.38 kB / 0.7488 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.2902, allocations: 16.33 kB / 0.7488 GB, free: 2.105 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003428/0.2905, allocations: 177 kB / 0.749 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.2905, allocations: 3.984 kB / 0.749 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.2905, allocations: 0 / 0.749 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.2905, allocations: 7.938 kB / 0.749 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002842/0.2908, allocations: 99.86 kB / 0.7491 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.2919, allocations: 0.7295 MB / 0.7498 GB, free: 1.016 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002987/0.2922, allocations: 78.53 kB / 0.7499 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.2923, allocations: 40.89 kB / 0.7499 GB, free: 0.8867 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.2924, allocations: 11.98 kB / 0.7499 GB, free: 0.875 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.2926, allocations: 83.36 kB / 0.75 GB, free: 0.7812 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.2926, allocations: 7.938 kB / 0.75 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of matching and sorting (n=7): time 0.0004763/0.2931, allocations: 157.4 kB / 0.7502 GB, free: 0.6133 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.346e-05/0.2932, allocations: 51.41 kB / 0.7502 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000282/0.2934, allocations: 276.5 kB / 0.7505 GB, free: 272 kB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.2935, allocations: 29.7 kB / 0.7505 GB, free: 236 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.2936, allocations: 179.7 kB / 0.7507 GB, free: 52 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.2936, allocations: 23.8 kB / 0.7507 GB, free: 28 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2823/0.5759, allocations: 33.92 kB / 0.7508 GB, free: 128.5 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 9.931e-05/0.576, allocations: 333.3 kB / 0.7511 GB, free: 128.2 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.5762, allocations: 70.27 kB / 0.7511 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/0.5764, allocations: 109.6 kB / 0.7512 GB, free: 128.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002817/0.5767, allocations: 154.7 kB / 0.7514 GB, free: 128 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.5767, allocations: 0.5312 kB / 0.7514 GB, free: 128 MB / 0.5762 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000468/0.5772, allocations: 243.5 kB / 0.7516 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.5772, allocations: 33.38 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.5772, allocations: 5.406 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.317e-05/0.5772, allocations: 2.906 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001786/0.5774, allocations: 28.77 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.5774, allocations: 3.281 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.5776, allocations: 29.95 kB / 0.7517 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.592e-05/0.5776, allocations: 5.625 kB / 0.7517 GB, free: 127.9 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: 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.0001078/0.5777, allocations: 130.7 kB / 0.7519 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.5777, allocations: 27.17 kB / 0.7519 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.5781, allocations: 138.5 kB / 0.752 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.5781, allocations: 4.266 kB / 0.752 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5781, allocations: 4.594 kB / 0.752 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.5781, allocations: 0.7031 kB / 0.752 GB, free: 127.7 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.5783, allocations: 201.9 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.5783, allocations: 0.6562 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.5784, allocations: 20.73 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.5784, allocations: 1.375 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.5784, allocations: 1.422 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.5784, allocations: 1.469 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5784, allocations: 5.469 kB / 0.7522 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004324/0.5788, allocations: 189.8 kB / 0.7524 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 4.11e-05/0.5789, allocations: 28.67 kB / 0.7524 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.5789, allocations: 3.797 kB / 0.7525 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.579, allocations: 11.33 kB / 0.7525 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.22e-05/0.5791, allocations: 17.23 kB / 0.7525 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.5791, allocations: 5.906 kB / 0.7525 GB, free: 127.5 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001775/0.5792, allocations: 190.1 kB / 0.7527 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.5792, allocations: 1.031 kB / 0.7527 GB, free: 127.4 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002913/0.5795, allocations: 44.83 kB / 0.7527 GB, free: 127.4 MB / 0.5762 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.0007141/0.5802, allocations: 0.7607 MB / 0.7535 GB, free: 126.8 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003754/0.5806, allocations: 184.2 kB / 0.7536 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.5806, allocations: 0.8125 kB / 0.7536 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.5808, allocations: 41.06 kB / 0.7537 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.5811, allocations: 59.3 kB / 0.7537 GB, free: 126.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002687/0.5838, allocations: 2.393 MB / 0.7561 GB, free: 125.2 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001191/0.5839, allocations: 133.7 kB / 0.7562 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 9.508e-05/0.584, allocations: 24.48 kB / 0.7562 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.5841, allocations: 74.67 kB / 0.7563 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of SimCode: time 6.61e-07/0.5841, allocations: 0 / 0.7563 GB, free: 125.1 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03563/0.6197, allocations: 5.981 MB / 0.7621 GB, free: 123.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/12.03, allocations: 14.05 kB / 0.7621 GB, free: 123.6 MB / 0.5762 GB " [Timeout remaining time 648] (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: 15.674060062039644]