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.002034/0.002034, allocations: 114.3 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.002767/0.002767, allocations: 216 kB / 22.26 MB, free: 5.113 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.803/1.803, allocations: 230.6 MB / 256 MB, free: 8.02 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.037/1.037, allocations: 94.56 MB / 407 MB, free: 9.227 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.002783/0.002783, allocations: 85.02 kB / 0.5549 GB, free: 38.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2159/0.2187, allocations: 73.06 MB / 0.6263 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.7842/1.003, allocations: 144.5 MB / 0.7674 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004609/1.008, allocations: 3.642 MB / 0.7709 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003778/1.008, allocations: 22.06 kB / 0.7709 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007312/1.009, allocations: 180.8 kB / 0.7711 GB, free: 2.078 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001076/1.01, allocations: 389.6 kB / 0.7715 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008155/1.011, allocations: 299.6 kB / 0.7718 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008503/1.011, allocations: 0.5275 MB / 0.7723 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/1.012, allocations: 63.38 kB / 0.7724 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006344/1.012, allocations: 272.3 kB / 0.7726 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006209/1.013, allocations: 235.8 kB / 0.7728 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 6.526e-05/1.013, allocations: 24.12 kB / 0.7729 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/1.014, allocations: 0.5023 MB / 0.7733 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000113/1.014, allocations: 67.78 kB / 0.7734 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004606/1.015, allocations: 174.2 kB / 0.7736 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001346/1.016, allocations: 0.5563 MB / 0.7741 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/1.016, allocations: 0 / 0.7741 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.064e-06/1.016, allocations: 0.5625 kB / 0.7741 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.62e-05/1.016, allocations: 0 / 0.7741 GB, free: 1.965 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.002194/1.018, allocations: 0.6847 MB / 0.7748 GB, free: 17.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.11e-05/1.019, allocations: 9.281 kB / 0.7748 GB, free: 17.5 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.937e-05/1.019, allocations: 58.34 kB / 0.7749 GB, free: 17.46 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.95e-05/1.019, allocations: 45.19 kB / 0.7749 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000746/1.019, allocations: 320 kB / 0.7752 GB, free: 17.25 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.554e-05/1.019, allocations: 20.56 kB / 0.7752 GB, free: 17.25 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.489e-05/1.02, allocations: 22.75 kB / 0.7752 GB, free: 17.25 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/1.02, allocations: 266.1 kB / 0.7755 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/1.02, allocations: 1.188 kB / 0.7755 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/1.02, allocations: 12.12 kB / 0.7755 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/1.02, allocations: 6.359 kB / 0.7755 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004988/1.021, allocations: 223.3 kB / 0.7757 GB, free: 17.18 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/1.022, allocations: 1.065 MB / 0.7768 GB, free: 16.51 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006676/1.023, allocations: 207.6 kB / 0.777 GB, free: 16.49 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002195/1.023, allocations: 99.27 kB / 0.7771 GB, free: 16.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009671/1.024, allocations: 0.5096 MB / 0.7776 GB, free: 16.22 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006798/1.025, allocations: 157.7 kB / 0.7777 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 2.094e-06/1.025, allocations: 0 / 0.7777 GB, free: 16.17 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001665/1.027, allocations: 385.2 kB / 0.7781 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.32e-05/1.027, allocations: 58.41 kB / 0.7781 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008684/1.027, allocations: 341.7 kB / 0.7785 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/1.028, allocations: 30.89 kB / 0.7785 GB, free: 15.9 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/1.028, allocations: 196.5 kB / 0.7787 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.966e-05/1.028, allocations: 87.48 kB / 0.7788 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/1.028, allocations: 52.36 kB / 0.7788 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0004786/1.028, allocations: 344.5 kB / 0.7791 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/1.029, allocations: 82.41 kB / 0.7792 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004322/1.029, allocations: 108.9 kB / 0.7793 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004949/1.03, allocations: 219.8 kB / 0.7795 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/1.03, allocations: 0 / 0.7795 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009657/1.031, allocations: 348 kB / 0.7799 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.61e-05/1.031, allocations: 40.14 kB / 0.7799 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/1.031, allocations: 0 / 0.7799 GB, free: 15.19 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/1.031, allocations: 39.77 kB / 0.7799 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/1.031, allocations: 43.75 kB / 0.78 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002109/1.033, allocations: 1.43 MB / 0.7814 GB, free: 13.94 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000213/1.034, allocations: 30.8 kB / 0.7814 GB, free: 13.93 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/1.034, allocations: 14.27 kB / 0.7814 GB, free: 13.93 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.0002296/1.034, allocations: 144.7 kB / 0.7816 GB, free: 13.81 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00018/1.034, allocations: 35.33 kB / 0.7816 GB, free: 13.79 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009911/1.035, allocations: 331.3 kB / 0.7819 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/1.035, allocations: 2.656 kB / 0.7819 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/1.035, allocations: 7.625 kB / 0.7819 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/1.035, allocations: 3 kB / 0.7819 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/1.037, allocations: 0.7226 MB / 0.7826 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/1.037, allocations: 5.031 kB / 0.7826 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/1.037, allocations: 40.3 kB / 0.7827 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002004/1.037, allocations: 44.91 kB / 0.7827 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/1.037, allocations: 10.88 kB / 0.7827 GB, free: 13.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001431/1.038, allocations: 1.423 MB / 0.7841 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/1.038, allocations: 3.938 kB / 0.7841 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/1.039, allocations: 0.4982 MB / 0.7846 GB, free: 12 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.588e-05/1.039, allocations: 44.97 kB / 0.7846 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.588e-05/1.04, allocations: 6.312 kB / 0.7847 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/1.04, allocations: 16.67 kB / 0.7847 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/1.04, allocations: 24.72 kB / 0.7847 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.567e-05/1.04, allocations: 9.812 kB / 0.7847 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002953/1.04, allocations: 246.2 kB / 0.7849 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.04, allocations: 1.438 kB / 0.7849 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006559/1.041, allocations: 126.4 kB / 0.7851 GB, free: 11.88 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.001657/1.043, allocations: 1.145 MB / 0.7862 GB, free: 11.14 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009226/1.044, allocations: 383.1 kB / 0.7865 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.044, allocations: 0 / 0.7865 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004276/1.044, allocations: 238.5 kB / 0.7868 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008206/1.045, allocations: 114.6 kB / 0.7869 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005641/1.05, allocations: 3.252 MB / 0.7901 GB, free: 9.234 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007121/1.051, allocations: 0.7811 MB / 0.7908 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002341/1.051, allocations: 63.69 kB / 0.7909 GB, free: 8.516 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001771/1.052, allocations: 121.3 kB / 0.791 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of SimCode: time 1.132e-06/1.052, allocations: 0 / 0.791 GB, free: 8.508 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05313/1.105, allocations: 10.63 MB / 0.8014 GB, free: 6.703 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.89, allocations: 5.031 kB / 0.8014 GB, free: 6.703 MB / 0.5919 GB " [Timeout remaining time 645] (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: 19.689706138000474]