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.0008125/0.0008125, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.0009305/0.0009305, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.8526/0.8526, allocations: 177.2 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.6318/0.6318, allocations: 116 MB / 375.2 MB, free: 4.184 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 1.654e-06/1.654e-06, allocations: 0 / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.944e-05/2.109e-05, allocations: 8.953 kB / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3781/0.3781, allocations: 125 MB / 0.6754 GB, free: 7.035 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.00271/0.3808, allocations: 2.537 MB / 0.6778 GB, free: 6.824 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.3811, allocations: 25.22 kB / 0.6779 GB, free: 6.809 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0005544/0.3817, allocations: 164.6 kB / 0.678 GB, free: 6.758 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0009614/0.3826, allocations: 433.1 kB / 0.6784 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008058/0.3834, allocations: 301.8 kB / 0.6787 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0008609/0.3843, allocations: 0.6092 MB / 0.6793 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.3845, allocations: 60.61 kB / 0.6794 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000724/0.3852, allocations: 371.7 kB / 0.6797 GB, free: 6.629 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003112/0.3855, allocations: 207.9 kB / 0.6799 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.946e-05/0.3856, allocations: 24.03 kB / 0.6799 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008101/0.3864, allocations: 438.5 kB / 0.6804 GB, free: 6.598 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 8.541e-05/0.3865, allocations: 67.95 kB / 0.6804 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.3866, allocations: 121 kB / 0.6805 GB, free: 6.562 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0008704/0.3875, allocations: 0.5934 MB / 0.6811 GB, free: 6.484 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.3875, allocations: 1.188 kB / 0.6811 GB, free: 6.484 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.673e-06/0.3875, allocations: 0 / 0.6811 GB, free: 6.484 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.233e-05/0.3875, allocations: 0 / 0.6811 GB, free: 6.484 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001103/0.3886, allocations: 0.6973 MB / 0.6818 GB, free: 6.012 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3886, allocations: 15.12 kB / 0.6818 GB, free: 6.008 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.046e-05/0.3887, allocations: 59 kB / 0.6819 GB, free: 5.965 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3888, allocations: 48.03 kB / 0.6819 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.3893, allocations: 351.4 kB / 0.6823 GB, free: 5.746 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.275e-05/0.3893, allocations: 16.81 kB / 0.6823 GB, free: 5.746 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.446e-05/0.3893, allocations: 26.14 kB / 0.6823 GB, free: 5.742 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.3897, allocations: 275.2 kB / 0.6826 GB, free: 5.672 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.3897, allocations: 0 / 0.6826 GB, free: 5.672 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.3897, allocations: 10.19 kB / 0.6826 GB, free: 5.668 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.685e-06/0.3897, allocations: 5.188 kB / 0.6826 GB, free: 5.668 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003143/0.39, allocations: 230 kB / 0.6828 GB, free: 5.664 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009485/0.391, allocations: 0.8501 MB / 0.6836 GB, free: 5.215 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000338/0.3913, allocations: 212 kB / 0.6838 GB, free: 5.18 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.3914, allocations: 100 kB / 0.6839 GB, free: 5.168 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005217/0.392, allocations: 457.7 kB / 0.6844 GB, free: 4.918 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002511/0.3922, allocations: 155.4 kB / 0.6845 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=23): time 1.883e-06/0.3922, allocations: 0 / 0.6845 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of matching and sorting (n=23): time 0.0007777/0.393, allocations: 386.8 kB / 0.6849 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.115e-05/0.393, allocations: 63.16 kB / 0.6849 GB, free: 4.727 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.3933, allocations: 366.2 kB / 0.6853 GB, free: 4.617 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.664e-05/0.3933, allocations: 31.3 kB / 0.6853 GB, free: 4.586 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.3935, allocations: 213.5 kB / 0.6855 GB, free: 4.477 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.001e-05/0.3935, allocations: 87.78 kB / 0.6856 GB, free: 4.418 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.3936, allocations: 49.67 kB / 0.6856 GB, free: 4.402 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 6.423e-05/0.3936, allocations: 348.6 kB / 0.686 GB, free: 4.09 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3938, allocations: 108.2 kB / 0.6861 GB, free: 4.055 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.3939, allocations: 141.3 kB / 0.6862 GB, free: 3.992 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.3942, allocations: 235.9 kB / 0.6864 GB, free: 3.91 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.3942, allocations: 0 / 0.6864 GB, free: 3.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004404/0.3946, allocations: 383.5 kB / 0.6868 GB, free: 3.77 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.3946, allocations: 42.58 kB / 0.6869 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3946, allocations: 0 / 0.6869 GB, free: 3.73 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001722/0.3948, allocations: 47.14 kB / 0.6869 GB, free: 3.719 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.3949, allocations: 50.02 kB / 0.6869 GB, free: 3.715 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006886/0.3956, allocations: 1.409 MB / 0.6883 GB, free: 2.477 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001252/0.3958, allocations: 33.34 kB / 0.6884 GB, free: 2.461 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.996e-05/0.3958, allocations: 11.89 kB / 0.6884 GB, free: 2.461 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 24 * 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.0001167/0.3959, allocations: 152.4 kB / 0.6885 GB, free: 2.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.299e-05/0.396, allocations: 43.34 kB / 0.6885 GB, free: 2.316 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004813/0.3964, allocations: 328 kB / 0.6889 GB, free: 2.254 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.3964, allocations: 6.359 kB / 0.6889 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.3964, allocations: 1.031 kB / 0.6889 GB, free: 2.25 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.3964, allocations: 3.938 kB / 0.6889 GB, free: 2.246 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007342/0.3972, allocations: 0.6887 MB / 0.6895 GB, free: 1.949 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.3972, allocations: 0 / 0.6895 GB, free: 1.949 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.448e-05/0.3973, allocations: 43 kB / 0.6896 GB, free: 1.945 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.3974, allocations: 48.91 kB / 0.6896 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.3974, allocations: 5.812 kB / 0.6896 GB, free: 1.93 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000594/0.398, allocations: 1.412 MB / 0.691 GB, free: 16.7 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.398, allocations: 0 / 0.691 GB, free: 16.7 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005508/0.3985, allocations: 0.4919 MB / 0.6915 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.139e-05/0.3986, allocations: 69.14 kB / 0.6916 GB, free: 16.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.3986, allocations: 12.11 kB / 0.6916 GB, free: 16.5 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.3987, allocations: 17.94 kB / 0.6916 GB, free: 16.49 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.629e-05/0.3988, allocations: 24.67 kB / 0.6916 GB, free: 16.49 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.545e-05/0.3988, allocations: 12.09 kB / 0.6916 GB, free: 16.49 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000203/0.399, allocations: 258.4 kB / 0.6919 GB, free: 16.41 MB / 0.573 GB Notification: Performance of sort global known variables: time 7e-08/0.399, allocations: 0 / 0.6919 GB, free: 16.41 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0004123/0.3994, allocations: 136.2 kB / 0.692 GB, free: 16.39 MB / 0.573 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.0009721/0.4004, allocations: 1.164 MB / 0.6931 GB, free: 15.64 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0005457/0.401, allocations: 410.4 kB / 0.6935 GB, free: 15.42 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.401, allocations: 3.438 kB / 0.6935 GB, free: 15.42 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.4012, allocations: 230.2 kB / 0.6938 GB, free: 15.3 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005303/0.4017, allocations: 152 kB / 0.6939 GB, free: 15.29 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003467/0.4052, allocations: 3.457 MB / 0.6973 GB, free: 13.53 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.4053, allocations: 188.7 kB / 0.6975 GB, free: 13.45 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002068/0.4055, allocations: 62.2 kB / 0.6975 GB, free: 13.42 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.4057, allocations: 134.3 kB / 0.6976 GB, free: 13.41 MB / 0.573 GB Notification: Performance of SimCode: time 1.273e-06/0.4057, allocations: 0 / 0.6976 GB, free: 13.41 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.4321, allocations: 12.93 MB / 0.7103 GB, free: 8.012 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.723/7.155, allocations: 9.219 kB / 0.7103 GB, free: 8.008 MB / 0.573 GB " [Timeout remaining time 653] (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/jenkins/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: 9.63099033292383]