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.002178/0.002178, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00293/0.00293, allocations: 215.3 kB / 22.25 MB, free: 5.125 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.611/1.611, allocations: 230.6 MB / 256 MB, free: 7.992 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 0.8827/0.8827, allocations: 94.57 MB / 407 MB, free: 9.207 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.0025/0.0025, allocations: 82.92 kB / 0.5549 GB, free: 38.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1913/0.1938, allocations: 73.06 MB / 0.6263 GB, free: 0.5078 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.8006/0.9944, allocations: 144.5 MB / 0.7674 GB, free: 2.195 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004845/0.9992, allocations: 3.644 MB / 0.7709 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006821/0.9999, allocations: 24.44 kB / 0.7709 GB, free: 2.117 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0008657/1.001, allocations: 173.9 kB / 0.7711 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001162/1.002, allocations: 397.2 kB / 0.7715 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009258/1.003, allocations: 302.5 kB / 0.7718 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0007316/1.004, allocations: 0.5232 MB / 0.7723 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/1.004, allocations: 65.48 kB / 0.7724 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007724/1.005, allocations: 266.9 kB / 0.7726 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004544/1.005, allocations: 237.4 kB / 0.7728 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.548e-05/1.005, allocations: 23.84 kB / 0.7729 GB, free: 2.059 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/1.007, allocations: 0.5038 MB / 0.7733 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001538/1.007, allocations: 64.61 kB / 0.7734 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003797/1.007, allocations: 180 kB / 0.7736 GB, free: 2.043 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00147/1.009, allocations: 0.5525 MB / 0.7741 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/1.009, allocations: 0.5312 kB / 0.7741 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.246e-06/1.009, allocations: 0 / 0.7741 GB, free: 1.996 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.265e-05/1.009, allocations: 0.5312 kB / 0.7741 GB, free: 1.996 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.002015/1.011, allocations: 0.6807 MB / 0.7748 GB, free: 17.53 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.963e-05/1.011, allocations: 10.22 kB / 0.7748 GB, free: 17.53 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.113e-05/1.011, allocations: 60.09 kB / 0.7749 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/1.011, allocations: 44.91 kB / 0.7749 GB, free: 17.47 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008661/1.012, allocations: 321.8 kB / 0.7752 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.578e-05/1.012, allocations: 20.03 kB / 0.7752 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.27e-05/1.012, allocations: 21.72 kB / 0.7752 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/1.013, allocations: 267.8 kB / 0.7755 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/1.013, allocations: 1.562 kB / 0.7755 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.89e-05/1.013, allocations: 9.328 kB / 0.7755 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/1.013, allocations: 8.609 kB / 0.7755 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004935/1.013, allocations: 223.4 kB / 0.7757 GB, free: 17.22 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001703/1.015, allocations: 1.063 MB / 0.7768 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005477/1.015, allocations: 206.4 kB / 0.777 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002474/1.016, allocations: 102.7 kB / 0.7771 GB, free: 16.51 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000965/1.017, allocations: 0.5061 MB / 0.7776 GB, free: 16.26 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004687/1.017, allocations: 157.9 kB / 0.7777 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 4.198e-06/1.017, allocations: 3.984 kB / 0.7777 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.001266/1.018, allocations: 383.8 kB / 0.7781 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/1.018, allocations: 60.72 kB / 0.7781 GB, free: 16.07 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006887/1.019, allocations: 346 kB / 0.7785 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.297e-05/1.019, allocations: 31.11 kB / 0.7785 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001898/1.019, allocations: 193.7 kB / 0.7787 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 7.099e-05/1.02, allocations: 83.72 kB / 0.7788 GB, free: 15.77 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/1.02, allocations: 52 kB / 0.7788 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002275/1.02, allocations: 344.2 kB / 0.7791 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003038/1.02, allocations: 77 kB / 0.7792 GB, free: 15.44 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/1.02, allocations: 120.8 kB / 0.7793 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005072/1.021, allocations: 216.2 kB / 0.7795 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/1.021, allocations: 0 / 0.7795 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007625/1.022, allocations: 357.7 kB / 0.7799 GB, free: 15.25 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.543e-05/1.022, allocations: 32.11 kB / 0.7799 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/1.022, allocations: 2.344 kB / 0.7799 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002949/1.022, allocations: 40.81 kB / 0.7799 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002531/1.022, allocations: 45.83 kB / 0.78 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001631/1.024, allocations: 1.422 MB / 0.7814 GB, free: 13.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/1.024, allocations: 35.56 kB / 0.7814 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.249e-05/1.024, allocations: 11.62 kB / 0.7814 GB, free: 13.96 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.0002364/1.025, allocations: 145.3 kB / 0.7816 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.69e-05/1.025, allocations: 36.27 kB / 0.7816 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008356/1.025, allocations: 338.7 kB / 0.7819 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/1.025, allocations: 2.75 kB / 0.7819 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/1.025, allocations: 1.375 kB / 0.7819 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/1.025, allocations: 0 / 0.7819 GB, free: 13.75 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001424/1.027, allocations: 0.7285 MB / 0.7826 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/1.027, allocations: 3.938 kB / 0.7826 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/1.027, allocations: 45.05 kB / 0.7827 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001738/1.027, allocations: 44.55 kB / 0.7827 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/1.027, allocations: 7.406 kB / 0.7827 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001455/1.029, allocations: 1.427 MB / 0.7841 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.029, allocations: 0 / 0.7841 GB, free: 12.21 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001031/1.03, allocations: 0.4957 MB / 0.7846 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.372e-05/1.03, allocations: 42.56 kB / 0.7846 GB, free: 12 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.001e-05/1.03, allocations: 10.95 kB / 0.7847 GB, free: 12 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001943/1.03, allocations: 9.781 kB / 0.7847 GB, free: 12 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001282/1.03, allocations: 31.94 kB / 0.7847 GB, free: 12 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/1.03, allocations: 8.547 kB / 0.7847 GB, free: 12 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003516/1.031, allocations: 248.3 kB / 0.7849 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/1.031, allocations: 0 / 0.7849 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0009609/1.032, allocations: 119.9 kB / 0.7851 GB, free: 11.9 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.001903/1.033, allocations: 1.152 MB / 0.7862 GB, free: 11.16 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001007/1.034, allocations: 389.2 kB / 0.7866 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/1.034, allocations: 0 / 0.7866 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004773/1.035, allocations: 230.9 kB / 0.7868 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007227/1.036, allocations: 113.6 kB / 0.7869 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005644/1.041, allocations: 3.246 MB / 0.7901 GB, free: 9.258 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005791/1.042, allocations: 0.789 MB / 0.7908 GB, free: 8.559 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002868/1.042, allocations: 49.95 kB / 0.7909 GB, free: 8.547 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/1.042, allocations: 131 kB / 0.791 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of SimCode: time 1.343e-06/1.042, allocations: 0 / 0.791 GB, free: 8.535 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05748/1.1, allocations: 10.64 MB / 0.8014 GB, free: 6.727 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.38, allocations: 2.406 kB / 0.8014 GB, free: 6.727 MB / 0.5919 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_FlowControl_Tests_CheckValve.fmu > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_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_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_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.5234989868477]