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.001324/0.001324, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001231/0.001231, allocations: 169.9 kB / 22.46 MB, free: 2.105 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 1.122/1.122, allocations: 177.2 MB / 202.8 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.754/0.754, allocations: 80.17 MB / 339.4 MB, free: 7.539 MB / 314.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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: Performance of FrontEnd - loaded program: time 3.617e-06/3.617e-06, allocations: 0 / 0.4924 GB, free: 6.688 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.692e-05/4.054e-05, allocations: 2.281 kB / 0.4924 GB, free: 6.684 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1669/0.1669, allocations: 125 MB / 0.6144 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.003211/0.1701, allocations: 2.524 MB / 0.6169 GB, free: 8.492 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003634/0.1705, allocations: 23.75 kB / 0.6169 GB, free: 8.469 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0007586/0.1713, allocations: 170.8 kB / 0.6171 GB, free: 8.301 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0009185/0.1722, allocations: 429.2 kB / 0.6175 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007893/0.173, allocations: 302.7 kB / 0.6178 GB, free: 7.582 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005814/0.1735, allocations: 0.5907 MB / 0.6184 GB, free: 6.988 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002272/0.1738, allocations: 57.97 kB / 0.6184 GB, free: 6.926 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007436/0.1745, allocations: 366.8 kB / 0.6188 GB, free: 6.566 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002873/0.1748, allocations: 199.4 kB / 0.619 GB, free: 6.371 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 4.727e-05/0.1749, allocations: 24 kB / 0.619 GB, free: 6.348 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005979/0.1754, allocations: 435.1 kB / 0.6194 GB, free: 5.922 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.1756, allocations: 71.61 kB / 0.6195 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1757, allocations: 123.6 kB / 0.6196 GB, free: 5.73 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0007993/0.1765, allocations: 0.5685 MB / 0.6201 GB, free: 5.16 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 9.157e-06/0.1765, allocations: 0 / 0.6201 GB, free: 5.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.078e-06/0.1765, allocations: 0 / 0.6201 GB, free: 5.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.25e-05/0.1765, allocations: 0 / 0.6201 GB, free: 5.16 MB / 0.5261 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.001331/0.1779, allocations: 0.6955 MB / 0.6208 GB, free: 4.43 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.1779, allocations: 13.47 kB / 0.6208 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.178, allocations: 54.73 kB / 0.6209 GB, free: 4.355 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.407e-05/0.1781, allocations: 52.64 kB / 0.6209 GB, free: 4.305 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009363/0.179, allocations: 338.4 kB / 0.6213 GB, free: 3.945 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.715e-05/0.179, allocations: 16.88 kB / 0.6213 GB, free: 3.93 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.226e-05/0.1791, allocations: 32.11 kB / 0.6213 GB, free: 3.898 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.1794, allocations: 267.6 kB / 0.6216 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.1794, allocations: 0 / 0.6216 GB, free: 3.621 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.1795, allocations: 16 kB / 0.6216 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1795, allocations: 4 kB / 0.6216 GB, free: 3.602 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003361/0.1798, allocations: 225.8 kB / 0.6218 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001189/0.181, allocations: 0.8496 MB / 0.6226 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003614/0.1814, allocations: 214.5 kB / 0.6228 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00014/0.1815, allocations: 100.8 kB / 0.6229 GB, free: 2.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005983/0.1821, allocations: 484.2 kB / 0.6234 GB, free: 1.668 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003181/0.1824, allocations: 157.5 kB / 0.6235 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 1.382e-06/0.1824, allocations: 0 / 0.6235 GB, free: 1.504 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.000883/0.1833, allocations: 387.1 kB / 0.6239 GB, free: 1.117 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.654e-05/0.1834, allocations: 59.34 kB / 0.624 GB, free: 1.047 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003133/0.1837, allocations: 361.7 kB / 0.6243 GB, free: 0.6836 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.144e-05/0.1837, allocations: 33.64 kB / 0.6243 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001178/0.1838, allocations: 208.3 kB / 0.6245 GB, free: 448 kB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.1839, allocations: 91.31 kB / 0.6246 GB, free: 356 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.489e-05/0.1839, allocations: 45.7 kB / 0.6247 GB, free: 304 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1841, allocations: 350.8 kB / 0.625 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.1842, allocations: 105.7 kB / 0.6251 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1844, allocations: 145.1 kB / 0.6253 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002905/0.1847, allocations: 239.5 kB / 0.6255 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.1847, allocations: 0 / 0.6255 GB, free: 15.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004535/0.1851, allocations: 384 kB / 0.6258 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.026e-05/0.1852, allocations: 33.7 kB / 0.6259 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1852, allocations: 0 / 0.6259 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002306/0.1854, allocations: 48.91 kB / 0.6259 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.1856, allocations: 43.92 kB / 0.626 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.1866, allocations: 1.425 MB / 0.6274 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001117/0.1867, allocations: 31.86 kB / 0.6274 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.1868, allocations: 12 kB / 0.6274 GB, free: 13.31 MB / 0.5417 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.0001398/0.1869, allocations: 154.7 kB / 0.6275 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.384e-05/0.1869, allocations: 35.77 kB / 0.6276 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007284/0.1877, allocations: 349.7 kB / 0.6279 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1877, allocations: 0 / 0.6279 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.1877, allocations: 4 kB / 0.6279 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1877, allocations: 0 / 0.6279 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000733/0.1884, allocations: 0.6919 MB / 0.6286 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.658e-06/0.1884, allocations: 0 / 0.6286 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.613e-05/0.1885, allocations: 39.91 kB / 0.6286 GB, free: 11.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00014/0.1887, allocations: 44.77 kB / 0.6287 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.1887, allocations: 11.98 kB / 0.6287 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008855/0.1896, allocations: 1.417 MB / 0.6301 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1896, allocations: 0 / 0.6301 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005524/0.1901, allocations: 0.4936 MB / 0.6306 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.881e-05/0.1902, allocations: 43.67 kB / 0.6306 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.495e-05/0.1902, allocations: 4 kB / 0.6306 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001011/0.1903, allocations: 20.11 kB / 0.6306 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1904, allocations: 31.88 kB / 0.6306 GB, free: 9.773 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1904, allocations: 12 kB / 0.6307 GB, free: 9.762 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.000189/0.1906, allocations: 255.2 kB / 0.6309 GB, free: 9.516 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7e-08/0.1906, allocations: 0 / 0.6309 GB, free: 9.516 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003112/0.1909, allocations: 123.8 kB / 0.631 GB, free: 9.395 MB / 0.5417 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.001092/0.192, allocations: 1.167 MB / 0.6322 GB, free: 8.191 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005836/0.1926, allocations: 416.1 kB / 0.6326 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1926, allocations: 0 / 0.6326 GB, free: 7.754 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002244/0.1928, allocations: 235.8 kB / 0.6328 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005318/0.1933, allocations: 157.1 kB / 0.6329 GB, free: 7.359 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.1973, allocations: 3.439 MB / 0.6363 GB, free: 3.777 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001477/0.1974, allocations: 187.2 kB / 0.6365 GB, free: 3.578 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001371/0.1976, allocations: 59.08 kB / 0.6365 GB, free: 3.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001408/0.1977, allocations: 136.4 kB / 0.6367 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of SimCode: time 1.142e-06/0.1977, allocations: 0 / 0.6367 GB, free: 3.387 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.396/0.5938, allocations: 12.85 MB / 0.6492 GB, free: 145.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.148/9.742, allocations: 11.75 kB / 0.6492 GB, free: 145.3 MB / 0.5417 GB " [Timeout remaining time 650] (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/jenkins/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: 13.076281446963549]