Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.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.001952/0.001952, allocations: 92.7 kB / 19.44 MB, free: 320 kB / 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.002453/0.002453, allocations: 161.3 kB / 22.75 MB, free: 1.652 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.508/1.508, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.072/1.072, allocations: 118.6 MB / 378.2 MB, free: 1.48 MB / 346.7 MB " [Timeout remaining time 178] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 482.9 MB, free: 8.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.576e-05, allocations: 3.688 kB / 482.9 MB, free: 8.316 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.BasicControlValve): time 0.06962/0.06965, allocations: 52.2 MB / 0.5225 GB, free: 12.73 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.03009/0.09974, allocations: 17.51 MB / 0.5396 GB, free: 11.16 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002894/0.1026, allocations: 114.9 kB / 0.5398 GB, free: 11.05 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002982/0.1056, allocations: 0.8372 MB / 0.5406 GB, free: 10.2 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006909/0.1125, allocations: 1.92 MB / 0.5424 GB, free: 8.27 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006917/0.1194, allocations: 1.447 MB / 0.5439 GB, free: 6.816 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.005914/0.1254, allocations: 3.028 MB / 0.5468 GB, free: 3.773 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001002/0.1264, allocations: 303.2 kB / 0.5471 GB, free: 3.449 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004212/0.1306, allocations: 1.64 MB / 0.5487 GB, free: 1.805 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001475/0.132, allocations: 0.7709 MB / 0.5495 GB, free: 1.031 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002784/0.1323, allocations: 132 kB / 0.5496 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003808/0.1361, allocations: 1.154 MB / 0.5507 GB, free: 15.75 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004766/0.1366, allocations: 366.1 kB / 0.5511 GB, free: 15.39 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.1378, allocations: 0.6505 MB / 0.5517 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007098/0.1449, allocations: 2.869 MB / 0.5545 GB, free: 11.86 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.1449, allocations: 0 / 0.5545 GB, free: 11.86 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1449, allocations: 0 / 0.5545 GB, free: 11.86 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.483e-05/0.145, allocations: 0 / 0.5545 GB, free: 11.86 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 296 * Number of variables: 296 Notification: Performance of Generate backend data structure: time 0.005374/0.1504, allocations: 2.521 MB / 0.557 GB, free: 9.289 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.1504, allocations: 8.031 kB / 0.557 GB, free: 9.281 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.1514, allocations: 403 kB / 0.5574 GB, free: 8.887 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003091/0.1545, allocations: 1.448 MB / 0.5588 GB, free: 7.391 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.1546, allocations: 90.7 kB / 0.5589 GB, free: 7.301 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002138/0.1548, allocations: 128.3 kB / 0.559 GB, free: 7.176 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.1573, allocations: 1.327 MB / 0.5603 GB, free: 5.77 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.1573, allocations: 7.938 kB / 0.5603 GB, free: 5.762 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.1574, allocations: 44 kB / 0.5603 GB, free: 5.719 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.352e-05/0.1575, allocations: 28 kB / 0.5604 GB, free: 5.691 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002139/0.1596, allocations: 1.16 MB / 0.5615 GB, free: 4.523 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007301/0.1669, allocations: 3.552 MB / 0.565 GB, free: 0.8867 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001738/0.1686, allocations: 0.8457 MB / 0.5658 GB, free: 28 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008329/0.1695, allocations: 404.4 kB / 0.5662 GB, free: 15.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004038/0.1735, allocations: 1.509 MB / 0.5676 GB, free: 14.1 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.466e-05/0.1736, allocations: 51.5 kB / 0.5677 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=103): time 3.006e-06/0.1736, allocations: 0 / 0.5677 GB, free: 14.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=103): time 0.003967/0.1775, allocations: 1.474 MB / 0.5691 GB, free: 12.55 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.274e-05/0.1776, allocations: 60.41 kB / 0.5692 GB, free: 12.48 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/0.1798, allocations: 1.378 MB / 0.5705 GB, free: 11.1 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.136e-05/0.1799, allocations: 45.7 kB / 0.5706 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008925/0.1807, allocations: 0.8564 MB / 0.5714 GB, free: 10.19 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.000502/0.1812, allocations: 368.7 kB / 0.5718 GB, free: 9.824 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003214/0.1816, allocations: 186.6 kB / 0.5719 GB, free: 9.637 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.1818, allocations: 345.9 kB / 0.5723 GB, free: 9.293 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006244/0.1824, allocations: 285.9 kB / 0.5725 GB, free: 9.012 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.1835, allocations: 0.7293 MB / 0.5733 GB, free: 8.145 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/0.185, allocations: 0.8047 MB / 0.574 GB, free: 7.281 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.591e-06/0.185, allocations: 0 / 0.574 GB, free: 7.281 MB / 0.4948 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002768/0.1878, allocations: 1.213 MB / 0.5752 GB, free: 6.051 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.1878, allocations: 7.984 kB / 0.5752 GB, free: 6.043 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.1878, allocations: 4 kB / 0.5752 GB, free: 6.039 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.1889, allocations: 210.9 kB / 0.5754 GB, free: 5.824 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007792/0.1896, allocations: 203.7 kB / 0.5756 GB, free: 5.625 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005263/0.1949, allocations: 4.423 MB / 0.5799 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/0.1962, allocations: 99.52 kB / 0.58 GB, free: 0.7969 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001332/0.1963, allocations: 47.98 kB / 0.5801 GB, free: 0.75 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006315/0.1969, allocations: 285.6 kB / 0.5804 GB, free: 472 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/0.1974, allocations: 226.7 kB / 0.5806 GB, free: 244 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.2008, allocations: 1.557 MB / 0.5821 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.2008, allocations: 12 kB / 0.5821 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2008, allocations: 0 / 0.5821 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.2008, allocations: 11.92 kB / 0.5821 GB, free: 14.66 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004684/0.2055, allocations: 2.185 MB / 0.5843 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.2055, allocations: 8.188 kB / 0.5843 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005863/0.2061, allocations: 151.7 kB / 0.5844 GB, free: 12.24 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009707/0.2071, allocations: 222.2 kB / 0.5846 GB, free: 12.01 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.581e-05/0.2071, allocations: 31.97 kB / 0.5847 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004994/0.2121, allocations: 4.436 MB / 0.589 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.2121, allocations: 0 / 0.589 GB, free: 7.238 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003443/0.2156, allocations: 1.571 MB / 0.5905 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007405/0.2163, allocations: 266.4 kB / 0.5908 GB, free: 5.355 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001905/0.2165, allocations: 27.94 kB / 0.5908 GB, free: 5.328 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006042/0.2171, allocations: 23.98 kB / 0.5908 GB, free: 5.305 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.2173, allocations: 80.86 kB / 0.5909 GB, free: 5.227 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.274e-05/0.2174, allocations: 35.97 kB / 0.5909 GB, free: 5.191 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001559/0.219, allocations: 0.9446 MB / 0.5919 GB, free: 4.223 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9e-08/0.219, allocations: 3.938 kB / 0.5919 GB, free: 4.219 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001852/0.2208, allocations: 0.5925 MB / 0.5924 GB, free: 3.625 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.inlet.m_flow,flowResistance2.inlet.m_flow,flowResistance4.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001132/0.2219, allocations: 0.6614 MB / 0.5931 GB, free: 2.953 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002575/0.2245, allocations: 1.123 MB / 0.5942 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/0.2245, allocations: 0 / 0.5942 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001438/0.226, allocations: 0.7634 MB / 0.5949 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/0.2296, allocations: 0.727 MB / 0.5956 GB, free: 296 kB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007285/0.2369, allocations: 3.087 MB / 0.5987 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009512/0.2378, allocations: 0.7389 MB / 0.5994 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0014/0.2392, allocations: 298.4 kB / 0.5997 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.2396, allocations: 148.4 kB / 0.5998 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of SimCode: time 1.293e-06/0.2396, allocations: 0 / 0.5998 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of Templates: time 0.0638/0.3034, allocations: 32.92 MB / 0.6319 GB, free: 11.69 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.426369923050515]