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.001168/0.001168, 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.0009364/0.0009364, 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.9249/0.9249, allocations: 177.2 MB / 202.8 MB, free: 5.738 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.6638/0.6638, allocations: 116 MB / 375.2 MB, free: 4.168 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.583e-06/1.583e-06, allocations: 0 / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.382e-05/1.54e-05, allocations: 2.281 kB / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.3915/0.3915, allocations: 125 MB / 0.6754 GB, free: 7.004 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.003291/0.3948, allocations: 2.539 MB / 0.6778 GB, free: 6.793 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004932/0.3953, allocations: 22.62 kB / 0.6779 GB, free: 6.781 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0006779/0.396, allocations: 168.2 kB / 0.678 GB, free: 6.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.001317/0.3973, allocations: 424.9 kB / 0.6784 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001124/0.3984, allocations: 311.3 kB / 0.6787 GB, free: 6.641 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.001138/0.3996, allocations: 0.6086 MB / 0.6793 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001996/0.3998, allocations: 55.77 kB / 0.6794 GB, free: 6.613 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007282/0.4005, allocations: 371.3 kB / 0.6797 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.4008, allocations: 212.2 kB / 0.6799 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.863e-05/0.4008, allocations: 24.19 kB / 0.6799 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000979/0.4018, allocations: 427.7 kB / 0.6804 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.4019, allocations: 72.52 kB / 0.6804 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.4021, allocations: 119.2 kB / 0.6805 GB, free: 6.539 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.4031, allocations: 0.5939 MB / 0.6811 GB, free: 6.461 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.4031, allocations: 4 kB / 0.6811 GB, free: 6.457 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4031, allocations: 0 / 0.6811 GB, free: 6.457 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.4031, allocations: 0 / 0.6811 GB, free: 6.457 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.001175/0.4043, allocations: 0.7011 MB / 0.6818 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.703e-05/0.4043, allocations: 11.12 kB / 0.6818 GB, free: 5.98 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.733e-05/0.4044, allocations: 55.28 kB / 0.6819 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.4045, allocations: 53.34 kB / 0.6819 GB, free: 5.914 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005918/0.4051, allocations: 349.1 kB / 0.6823 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.644e-05/0.4051, allocations: 17.12 kB / 0.6823 GB, free: 5.719 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.208e-05/0.4051, allocations: 28.55 kB / 0.6823 GB, free: 5.715 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.4055, allocations: 277.6 kB / 0.6826 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.4056, allocations: 0 / 0.6826 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.004e-05/0.4056, allocations: 5.812 kB / 0.6826 GB, free: 5.641 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.4056, allocations: 12.12 kB / 0.6826 GB, free: 5.637 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003726/0.406, allocations: 228.5 kB / 0.6828 GB, free: 5.633 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.407, allocations: 0.8483 MB / 0.6836 GB, free: 5.18 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004062/0.4074, allocations: 208.5 kB / 0.6838 GB, free: 5.152 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.4076, allocations: 99.73 kB / 0.6839 GB, free: 5.141 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007675/0.4084, allocations: 466.8 kB / 0.6844 GB, free: 4.887 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000331/0.4087, allocations: 147.8 kB / 0.6845 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=23): time 3.477e-06/0.4087, allocations: 0 / 0.6845 GB, free: 4.84 MB / 0.5573 GB Notification: Performance of matching and sorting (n=23): time 0.0008936/0.4096, allocations: 384.2 kB / 0.6849 GB, free: 4.766 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.4096, allocations: 63.88 kB / 0.6849 GB, free: 4.699 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.41, allocations: 366.1 kB / 0.6853 GB, free: 4.59 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.41, allocations: 32.89 kB / 0.6853 GB, free: 4.559 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.4102, allocations: 209 kB / 0.6855 GB, free: 4.449 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.303e-05/0.4102, allocations: 87 kB / 0.6856 GB, free: 4.395 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.225e-05/0.4103, allocations: 49.95 kB / 0.6856 GB, free: 4.379 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.231e-05/0.4103, allocations: 347.5 kB / 0.686 GB, free: 4.066 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.4105, allocations: 113.2 kB / 0.6861 GB, free: 4.027 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001679/0.4106, allocations: 144.6 kB / 0.6862 GB, free: 3.961 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002914/0.4109, allocations: 232 kB / 0.6864 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.4109, allocations: 1.094 kB / 0.6864 GB, free: 3.883 MB / 0.5573 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005552/0.4115, allocations: 382.7 kB / 0.6868 GB, free: 3.742 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.4115, allocations: 38.98 kB / 0.6868 GB, free: 3.707 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.387e-06/0.4115, allocations: 5.031 kB / 0.6868 GB, free: 3.703 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002331/0.4118, allocations: 44.92 kB / 0.6869 GB, free: 3.691 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.4119, allocations: 45.33 kB / 0.6869 GB, free: 3.691 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008327/0.4128, allocations: 1.419 MB / 0.6883 GB, free: 2.445 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001961/0.413, allocations: 35.25 kB / 0.6884 GB, free: 2.43 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.413, allocations: 10.56 kB / 0.6884 GB, free: 2.43 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.0001605/0.4132, allocations: 147.3 kB / 0.6885 GB, free: 2.312 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.4132, allocations: 44.44 kB / 0.6885 GB, free: 2.289 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005432/0.4138, allocations: 335.1 kB / 0.6889 GB, free: 2.219 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.4138, allocations: 3.688 kB / 0.6889 GB, free: 2.219 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.4138, allocations: 0.9375 kB / 0.6889 GB, free: 2.219 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.4138, allocations: 3.938 kB / 0.6889 GB, free: 2.215 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009038/0.4147, allocations: 0.6894 MB / 0.6895 GB, free: 1.918 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.4147, allocations: 4.031 kB / 0.6895 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.4148, allocations: 38 kB / 0.6896 GB, free: 1.914 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.4149, allocations: 49.2 kB / 0.6896 GB, free: 1.898 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.4149, allocations: 5.969 kB / 0.6896 GB, free: 1.898 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000702/0.4156, allocations: 1.414 MB / 0.691 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4156, allocations: 5.094 kB / 0.691 GB, free: 16.67 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006665/0.4163, allocations: 497.1 kB / 0.6915 GB, free: 16.49 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.4164, allocations: 67.25 kB / 0.6916 GB, free: 16.46 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.129e-05/0.4165, allocations: 10 kB / 0.6916 GB, free: 16.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.4166, allocations: 16.19 kB / 0.6916 GB, free: 16.46 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.499e-05/0.4167, allocations: 26.38 kB / 0.6916 GB, free: 16.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.814e-05/0.4167, allocations: 9.312 kB / 0.6916 GB, free: 16.46 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0002387/0.4169, allocations: 267.4 kB / 0.6919 GB, free: 16.37 MB / 0.573 GB Notification: Performance of sort global known variables: time 6.1e-08/0.4169, allocations: 1 kB / 0.6919 GB, free: 16.37 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0004607/0.4174, allocations: 133.5 kB / 0.692 GB, free: 16.35 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.001212/0.4186, allocations: 1.15 MB / 0.6931 GB, free: 15.61 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0006731/0.4193, allocations: 422.9 kB / 0.6935 GB, free: 15.39 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.4193, allocations: 1.156 kB / 0.6935 GB, free: 15.39 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002872/0.4196, allocations: 223.4 kB / 0.6937 GB, free: 15.28 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000621/0.4202, allocations: 168.6 kB / 0.6939 GB, free: 15.25 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004281/0.4245, allocations: 3.444 MB / 0.6973 GB, free: 13.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.4246, allocations: 190 kB / 0.6975 GB, free: 13.42 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002719/0.4249, allocations: 62.17 kB / 0.6975 GB, free: 13.39 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001463/0.425, allocations: 138.4 kB / 0.6976 GB, free: 13.38 MB / 0.573 GB Notification: Performance of SimCode: time 1.623e-06/0.425, allocations: 1.375 kB / 0.6976 GB, free: 13.38 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03695/0.462, allocations: 12.93 MB / 0.7103 GB, free: 7.984 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.656/8.118, allocations: 15.34 kB / 0.7103 GB, free: 7.98 MB / 0.573 GB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_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_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv","/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 Time in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.81050161831081]