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.001123/0.001123, 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.0008968/0.0008968, 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.196/1.196, allocations: 177.1 MB / 202.8 MB, free: 5.758 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.7103/0.7103, allocations: 80.19 MB / 339.4 MB, free: 7.551 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 4.057e-06/4.057e-06, allocations: 0 / 0.4924 GB, free: 6.676 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.229e-05/3.635e-05, allocations: 6.219 kB / 0.4924 GB, free: 6.668 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1648/0.1649, allocations: 125 MB / 0.6144 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.002795/0.1677, allocations: 2.528 MB / 0.6169 GB, free: 8.484 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003026/0.168, allocations: 27.81 kB / 0.6169 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0008556/0.1688, allocations: 162.8 kB / 0.6171 GB, free: 8.297 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0007863/0.1696, allocations: 425.2 kB / 0.6175 GB, free: 7.879 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007264/0.1703, allocations: 310.3 kB / 0.6178 GB, free: 7.578 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0005539/0.1709, allocations: 0.5907 MB / 0.6184 GB, free: 6.984 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000182/0.1711, allocations: 61.97 kB / 0.6184 GB, free: 6.918 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000616/0.1717, allocations: 362.8 kB / 0.6188 GB, free: 6.562 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002745/0.1719, allocations: 203.4 kB / 0.619 GB, free: 6.363 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.172, allocations: 28 kB / 0.619 GB, free: 6.336 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006256/0.1726, allocations: 427.1 kB / 0.6194 GB, free: 5.918 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.1728, allocations: 67.62 kB / 0.6195 GB, free: 5.852 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.1729, allocations: 127.6 kB / 0.6196 GB, free: 5.727 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0007373/0.1737, allocations: 0.5646 MB / 0.6201 GB, free: 5.16 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.1737, allocations: 3.984 kB / 0.6201 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.535e-06/0.1737, allocations: 0 / 0.6201 GB, free: 5.156 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.719e-06/0.1737, allocations: 8 kB / 0.6202 GB, free: 5.148 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.001351/0.175, allocations: 0.6906 MB / 0.6208 GB, free: 4.422 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.82e-05/0.1751, allocations: 9.469 kB / 0.6208 GB, free: 4.414 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.178e-05/0.1752, allocations: 62.72 kB / 0.6209 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001251/0.1753, allocations: 48.66 kB / 0.6209 GB, free: 4.297 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006339/0.1759, allocations: 334.4 kB / 0.6213 GB, free: 3.941 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.903e-05/0.176, allocations: 20.88 kB / 0.6213 GB, free: 3.922 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.092e-05/0.176, allocations: 28.12 kB / 0.6213 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004322/0.1764, allocations: 275.5 kB / 0.6216 GB, free: 3.609 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1765, allocations: 0 / 0.6216 GB, free: 3.609 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.1765, allocations: 12 kB / 0.6216 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.1765, allocations: 4 kB / 0.6216 GB, free: 3.594 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003074/0.1768, allocations: 225.9 kB / 0.6218 GB, free: 3.371 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001218/0.178, allocations: 0.8495 MB / 0.6226 GB, free: 2.473 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.1784, allocations: 206.5 kB / 0.6228 GB, free: 2.262 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001373/0.1785, allocations: 104.7 kB / 0.6229 GB, free: 2.156 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005952/0.1791, allocations: 484.2 kB / 0.6234 GB, free: 1.664 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003085/0.1794, allocations: 157.5 kB / 0.6235 GB, free: 1.5 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 1.443e-06/0.1794, allocations: 3.938 kB / 0.6235 GB, free: 1.496 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.0008672/0.1803, allocations: 379.8 kB / 0.6239 GB, free: 1.117 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.1803, allocations: 67.33 kB / 0.624 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004128/0.1807, allocations: 357.7 kB / 0.6243 GB, free: 0.6797 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.1808, allocations: 33.7 kB / 0.6243 GB, free: 0.6406 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.1809, allocations: 204.4 kB / 0.6245 GB, free: 448 kB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.1809, allocations: 87.27 kB / 0.6246 GB, free: 360 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.024e-05/0.181, allocations: 49.7 kB / 0.6247 GB, free: 304 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1811, allocations: 350.8 kB / 0.625 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.1813, allocations: 109.6 kB / 0.6251 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001564/0.1815, allocations: 145.1 kB / 0.6252 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002726/0.1817, allocations: 239.5 kB / 0.6255 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1817, allocations: 0 / 0.6255 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0004915/0.1822, allocations: 376 kB / 0.6258 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.1823, allocations: 41.78 kB / 0.6259 GB, free: 14.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1823, allocations: 3.938 kB / 0.6259 GB, free: 14.98 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/0.1825, allocations: 40.83 kB / 0.6259 GB, free: 14.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.1826, allocations: 43.97 kB / 0.626 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009668/0.1836, allocations: 1.425 MB / 0.6274 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.1837, allocations: 35.92 kB / 0.6274 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.248e-05/0.1837, allocations: 15.98 kB / 0.6274 GB, free: 13.3 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.0004065/0.1842, allocations: 147.2 kB / 0.6275 GB, free: 13.15 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.91e-05/0.1842, allocations: 39.77 kB / 0.6276 GB, free: 13.11 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005385/0.1847, allocations: 341.8 kB / 0.6279 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1848, allocations: 8 kB / 0.6279 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.1848, allocations: 0 / 0.6279 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.1848, allocations: 3.984 kB / 0.6279 GB, free: 12.76 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007458/0.1855, allocations: 0.6866 MB / 0.6286 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.1855, allocations: 0 / 0.6286 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.923e-05/0.1856, allocations: 43.97 kB / 0.6286 GB, free: 11.97 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001088/0.1857, allocations: 44.78 kB / 0.6287 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.1857, allocations: 8 kB / 0.6287 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008275/0.1865, allocations: 1.409 MB / 0.6301 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1866, allocations: 144 / 0.6301 GB, free: 10.39 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005889/0.1871, allocations: 0.5022 MB / 0.6305 GB, free: 9.871 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.278e-05/0.1872, allocations: 47.66 kB / 0.6306 GB, free: 9.824 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.661e-05/0.1872, allocations: 8 kB / 0.6306 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.976e-05/0.1873, allocations: 11.98 kB / 0.6306 GB, free: 9.805 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.196e-05/0.1874, allocations: 35.89 kB / 0.6306 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.1874, allocations: 4 kB / 0.6306 GB, free: 9.766 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001859/0.1876, allocations: 259.1 kB / 0.6309 GB, free: 9.516 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.1876, allocations: 0 / 0.6309 GB, free: 9.516 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003329/0.1879, allocations: 131.8 kB / 0.631 GB, free: 9.387 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.001106/0.189, allocations: 1.162 MB / 0.6322 GB, free: 8.188 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005576/0.1896, allocations: 420.2 kB / 0.6326 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1896, allocations: 0 / 0.6326 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002293/0.1898, allocations: 235.5 kB / 0.6328 GB, free: 7.504 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005611/0.1904, allocations: 155.5 kB / 0.6329 GB, free: 7.355 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003896/0.1943, allocations: 3.439 MB / 0.6363 GB, free: 3.773 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.1944, allocations: 187.2 kB / 0.6365 GB, free: 3.574 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001762/0.1946, allocations: 55.12 kB / 0.6365 GB, free: 3.52 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001356/0.1947, allocations: 132.5 kB / 0.6366 GB, free: 3.391 MB / 0.5417 GB Notification: Performance of SimCode: time 8.32e-07/0.1947, allocations: 0 / 0.6366 GB, free: 3.391 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.36/0.5548, allocations: 12.86 MB / 0.6492 GB, free: 145.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.808/9.362, allocations: 6.672 kB / 0.6492 GB, free: 145.2 MB / 0.5417 GB " [Timeout remaining time 651] (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/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 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: 12.761728840880096]