Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001767/0.001767, 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.002214/0.002214, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.472/1.472, allocations: 177.1 MB / 203.1 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9962/0.9962, allocations: 118.6 MB / 378.2 MB, free: 1.477 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.853e-06/1.853e-06, allocations: 3.938 kB / 482.9 MB, free: 8.25 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.351e-05, allocations: 5.688 kB / 482.9 MB, free: 8.246 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1717/0.1717, allocations: 121.9 MB / 0.5906 GB, free: 6.746 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.0018/0.1736, allocations: 1.16 MB / 0.5917 GB, free: 5.582 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.1737, allocations: 19.81 kB / 0.5917 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0004388/0.1741, allocations: 111.2 kB / 0.5918 GB, free: 5.453 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.0004245/0.1746, allocations: 174.8 kB / 0.592 GB, free: 5.281 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004155/0.175, allocations: 175.2 kB / 0.5922 GB, free: 5.109 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.0006879/0.1757, allocations: 370.2 kB / 0.5925 GB, free: 4.746 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001354/0.1758, allocations: 45.17 kB / 0.5926 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005802/0.1764, allocations: 275 kB / 0.5928 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002003/0.1766, allocations: 115.7 kB / 0.5929 GB, free: 4.316 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 3.217e-05/0.1766, allocations: 12 kB / 0.593 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.1769, allocations: 171.6 kB / 0.5931 GB, free: 4.137 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.177, allocations: 43.7 kB / 0.5932 GB, free: 4.094 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.1771, allocations: 71.78 kB / 0.5932 GB, free: 4.023 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0005105/0.1776, allocations: 303 kB / 0.5935 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.1776, allocations: 0 / 0.5935 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1776, allocations: 0 / 0.5935 GB, free: 3.727 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.1776, allocations: 4 kB / 0.5935 GB, free: 3.723 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.001022/0.1787, allocations: 0.5372 MB / 0.594 GB, free: 3.148 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.1787, allocations: 12.03 kB / 0.5941 GB, free: 3.137 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.433e-05/0.1788, allocations: 40.75 kB / 0.5941 GB, free: 3.098 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005225/0.1793, allocations: 276.4 kB / 0.5944 GB, free: 2.801 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.457e-05/0.1793, allocations: 16.36 kB / 0.5944 GB, free: 2.785 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.1794, allocations: 20.27 kB / 0.5944 GB, free: 2.766 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004009/0.1798, allocations: 169.9 kB / 0.5946 GB, free: 2.582 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1798, allocations: 7.938 kB / 0.5946 GB, free: 2.574 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.1798, allocations: 4 kB / 0.5946 GB, free: 2.57 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1798, allocations: 4 kB / 0.5946 GB, free: 2.566 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.1801, allocations: 95.88 kB / 0.5947 GB, free: 2.473 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001083/0.1812, allocations: 0.6951 MB / 0.5953 GB, free: 1.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.1816, allocations: 86.52 kB / 0.5954 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001454/0.1817, allocations: 44.89 kB / 0.5955 GB, free: 1.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.271e-05/0.1818, allocations: 4 kB / 0.5955 GB, free: 1.586 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002508/0.182, allocations: 87.34 kB / 0.5956 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.182, allocations: 0 / 0.5956 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of matching and sorting (n=7): time 0.0005547/0.1826, allocations: 161.4 kB / 0.5957 GB, free: 1.324 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.1826, allocations: 55.34 kB / 0.5958 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003419/0.183, allocations: 288.5 kB / 0.596 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.183, allocations: 25.7 kB / 0.5961 GB, free: 0.9336 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1832, allocations: 183.7 kB / 0.5962 GB, free: 0.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.1832, allocations: 23.8 kB / 0.5963 GB, free: 0.7266 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.059e-05/0.1833, allocations: 33.7 kB / 0.5963 GB, free: 0.6875 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001963/0.1835, allocations: 338.8 kB / 0.5966 GB, free: 356 kB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000183/0.1836, allocations: 69.67 kB / 0.5967 GB, free: 280 kB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.1839, allocations: 118.7 kB / 0.5968 GB, free: 136 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.1842, allocations: 142.8 kB / 0.5969 GB, free: 15.97 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1842, allocations: 4 kB / 0.5969 GB, free: 15.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.000527/0.1847, allocations: 263.9 kB / 0.5972 GB, free: 15.69 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.01e-05/0.1848, allocations: 33.7 kB / 0.5972 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.1848, allocations: 0 / 0.5972 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.1848, allocations: 4 kB / 0.5972 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.185, allocations: 27.97 kB / 0.5972 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.185, allocations: 4 kB / 0.5973 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001738/0.1851, allocations: 27.97 kB / 0.5973 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.484e-05/0.1851, allocations: 12 kB / 0.5973 GB, free: 15.58 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.0001496/0.1853, allocations: 133.8 kB / 0.5974 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.066e-05/0.1853, allocations: 23.86 kB / 0.5974 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003885/0.1857, allocations: 128.3 kB / 0.5976 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.1857, allocations: 4 kB / 0.5976 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1857, allocations: 0 / 0.5976 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1857, allocations: 0 / 0.5976 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.186, allocations: 189.1 kB / 0.5977 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.186, allocations: 4 kB / 0.5977 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1861, allocations: 19.92 kB / 0.5978 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1861, allocations: 0 / 0.5978 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.1861, allocations: 11.98 kB / 0.5978 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1861, allocations: 0 / 0.5978 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1861, allocations: 0 / 0.5978 GB, free: 15.03 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005181/0.1866, allocations: 184.8 kB / 0.598 GB, free: 14.83 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.712e-05/0.1867, allocations: 31.83 kB / 0.598 GB, free: 14.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.1867, allocations: 12.06 kB / 0.598 GB, free: 14.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.1868, allocations: 11.92 kB / 0.598 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.521e-05/0.1869, allocations: 7.984 kB / 0.598 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1869, allocations: 4 kB / 0.598 GB, free: 14.76 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002189/0.1871, allocations: 195.1 kB / 0.5982 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7e-08/0.1871, allocations: 0 / 0.5982 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002774/0.1874, allocations: 51.89 kB / 0.5983 GB, free: 14.52 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.0002207/0.1876, allocations: 150.4 kB / 0.5984 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0004467/0.1881, allocations: 181 kB / 0.5986 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.1881, allocations: 0 / 0.5986 GB, free: 14.17 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.1882, allocations: 35.97 kB / 0.5986 GB, free: 14.14 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004264/0.1887, allocations: 71.72 kB / 0.5987 GB, free: 14.07 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008276/0.1895, allocations: 441.6 kB / 0.5991 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.1896, allocations: 138.2 kB / 0.5992 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.92e-05/0.1897, allocations: 25.94 kB / 0.5993 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.864e-05/0.1898, allocations: 24.5 kB / 0.5993 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of SimCode: time 3.91e-07/0.1898, allocations: 0 / 0.5993 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of Templates: time 0.007767/0.1976, allocations: 2.971 MB / 0.6022 GB, free: 10.54 MB / 0.5261 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_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_dev_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.589707846054807]