Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.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.001541/0.001541, allocations: 110.4 kB / 18.94 MB, free: 2.957 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.00178/0.00178, allocations: 215 kB / 22.25 MB, free: 5.133 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.476/1.476, allocations: 230.6 MB / 256 MB, free: 8.004 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.8039/0.8039, allocations: 100.3 MB / 412.7 MB, free: 3.684 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.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve",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.004041/0.004041, allocations: 83.81 kB / 0.5632 GB, free: 35.89 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1485, allocations: 74.46 MB / 0.636 GB, free: 7.699 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.5066/0.6551, allocations: 144.5 MB / 0.777 GB, free: 340 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.003906/0.659, allocations: 3.642 MB / 0.7806 GB, free: 64 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002502/0.6593, allocations: 20.09 kB / 0.7806 GB, free: 52 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006565/0.66, allocations: 176.4 kB / 0.7808 GB, free: 0 / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001016/0.661, allocations: 399.9 kB / 0.7812 GB, free: 15.89 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006618/0.6616, allocations: 303.2 kB / 0.7814 GB, free: 15.84 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0007923/0.6624, allocations: 0.5262 MB / 0.782 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001486/0.6626, allocations: 60.61 kB / 0.782 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004782/0.663, allocations: 268 kB / 0.7823 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004435/0.6635, allocations: 236.3 kB / 0.7825 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.104e-05/0.6635, allocations: 25 kB / 0.7825 GB, free: 15.68 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008125/0.6643, allocations: 0.5 MB / 0.783 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 8.711e-05/0.6644, allocations: 67.64 kB / 0.7831 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000375/0.6648, allocations: 179.5 kB / 0.7832 GB, free: 15.63 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0007393/0.6655, allocations: 0.5586 MB / 0.7838 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.6656, allocations: 1.219 kB / 0.7838 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.492e-06/0.6656, allocations: 1.094 kB / 0.7838 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 6.993e-06/0.6656, allocations: 0 / 0.7838 GB, free: 15.57 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001627/0.6672, allocations: 0.6816 MB / 0.7845 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.6672, allocations: 9.406 kB / 0.7845 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.565e-05/0.6673, allocations: 59.7 kB / 0.7845 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.6674, allocations: 49.38 kB / 0.7846 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000735/0.6681, allocations: 318.9 kB / 0.7849 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.205e-05/0.6681, allocations: 20.62 kB / 0.7849 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.884e-05/0.6682, allocations: 23.72 kB / 0.7849 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004696/0.6687, allocations: 266.6 kB / 0.7852 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.6687, allocations: 0 / 0.7852 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.6688, allocations: 9.469 kB / 0.7852 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.632e-05/0.6689, allocations: 3.969 kB / 0.7852 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005041/0.6694, allocations: 233.3 kB / 0.7854 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001517/0.6709, allocations: 1.056 MB / 0.7864 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.6715, allocations: 214.4 kB / 0.7866 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/0.6717, allocations: 102.5 kB / 0.7867 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000927/0.6727, allocations: 0.5078 MB / 0.7872 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003028/0.673, allocations: 151.4 kB / 0.7874 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.673, allocations: 3.938 kB / 0.7874 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001116/0.6741, allocations: 383.2 kB / 0.7878 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.6741, allocations: 58.62 kB / 0.7878 GB, free: 13.62 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003473/0.6745, allocations: 344.8 kB / 0.7881 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.6745, allocations: 32.06 kB / 0.7882 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.6746, allocations: 194.6 kB / 0.7884 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.6748, allocations: 80.06 kB / 0.7884 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.582e-05/0.6749, allocations: 52.88 kB / 0.7885 GB, free: 13.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.675, allocations: 347.6 kB / 0.7888 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001963/0.6752, allocations: 80.39 kB / 0.7889 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002059/0.6754, allocations: 107.5 kB / 0.789 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004055/0.6758, allocations: 222.8 kB / 0.7892 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.6758, allocations: 1.25 kB / 0.7892 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007923/0.6766, allocations: 342.7 kB / 0.7895 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/0.6767, allocations: 31.55 kB / 0.7896 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.6767, allocations: 2.25 kB / 0.7896 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001945/0.6769, allocations: 43.5 kB / 0.7896 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002006/0.6771, allocations: 49.72 kB / 0.7897 GB, free: 12.75 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00138/0.6784, allocations: 1.435 MB / 0.7911 GB, free: 11.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001963/0.6786, allocations: 28.48 kB / 0.7911 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.564e-05/0.6787, allocations: 12.22 kB / 0.7911 GB, free: 11.49 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000313/0.679, allocations: 146.7 kB / 0.7912 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.559e-05/0.679, allocations: 40.17 kB / 0.7913 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006828/0.6797, allocations: 326.9 kB / 0.7916 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.6797, allocations: 2.781 kB / 0.7916 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6797, allocations: 6.359 kB / 0.7916 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.6797, allocations: 1.875 kB / 0.7916 GB, free: 11.29 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.6809, allocations: 0.729 MB / 0.7923 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.6809, allocations: 3.938 kB / 0.7923 GB, free: 10.99 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001577/0.6811, allocations: 39.89 kB / 0.7923 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001225/0.6812, allocations: 43.8 kB / 0.7924 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.6812, allocations: 14.72 kB / 0.7924 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001278/0.6825, allocations: 1.423 MB / 0.7938 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.6825, allocations: 0 / 0.7938 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007991/0.6833, allocations: 0.5035 MB / 0.7943 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.6834, allocations: 44.89 kB / 0.7943 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.237e-05/0.6834, allocations: 8.453 kB / 0.7943 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002829/0.6837, allocations: 13.91 kB / 0.7943 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.74e-05/0.6838, allocations: 28.59 kB / 0.7944 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.832e-05/0.6838, allocations: 7.578 kB / 0.7944 GB, free: 9.504 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002182/0.684, allocations: 244.5 kB / 0.7946 GB, free: 9.422 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8.1e-08/0.684, allocations: 1.906 kB / 0.7946 GB, free: 9.422 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.000421/0.6844, allocations: 119.9 kB / 0.7947 GB, free: 9.406 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * 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 (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001458/0.6859, allocations: 1.16 MB / 0.7959 GB, free: 8.656 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0006649/0.6865, allocations: 379.6 kB / 0.7962 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/0.6866, allocations: 0 / 0.7962 GB, free: 8.473 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004913/0.687, allocations: 235.2 kB / 0.7965 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000583/0.6876, allocations: 116.8 kB / 0.7966 GB, free: 8.332 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/0.6922, allocations: 3.234 MB / 0.7997 GB, free: 6.734 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003753/0.6925, allocations: 0.7835 MB / 0.8005 GB, free: 6.035 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001664/0.6927, allocations: 55.92 kB / 0.8005 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.6929, allocations: 126.5 kB / 0.8007 GB, free: 6.008 MB / 0.5919 GB Notification: Performance of SimCode: time 7.62e-07/0.6929, allocations: 4 kB / 0.8007 GB, free: 6.004 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04601/0.7389, allocations: 10.63 MB / 0.811 GB, free: 2.051 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/13.02, allocations: 12.05 kB / 0.8111 GB, free: 2.047 MB / 0.5919 GB " [Timeout remaining time 647] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_dev_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.596245107939467]