Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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.001746/0.001746, allocations: 88.72 kB / 19.44 MB, free: 356 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.002224/0.002224, allocations: 157.7 kB / 22.75 MB, free: 1.684 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.5/1.5, allocations: 177.1 MB / 203.1 MB, free: 5.586 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.038/1.038, allocations: 118.6 MB / 378.2 MB, free: 1.488 MB / 346.7 MB " [Timeout remaining time 179] 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.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 482.9 MB, free: 8.27 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.829e-05/3.011e-05, allocations: 5.406 kB / 482.9 MB, free: 8.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1767/0.1767, allocations: 121.9 MB / 0.5906 GB, free: 6.781 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001926/0.1787, allocations: 1.153 MB / 0.5917 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.1788, allocations: 19.81 kB / 0.5917 GB, free: 5.605 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.000474/0.1793, allocations: 123.1 kB / 0.5918 GB, free: 5.484 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0004827/0.1798, allocations: 174.8 kB / 0.592 GB, free: 5.312 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004528/0.1802, allocations: 175.2 kB / 0.5922 GB, free: 5.141 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0005142/0.1808, allocations: 374.1 kB / 0.5925 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.1809, allocations: 41.23 kB / 0.5926 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006364/0.1815, allocations: 283 kB / 0.5928 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.1817, allocations: 107.6 kB / 0.5929 GB, free: 4.352 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 3.031e-05/0.1818, allocations: 16 kB / 0.593 GB, free: 4.336 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003413/0.1821, allocations: 167.7 kB / 0.5931 GB, free: 4.172 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.1822, allocations: 47.78 kB / 0.5932 GB, free: 4.125 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000103/0.1823, allocations: 67.78 kB / 0.5932 GB, free: 4.059 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0005377/0.1828, allocations: 314.9 kB / 0.5935 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1828, allocations: 0 / 0.5935 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.012e-06/0.1828, allocations: 0 / 0.5935 GB, free: 3.75 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.1828, allocations: 0 / 0.5935 GB, free: 3.75 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001012/0.1838, allocations: 0.5255 MB / 0.594 GB, free: 3.188 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.1839, allocations: 12.03 kB / 0.5941 GB, free: 3.176 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.781e-05/0.184, allocations: 40.75 kB / 0.5941 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006463/0.1846, allocations: 288.3 kB / 0.5944 GB, free: 2.828 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.941e-05/0.1846, allocations: 12.38 kB / 0.5944 GB, free: 2.816 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.1847, allocations: 16.33 kB / 0.5944 GB, free: 2.801 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003983/0.1851, allocations: 165.9 kB / 0.5946 GB, free: 2.621 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1851, allocations: 3.938 kB / 0.5946 GB, free: 2.617 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1851, allocations: 4 kB / 0.5946 GB, free: 2.613 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.1851, allocations: 4 kB / 0.5946 GB, free: 2.609 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003578/0.1855, allocations: 99.86 kB / 0.5947 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1866, allocations: 0.6991 MB / 0.5953 GB, free: 1.766 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003349/0.1869, allocations: 82.52 kB / 0.5954 GB, free: 1.676 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001433/0.187, allocations: 36.97 kB / 0.5955 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.894e-05/0.1871, allocations: 7.984 kB / 0.5955 GB, free: 1.629 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.1874, allocations: 103.3 kB / 0.5956 GB, free: 1.516 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/0.1874, allocations: 0 / 0.5956 GB, free: 1.516 MB / 0.5105 GB Notification: Performance of matching and sorting (n=7): time 0.0005401/0.1879, allocations: 157.4 kB / 0.5957 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.855e-05/0.188, allocations: 51.41 kB / 0.5958 GB, free: 1.293 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000356/0.1883, allocations: 284.5 kB / 0.596 GB, free: 1.004 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.887e-05/0.1884, allocations: 29.7 kB / 0.5961 GB, free: 0.9688 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.1885, allocations: 171.8 kB / 0.5962 GB, free: 0.7969 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.177e-05/0.1885, allocations: 31.78 kB / 0.5963 GB, free: 0.7656 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.1886, allocations: 37.7 kB / 0.5963 GB, free: 0.7227 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1888, allocations: 334.8 kB / 0.5966 GB, free: 396 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.189, allocations: 69.67 kB / 0.5967 GB, free: 320 kB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002392/0.1892, allocations: 122.7 kB / 0.5968 GB, free: 172 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.1896, allocations: 150.7 kB / 0.5969 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1896, allocations: 0 / 0.5969 GB, free: 15.99 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005586/0.1901, allocations: 244.7 kB / 0.5972 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.525e-05/0.1902, allocations: 37.7 kB / 0.5972 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1902, allocations: 0 / 0.5972 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.1902, allocations: 8.156 kB / 0.5972 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001704/0.1904, allocations: 31.92 kB / 0.5972 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.74e-06/0.1904, allocations: 0 / 0.5972 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.1906, allocations: 27.81 kB / 0.5973 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.1906, allocations: 8 kB / 0.5973 GB, free: 15.62 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.1907, allocations: 133.8 kB / 0.5974 GB, free: 15.48 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.387e-05/0.1908, allocations: 27.8 kB / 0.5974 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004276/0.1912, allocations: 148.2 kB / 0.5976 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.1912, allocations: 0 / 0.5976 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1912, allocations: 0 / 0.5976 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1912, allocations: 0 / 0.5976 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002223/0.1914, allocations: 185.1 kB / 0.5978 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1914, allocations: 0 / 0.5978 GB, free: 15.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.1916, allocations: 15.98 kB / 0.5978 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1916, allocations: 0 / 0.5978 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1916, allocations: 4 kB / 0.5978 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1916, allocations: 3.984 kB / 0.5978 GB, free: 15.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1916, allocations: 4 kB / 0.5978 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.1921, allocations: 196.8 kB / 0.598 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.1922, allocations: 31.83 kB / 0.598 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.644e-05/0.1923, allocations: 4 kB / 0.598 GB, free: 14.82 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.1924, allocations: 11.98 kB / 0.598 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.421e-05/0.1924, allocations: 11.98 kB / 0.598 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.1924, allocations: 4 kB / 0.598 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002237/0.1927, allocations: 191.1 kB / 0.5982 GB, free: 14.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1e-07/0.1927, allocations: 8.062 kB / 0.5982 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003072/0.193, allocations: 47.94 kB / 0.5983 GB, free: 14.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * 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 (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002224/0.1932, allocations: 134.8 kB / 0.5984 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000467/0.1937, allocations: 192.6 kB / 0.5986 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1937, allocations: 0 / 0.5986 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.1938, allocations: 39.97 kB / 0.5986 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.1943, allocations: 65.83 kB / 0.5987 GB, free: 14.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000911/0.1952, allocations: 441.7 kB / 0.5991 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001526/0.1953, allocations: 138.2 kB / 0.5992 GB, free: 13.49 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 9.347e-05/0.1954, allocations: 21.95 kB / 0.5993 GB, free: 13.47 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.2e-05/0.1955, allocations: 24.48 kB / 0.5993 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of SimCode: time 3.1e-07/0.1955, allocations: 0 / 0.5993 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of Templates: time 0.008066/0.2036, allocations: 2.969 MB / 0.6022 GB, free: 10.57 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.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: 5.751220395904966]