Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.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.002047/0.002047, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001955/0.001955, allocations: 217 kB / 22.25 MB, free: 5.082 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.4/1.4, allocations: 230.6 MB / 256 MB, free: 8.031 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8189/0.8189, allocations: 100.3 MB / 412.7 MB, free: 3.73 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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.SourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_SourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.SourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_SourceSink",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.002451/0.002451, allocations: 88.3 kB / 0.5633 GB, free: 35.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1312/0.1336, allocations: 74.46 MB / 0.636 GB, free: 7.711 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.4755/0.6091, allocations: 141.1 MB / 0.7738 GB, free: 0.4961 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002948/0.6121, allocations: 3.378 MB / 0.7771 GB, free: 308 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003302/0.6124, allocations: 28.47 kB / 0.7771 GB, free: 292 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005571/0.613, allocations: 136.4 kB / 0.7772 GB, free: 240 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004574/0.6134, allocations: 204.3 kB / 0.7774 GB, free: 176 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004671/0.6139, allocations: 214.8 kB / 0.7776 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.6143, allocations: 388.3 kB / 0.778 GB, free: 64 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.6144, allocations: 42.64 kB / 0.778 GB, free: 60 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004829/0.6149, allocations: 232.9 kB / 0.7783 GB, free: 32 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.6151, allocations: 123.3 kB / 0.7784 GB, free: 28 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.429e-05/0.6151, allocations: 13.84 kB / 0.7784 GB, free: 24 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004767/0.6156, allocations: 268.5 kB / 0.7787 GB, free: 4 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.6157, allocations: 37.91 kB / 0.7787 GB, free: 4 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.6158, allocations: 115.8 kB / 0.7788 GB, free: 4 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0006425/0.6165, allocations: 344.2 kB / 0.7791 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.6165, allocations: 0 / 0.7791 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.503e-06/0.6165, allocations: 0.5312 kB / 0.7791 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.6165, allocations: 0 / 0.7791 GB, free: 15.96 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0008487/0.6173, allocations: 0.509 MB / 0.7796 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.6174, allocations: 9.531 kB / 0.7796 GB, free: 15.58 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.126e-05/0.6174, allocations: 43.17 kB / 0.7797 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.853e-05/0.6175, allocations: 37.75 kB / 0.7797 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006604/0.6181, allocations: 301.2 kB / 0.78 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.963e-05/0.6182, allocations: 13.14 kB / 0.78 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.067e-05/0.6182, allocations: 15.73 kB / 0.78 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.6185, allocations: 156.4 kB / 0.7802 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.6185, allocations: 0.5312 kB / 0.7802 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.419e-05/0.6185, allocations: 4.844 kB / 0.7802 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.6185, allocations: 3.25 kB / 0.7802 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.6187, allocations: 75.84 kB / 0.7803 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009361/0.6196, allocations: 0.7023 MB / 0.7809 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001599/0.6198, allocations: 81.75 kB / 0.781 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.934e-05/0.6198, allocations: 34.62 kB / 0.7811 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 9.309e-05/0.6199, allocations: 7.922 kB / 0.7811 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.62, allocations: 44.53 kB / 0.7811 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.62, allocations: 0 / 0.7811 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=8): time 0.0006343/0.6206, allocations: 182.6 kB / 0.7813 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.6207, allocations: 81.7 kB / 0.7814 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003329/0.621, allocations: 333.7 kB / 0.7817 GB, free: 14.34 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.621, allocations: 30.14 kB / 0.7817 GB, free: 14.31 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.741e-05/0.6211, allocations: 164.5 kB / 0.7819 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.263e-05/0.6212, allocations: 33.83 kB / 0.7819 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.6212, allocations: 26.94 kB / 0.7819 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001475/0.6213, allocations: 343.5 kB / 0.7822 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.95e-05/0.6214, allocations: 19.31 kB / 0.7823 GB, free: 13.87 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.976e-05/0.6214, allocations: 45.83 kB / 0.7823 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.6215, allocations: 80.2 kB / 0.7824 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.6215, allocations: 0 / 0.7824 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002517/0.6218, allocations: 152.3 kB / 0.7825 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.6218, allocations: 11.75 kB / 0.7825 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.6218, allocations: 2.484 kB / 0.7825 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/0.622, allocations: 46.98 kB / 0.7826 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.287e-05/0.6221, allocations: 14.78 kB / 0.7826 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001919/0.624, allocations: 2.563 MB / 0.7851 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.048e-05/0.6241, allocations: 12.11 kB / 0.7851 GB, free: 11.22 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.345e-05/0.6241, allocations: 13.06 kB / 0.7851 GB, free: 11.22 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000121/0.6242, allocations: 126.2 kB / 0.7853 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.872e-05/0.6243, allocations: 39 kB / 0.7853 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.6246, allocations: 153.5 kB / 0.7854 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.6246, allocations: 1.219 kB / 0.7854 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.6246, allocations: 1.219 kB / 0.7854 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.6246, allocations: 2.156 kB / 0.7854 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005981/0.6252, allocations: 0.5019 MB / 0.7859 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6252, allocations: 1.125 kB / 0.7859 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.151e-05/0.6252, allocations: 12.25 kB / 0.7859 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000119/0.6253, allocations: 35.78 kB / 0.786 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.6253, allocations: 4.516 kB / 0.786 GB, free: 10.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.6272, allocations: 2.567 MB / 0.7885 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6272, allocations: 1.438 kB / 0.7885 GB, free: 8.125 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.6276, allocations: 339.4 kB / 0.7888 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.768e-05/0.6277, allocations: 33.42 kB / 0.7888 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3e-05/0.6277, allocations: 3.562 kB / 0.7888 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.6278, allocations: 4.438 kB / 0.7889 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.755e-05/0.6279, allocations: 15.75 kB / 0.7889 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-06/0.6279, allocations: 2.281 kB / 0.7889 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003141/0.6282, allocations: 243.5 kB / 0.7891 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6282, allocations: 0.5 kB / 0.7891 GB, free: 7.754 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004046/0.6286, allocations: 49.34 kB / 0.7892 GB, free: 7.746 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008818/0.6295, allocations: 0.9232 MB / 0.7901 GB, free: 6.934 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004763/0.6299, allocations: 287 kB / 0.7903 GB, free: 6.707 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.6299, allocations: 0 / 0.7903 GB, free: 6.707 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0002798/0.6302, allocations: 253.2 kB / 0.7906 GB, free: 6.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006322/0.6309, allocations: 64.06 kB / 0.7906 GB, free: 6.473 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003172/0.634, allocations: 2.692 MB / 0.7933 GB, free: 4.805 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003818/0.6344, allocations: 0.7551 MB / 0.794 GB, free: 4.105 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.393e-05/0.6345, allocations: 34.44 kB / 0.794 GB, free: 4.098 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.263e-05/0.6346, allocations: 88.05 kB / 0.7941 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of SimCode: time 7.61e-07/0.6346, allocations: 0 / 0.7941 GB, free: 4.09 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04234/0.6769, allocations: 6.984 MB / 0.8009 GB, free: 3.223 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.75, allocations: 2.656 kB / 0.8009 GB, free: 3.223 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_SourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv failed! Error: Could not read variable source1.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv. Warning: Get data of variable source1.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.SourceSink_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.327801247000025]