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.00153/0.00153, allocations: 104.7 kB / 16.45 MB, free: 6.449 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.001605/0.001605, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.499/1.499, allocations: 230.6 MB / 252.8 MB, free: 8.996 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.844/0.844, allocations: 100.3 MB / 409.1 MB, free: 4.809 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.002535/0.002535, allocations: 81.69 kB / 0.5582 GB, free: 36.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1606, allocations: 74.43 MB / 0.6309 GB, free: 9.199 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.5552/0.7159, allocations: 141 MB / 0.7685 GB, free: 0.5508 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002118/0.718, allocations: 2.126 MB / 0.7706 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002389/0.7182, allocations: 19.75 kB / 0.7706 GB, free: 0.5117 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0004619/0.7187, allocations: 121.5 kB / 0.7707 GB, free: 0.5078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0003716/0.7191, allocations: 155.5 kB / 0.7709 GB, free: 0.5 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003657/0.7194, allocations: 170.1 kB / 0.771 GB, free: 0.4961 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0003334/0.7198, allocations: 322.3 kB / 0.7714 GB, free: 0.4961 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.7199, allocations: 43.94 kB / 0.7714 GB, free: 0.4922 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004484/0.7204, allocations: 224.8 kB / 0.7716 GB, free: 496 kB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.7205, allocations: 126.1 kB / 0.7717 GB, free: 496 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.7206, allocations: 12.47 kB / 0.7717 GB, free: 496 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003822/0.721, allocations: 214.8 kB / 0.7719 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.803e-05/0.721, allocations: 37.17 kB / 0.772 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.7211, allocations: 107.2 kB / 0.7721 GB, free: 492 kB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004915/0.7216, allocations: 305.1 kB / 0.7724 GB, free: 464 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7216, allocations: 0 / 0.7724 GB, free: 464 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7216, allocations: 0 / 0.7724 GB, free: 464 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 6.452e-06/0.7216, allocations: 0 / 0.7724 GB, free: 464 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.000993/0.7226, allocations: 0.5815 MB / 0.7729 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.7227, allocations: 9.625 kB / 0.773 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.619e-05/0.7227, allocations: 47.89 kB / 0.773 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.169e-05/0.7228, allocations: 30.72 kB / 0.773 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005491/0.7234, allocations: 321.9 kB / 0.7733 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.7234, allocations: 16.69 kB / 0.7733 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.24e-05/0.7234, allocations: 14.72 kB / 0.7734 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000406/0.7238, allocations: 166.4 kB / 0.7735 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.7238, allocations: 1.625 kB / 0.7735 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.7239, allocations: 4.875 kB / 0.7735 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.7239, allocations: 3.094 kB / 0.7735 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.7242, allocations: 109.2 kB / 0.7736 GB, free: 15.6 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.7254, allocations: 0.905 MB / 0.7745 GB, free: 14.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.7257, allocations: 85.47 kB / 0.7746 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.7259, allocations: 38.89 kB / 0.7746 GB, free: 14.83 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001094/0.726, allocations: 79.45 kB / 0.7747 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002631/0.7263, allocations: 95.58 kB / 0.7748 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.764e-06/0.7263, allocations: 0 / 0.7748 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0005854/0.7268, allocations: 156 kB / 0.775 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.393e-05/0.7269, allocations: 62.02 kB / 0.775 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000375/0.7273, allocations: 269.9 kB / 0.7753 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.7273, allocations: 34.3 kB / 0.7753 GB, free: 14.43 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.7274, allocations: 167.9 kB / 0.7755 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.7275, allocations: 28.95 kB / 0.7755 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-05/0.7275, allocations: 39.98 kB / 0.7755 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001606/0.7277, allocations: 333.9 kB / 0.7758 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.7279, allocations: 42.62 kB / 0.7759 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.7281, allocations: 91.38 kB / 0.776 GB, free: 13.92 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/0.7285, allocations: 147.8 kB / 0.7761 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.7285, allocations: 0.5312 kB / 0.7761 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005248/0.729, allocations: 212.9 kB / 0.7763 GB, free: 13.77 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.668e-05/0.729, allocations: 32.17 kB / 0.7763 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.7291, allocations: 5.953 kB / 0.7764 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.7291, allocations: 6.344 kB / 0.7764 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.7293, allocations: 34.11 kB / 0.7764 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.7293, allocations: 2.125 kB / 0.7764 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001638/0.7295, allocations: 26.03 kB / 0.7764 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.7295, allocations: 4.969 kB / 0.7764 GB, free: 13.72 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.0001443/0.7296, allocations: 135.8 kB / 0.7766 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.678e-05/0.7297, allocations: 26.38 kB / 0.7766 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004114/0.7301, allocations: 138 kB / 0.7767 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.7301, allocations: 1.031 kB / 0.7767 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.7301, allocations: 0.5625 kB / 0.7767 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.7301, allocations: 2.969 kB / 0.7767 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002744/0.7304, allocations: 239.2 kB / 0.7769 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.7304, allocations: 1.094 kB / 0.7769 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.7305, allocations: 16.41 kB / 0.777 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.7305, allocations: 1.219 kB / 0.777 GB, free: 13.36 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.7305, allocations: 11.41 kB / 0.777 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.7305, allocations: 6.344 kB / 0.777 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7305, allocations: 0 / 0.777 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004664/0.731, allocations: 184.9 kB / 0.7772 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 7.574e-05/0.7311, allocations: 98.55 kB / 0.7772 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.094e-05/0.7311, allocations: 5.375 kB / 0.7773 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.7312, allocations: 17.52 kB / 0.7773 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.7313, allocations: 15.17 kB / 0.7773 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.386e-06/0.7313, allocations: 2 kB / 0.7773 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001797/0.7315, allocations: 191.1 kB / 0.7775 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.7315, allocations: 0 / 0.7775 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002744/0.7317, allocations: 44.47 kB / 0.7775 GB, free: 13.07 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.0008985/0.7326, allocations: 0.7668 MB / 0.7783 GB, free: 12.44 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004114/0.7331, allocations: 164.3 kB / 0.7784 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.7331, allocations: 1.094 kB / 0.7784 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.7332, allocations: 39.41 kB / 0.7785 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.7336, allocations: 51.2 kB / 0.7785 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.737, allocations: 2.284 MB / 0.7807 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/0.7374, allocations: 0.742 MB / 0.7815 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001028/0.7375, allocations: 21.53 kB / 0.7815 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001129/0.7377, allocations: 77.16 kB / 0.7816 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of SimCode: time 3.21e-07/0.7377, allocations: 4 kB / 0.7816 GB, free: 10.24 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.7688, allocations: 5.289 MB / 0.7867 GB, free: 9.543 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.313/9.082, allocations: 5.812 kB / 0.7867 GB, free: 9.543 MB / 0.5919 GB " [Timeout remaining time 651] (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: 12.91444051405415]