Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001716/0.001716, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00218/0.00218, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.406/1.406, allocations: 230.6 MB / 256 MB, free: 7.961 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.743/0.743, allocations: 100.3 MB / 412.7 MB, free: 3.645 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.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,fileNamePrefix="ThermofluidStream_dev_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.002503/0.002503, allocations: 90.39 kB / 0.5633 GB, free: 35.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1162, allocations: 74.46 MB / 0.636 GB, free: 7.652 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.4482/0.5644, allocations: 141.1 MB / 0.7737 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.5663, allocations: 2.149 MB / 0.7758 GB, free: 384 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001954/0.5665, allocations: 18.69 kB / 0.7758 GB, free: 372 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004161/0.5669, allocations: 122 kB / 0.776 GB, free: 332 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003169/0.5672, allocations: 157.6 kB / 0.7761 GB, free: 276 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003463/0.5676, allocations: 177.9 kB / 0.7763 GB, free: 244 kB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003225/0.5679, allocations: 326.7 kB / 0.7766 GB, free: 180 kB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.568, allocations: 48.59 kB / 0.7766 GB, free: 172 kB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004322/0.5685, allocations: 225.2 kB / 0.7768 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001705/0.5686, allocations: 126.2 kB / 0.777 GB, free: 136 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.479e-05/0.5687, allocations: 17.42 kB / 0.777 GB, free: 132 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003513/0.569, allocations: 216.1 kB / 0.7772 GB, free: 116 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.647e-05/0.5691, allocations: 35.94 kB / 0.7772 GB, free: 116 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.5692, allocations: 104.1 kB / 0.7773 GB, free: 116 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004145/0.5696, allocations: 303.1 kB / 0.7776 GB, free: 88 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.5696, allocations: 0 / 0.7776 GB, free: 88 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5696, allocations: 5.094 kB / 0.7776 GB, free: 84 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.144e-05/0.5696, allocations: 0 / 0.7776 GB, free: 84 kB / 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.0008809/0.5705, allocations: 0.5031 MB / 0.7781 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.5705, allocations: 11.66 kB / 0.7781 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.7e-05/0.5706, allocations: 43.41 kB / 0.7782 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.339e-05/0.5706, allocations: 33.91 kB / 0.7782 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004792/0.5711, allocations: 263.7 kB / 0.7784 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/0.5711, allocations: 8.75 kB / 0.7785 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.5712, allocations: 13.19 kB / 0.7785 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003787/0.5715, allocations: 171.1 kB / 0.7786 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.5716, allocations: 0.5 kB / 0.7786 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.73e-05/0.5716, allocations: 4.938 kB / 0.7786 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.5716, allocations: 2.781 kB / 0.7786 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003153/0.5719, allocations: 99.14 kB / 0.7787 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.573, allocations: 0.8478 MB / 0.7796 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003198/0.5733, allocations: 85.42 kB / 0.7796 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.5734, allocations: 41.7 kB / 0.7797 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.502e-05/0.5735, allocations: 10.84 kB / 0.7797 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.5737, allocations: 88.48 kB / 0.7798 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/0.5737, allocations: 4 kB / 0.7798 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0005107/0.5742, allocations: 155.5 kB / 0.7799 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.5743, allocations: 53.03 kB / 0.78 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003133/0.5746, allocations: 274.7 kB / 0.7802 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.5746, allocations: 26.89 kB / 0.7803 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.5747, allocations: 174.4 kB / 0.7804 GB, free: 14.26 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.5747, allocations: 32.94 kB / 0.7805 GB, free: 14.24 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.344e-05/0.5748, allocations: 33.2 kB / 0.7805 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.575, allocations: 341.2 kB / 0.7808 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.5751, allocations: 36.53 kB / 0.7809 GB, free: 13.91 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.5753, allocations: 82.7 kB / 0.7809 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.5756, allocations: 147.2 kB / 0.7811 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.5756, allocations: 5.625 kB / 0.7811 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004033/0.576, allocations: 212.7 kB / 0.7813 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.678e-05/0.5761, allocations: 36.23 kB / 0.7813 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.5761, allocations: 1.188 kB / 0.7813 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.5761, allocations: 6.156 kB / 0.7813 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.5762, allocations: 36.86 kB / 0.7814 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.5762, allocations: 2.406 kB / 0.7814 GB, free: 13.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001496/0.5764, allocations: 24.11 kB / 0.7814 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.5764, allocations: 10.42 kB / 0.7814 GB, free: 13.64 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.0001267/0.5765, allocations: 131.3 kB / 0.7815 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.5766, allocations: 25.97 kB / 0.7815 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.5769, allocations: 136.9 kB / 0.7817 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.5769, allocations: 9.5 kB / 0.7817 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5769, allocations: 1.203 kB / 0.7817 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5769, allocations: 0 / 0.7817 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001943/0.5771, allocations: 212.5 kB / 0.7819 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.5771, allocations: 2.016 kB / 0.7819 GB, free: 13.31 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001077/0.5772, allocations: 19.23 kB / 0.7819 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.5772, allocations: 0 / 0.7819 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.593e-05/0.5772, allocations: 6.844 kB / 0.7819 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.5772, allocations: 1.062 kB / 0.7819 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.5772, allocations: 3.938 kB / 0.7819 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004374/0.5777, allocations: 188.4 kB / 0.7821 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.5777, allocations: 32.12 kB / 0.7821 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.5777, allocations: 6.609 kB / 0.7821 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.5778, allocations: 9.547 kB / 0.7821 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.761e-05/0.5779, allocations: 11.83 kB / 0.7822 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-06/0.5779, allocations: 6.219 kB / 0.7822 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001642/0.5781, allocations: 192 kB / 0.7823 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.5781, allocations: 0 / 0.7823 GB, free: 13.11 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002619/0.5783, allocations: 38.47 kB / 0.7824 GB, free: 13.11 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.0008231/0.5792, allocations: 0.7672 MB / 0.7831 GB, free: 12.48 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00037/0.5795, allocations: 159.8 kB / 0.7833 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5795, allocations: 4.062 kB / 0.7833 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.5797, allocations: 45.61 kB / 0.7833 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.58, allocations: 39.08 kB / 0.7834 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.5831, allocations: 2.3 MB / 0.7856 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003694/0.5835, allocations: 0.7416 MB / 0.7863 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 9.969e-05/0.5836, allocations: 18.83 kB / 0.7864 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.825e-05/0.5837, allocations: 75.72 kB / 0.7864 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of SimCode: time 4.91e-07/0.5837, allocations: 0 / 0.7864 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03317/0.6169, allocations: 5.458 MB / 0.7918 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.06/11.68, allocations: 9.156 kB / 0.7918 GB, free: 9.508 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Boundaries_Tests_TerminalSourceSink.fmu > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.20105956399857]