Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001914/0.001914, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002987/0.002987, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.842/1.842, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 1.142/1.142, allocations: 94.62 MB / 407 MB, free: 8.871 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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_ThermofluidStream_FlowControl_Tests_CheckValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.FlowControl.Tests.CheckValve,fileNamePrefix="ThermofluidStream_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.002665/0.002665, allocations: 94.12 kB / 0.5549 GB, free: 38.38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2486/0.2513, allocations: 73.04 MB / 0.6263 GB, free: 188 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.2353/0.4866, allocations: 124 MB / 0.7474 GB, free: 3.684 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006325/0.4929, allocations: 3.303 MB / 0.7506 GB, free: 380 kB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006024/0.4935, allocations: 23.81 kB / 0.7506 GB, free: 356 kB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008852/0.4944, allocations: 146.9 kB / 0.7508 GB, free: 208 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.7229/1.217, allocations: 387.8 kB / 0.7511 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001465/1.219, allocations: 290.5 kB / 0.7514 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001514/1.22, allocations: 0.5264 MB / 0.7519 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003343/1.221, allocations: 62.61 kB / 0.752 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009743/1.222, allocations: 266.4 kB / 0.7522 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00052/1.222, allocations: 219.7 kB / 0.7524 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.653e-05/1.222, allocations: 24.28 kB / 0.7525 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001902/1.224, allocations: 427.2 kB / 0.7529 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001812/1.224, allocations: 71.81 kB / 0.7529 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000254/1.225, allocations: 141.7 kB / 0.7531 GB, free: 3.117 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001502/1.226, allocations: 0.5454 MB / 0.7536 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/1.226, allocations: 0 / 0.7536 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of FrontEnd: time 5.831e-06/1.226, allocations: 1.25 kB / 0.7536 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.512e-05/1.226, allocations: 1.656 kB / 0.7536 GB, free: 3.078 MB / 0.5762 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.002457/1.229, allocations: 0.6871 MB / 0.7543 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 7.308e-05/1.229, allocations: 10.28 kB / 0.7543 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.329e-05/1.229, allocations: 54.22 kB / 0.7543 GB, free: 18.58 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001541/1.229, allocations: 47.22 kB / 0.7544 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008437/1.23, allocations: 322.1 kB / 0.7547 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/1.23, allocations: 17.31 kB / 0.7547 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.825e-05/1.23, allocations: 29.36 kB / 0.7547 GB, free: 18.38 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006097/1.23, allocations: 266 kB / 0.755 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.518e-05/1.23, allocations: 0.8125 kB / 0.755 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.401e-05/1.231, allocations: 11.03 kB / 0.755 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/1.231, allocations: 4.281 kB / 0.755 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005773/1.231, allocations: 227.3 kB / 0.7552 GB, free: 18.32 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001828/1.233, allocations: 0.7565 MB / 0.756 GB, free: 17.97 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000733/1.234, allocations: 204.1 kB / 0.7562 GB, free: 17.95 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/1.234, allocations: 109.7 kB / 0.7563 GB, free: 17.94 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00106/1.235, allocations: 473.8 kB / 0.7567 GB, free: 17.68 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005017/1.236, allocations: 156.1 kB / 0.7569 GB, free: 17.63 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 1.523e-06/1.236, allocations: 0.7188 kB / 0.7569 GB, free: 17.63 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001588/1.237, allocations: 388.7 kB / 0.7572 GB, free: 17.57 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/1.237, allocations: 59.53 kB / 0.7573 GB, free: 17.5 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007271/1.238, allocations: 344.6 kB / 0.7576 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.497e-05/1.238, allocations: 32.39 kB / 0.7577 GB, free: 17.37 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/1.238, allocations: 199.9 kB / 0.7578 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.3e-05/1.238, allocations: 79.27 kB / 0.7579 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/1.238, allocations: 47.75 kB / 0.758 GB, free: 17.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002805/1.239, allocations: 348.5 kB / 0.7583 GB, free: 16.88 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/1.239, allocations: 112.1 kB / 0.7584 GB, free: 16.85 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/1.239, allocations: 133.6 kB / 0.7585 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/1.24, allocations: 217 kB / 0.7587 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/1.24, allocations: 1 kB / 0.7587 GB, free: 16.74 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008275/1.241, allocations: 388.2 kB / 0.7591 GB, free: 16.61 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/1.241, allocations: 33.31 kB / 0.7591 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/1.241, allocations: 1.203 kB / 0.7591 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003047/1.241, allocations: 42.19 kB / 0.7592 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002226/1.241, allocations: 45.56 kB / 0.7592 GB, free: 16.57 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001843/1.243, allocations: 1.423 MB / 0.7606 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002385/1.243, allocations: 31.61 kB / 0.7606 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/1.243, allocations: 13.59 kB / 0.7607 GB, free: 15.33 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.0002237/1.244, allocations: 139 kB / 0.7608 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.169e-05/1.244, allocations: 39.88 kB / 0.7608 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009242/1.245, allocations: 338.6 kB / 0.7612 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/1.245, allocations: 7.266 kB / 0.7612 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/1.245, allocations: 0 / 0.7612 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/1.245, allocations: 5.25 kB / 0.7612 GB, free: 15.14 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001385/1.246, allocations: 0.687 MB / 0.7618 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/1.246, allocations: 2.531 kB / 0.7618 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001796/1.246, allocations: 41.88 kB / 0.7619 GB, free: 14.85 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001981/1.246, allocations: 45.39 kB / 0.7619 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.242e-05/1.246, allocations: 12.23 kB / 0.7619 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001751/1.248, allocations: 1.419 MB / 0.7633 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.248, allocations: 0 / 0.7633 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/1.249, allocations: 0.5067 MB / 0.7638 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.998e-05/1.249, allocations: 42.55 kB / 0.7639 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.781e-05/1.249, allocations: 7.703 kB / 0.7639 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/1.25, allocations: 15.25 kB / 0.7639 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001406/1.25, allocations: 30.52 kB / 0.7639 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.071e-05/1.25, allocations: 11.16 kB / 0.7639 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004225/1.25, allocations: 249.9 kB / 0.7642 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.25, allocations: 0 / 0.7642 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007151/1.251, allocations: 122 kB / 0.7643 GB, free: 13.3 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.001892/1.253, allocations: 1.154 MB / 0.7654 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001257/1.254, allocations: 412 kB / 0.7658 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.254, allocations: 0 / 0.7658 GB, free: 12.38 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006717/1.255, allocations: 233.2 kB / 0.766 GB, free: 12.27 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001096/1.256, allocations: 108.1 kB / 0.7661 GB, free: 12.26 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008216/1.264, allocations: 3.36 MB / 0.7694 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/1.264, allocations: 182.3 kB / 0.7696 GB, free: 10.52 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003665/1.265, allocations: 57.19 kB / 0.7696 GB, free: 10.51 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002979/1.265, allocations: 125.5 kB / 0.7697 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of SimCode: time 2.766e-06/1.265, allocations: 1.031 kB / 0.7697 GB, free: 10.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06075/1.326, allocations: 11.43 MB / 0.7809 GB, free: 8.98 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/15.54, allocations: 6.344 kB / 0.7809 GB, free: 8.98 MB / 0.5919 GB " [Timeout remaining time 644] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 20.730571632739156]