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.001338/0.001338, allocations: 79.28 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001491/0.001491, allocations: 163.1 kB / 22.46 MB, free: 5.375 MB / 14.72 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.42/1.42, allocations: 177.1 MB / 202.8 MB, free: 9.141 MB / 190.1 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.9607/0.9607, allocations: 116 MB / 375.2 MB, free: 7.512 MB / 350.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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.523e-06/1.523e-06, allocations: 0 / 0.5537 GB, free: 13.76 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.462e-05/2.614e-05, allocations: 2.281 kB / 0.5538 GB, free: 13.76 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1587/0.1587, allocations: 121.9 MB / 0.6728 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001719/0.1604, allocations: 1.153 MB / 0.6739 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002326/0.1606, allocations: 19.81 kB / 0.6739 GB, free: 2.25 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0005558/0.1612, allocations: 115.1 kB / 0.674 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0004873/0.1617, allocations: 166.8 kB / 0.6742 GB, free: 1.973 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004947/0.1622, allocations: 183.2 kB / 0.6743 GB, free: 1.793 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.1627, allocations: 358.3 kB / 0.6747 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.1629, allocations: 44.61 kB / 0.6747 GB, free: 1.391 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006608/0.1635, allocations: 279 kB / 0.675 GB, free: 1.117 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000221/0.1638, allocations: 107.6 kB / 0.6751 GB, free: 1.012 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.116e-05/0.1638, allocations: 16 kB / 0.6751 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.1642, allocations: 171.7 kB / 0.6753 GB, free: 0.8281 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 7.348e-05/0.1643, allocations: 35.8 kB / 0.6753 GB, free: 0.793 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.1644, allocations: 71.77 kB / 0.6754 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005469/0.1649, allocations: 303 kB / 0.6757 GB, free: 436 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1649, allocations: 0 / 0.6757 GB, free: 436 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1649, allocations: 0 / 0.6757 GB, free: 436 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.535e-06/0.1649, allocations: 0 / 0.6757 GB, free: 436 kB / 0.5762 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.001081/0.166, allocations: 0.5255 MB / 0.6762 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.166, allocations: 8.031 kB / 0.6762 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.407e-05/0.1661, allocations: 32.75 kB / 0.6762 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005333/0.1666, allocations: 264.3 kB / 0.6765 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.327e-05/0.1667, allocations: 12.38 kB / 0.6765 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.223e-05/0.1667, allocations: 12.38 kB / 0.6765 GB, free: 15.52 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.1671, allocations: 169.9 kB / 0.6767 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.1671, allocations: 3.938 kB / 0.6767 GB, free: 15.33 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1671, allocations: 4 kB / 0.6767 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.1671, allocations: 7.938 kB / 0.6767 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003429/0.1675, allocations: 110.3 kB / 0.6768 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001014/0.1685, allocations: 0.6912 MB / 0.6775 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003264/0.1688, allocations: 86.45 kB / 0.6775 GB, free: 14.38 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1689, allocations: 44.95 kB / 0.6776 GB, free: 14.33 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.485e-05/0.169, allocations: 7.984 kB / 0.6776 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002525/0.1693, allocations: 91.34 kB / 0.6777 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.1693, allocations: 0 / 0.6777 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of matching and sorting (n=7): time 0.0005285/0.1698, allocations: 149.6 kB / 0.6778 GB, free: 14.07 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.1698, allocations: 59.39 kB / 0.6779 GB, free: 14 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.1701, allocations: 272.5 kB / 0.6781 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.1701, allocations: 29.69 kB / 0.6782 GB, free: 13.69 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001316/0.1703, allocations: 171.8 kB / 0.6783 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.1703, allocations: 27.78 kB / 0.6783 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.173e-05/0.1704, allocations: 25.72 kB / 0.6784 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1705, allocations: 342.8 kB / 0.6787 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.1707, allocations: 73.66 kB / 0.6788 GB, free: 13.04 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001938/0.1709, allocations: 102.8 kB / 0.6789 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003504/0.1713, allocations: 162.6 kB / 0.679 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1713, allocations: 0 / 0.679 GB, free: 12.73 MB / 0.5919 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004898/0.1718, allocations: 248.8 kB / 0.6793 GB, free: 12.47 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.3e-05/0.1718, allocations: 33.7 kB / 0.6793 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1718, allocations: 3.984 kB / 0.6793 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.1718, allocations: 4 kB / 0.6793 GB, free: 12.42 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.172, allocations: 27.98 kB / 0.6793 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.939e-06/0.172, allocations: 8.062 kB / 0.6793 GB, free: 12.39 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.1722, allocations: 23.81 kB / 0.6794 GB, free: 12.36 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.1722, allocations: 15.94 kB / 0.6794 GB, free: 12.35 MB / 0.5919 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.0001344/0.1723, allocations: 121.9 kB / 0.6795 GB, free: 12.22 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.1724, allocations: 35.84 kB / 0.6795 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003888/0.1727, allocations: 127.5 kB / 0.6796 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.1727, allocations: 3.938 kB / 0.6796 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1727, allocations: 0 / 0.6796 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.1728, allocations: 3.984 kB / 0.6797 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000192/0.1729, allocations: 181.1 kB / 0.6798 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1729, allocations: 3.984 kB / 0.6798 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.1731, allocations: 15.98 kB / 0.6798 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.1731, allocations: 4 kB / 0.6798 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.265e-05/0.1731, allocations: 0 / 0.6798 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1731, allocations: 0 / 0.6798 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1731, allocations: 4 kB / 0.6799 GB, free: 11.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005172/0.1736, allocations: 192.8 kB / 0.68 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.125e-05/0.1737, allocations: 27.88 kB / 0.6801 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.245e-05/0.1737, allocations: 4 kB / 0.6801 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.1738, allocations: 11.98 kB / 0.6801 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.865e-05/0.1739, allocations: 19.98 kB / 0.6801 GB, free: 11.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.206e-05/0.1739, allocations: 7.984 kB / 0.6801 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001903/0.1741, allocations: 187.1 kB / 0.6803 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.1741, allocations: 0 / 0.6803 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0002736/0.1744, allocations: 51.83 kB / 0.6803 GB, free: 11.3 MB / 0.5919 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.0002202/0.1746, allocations: 139.2 kB / 0.6805 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000438/0.175, allocations: 177 kB / 0.6806 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.175, allocations: 0 / 0.6806 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.1752, allocations: 43.91 kB / 0.6807 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004234/0.1756, allocations: 61.44 kB / 0.6807 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007969/0.1764, allocations: 410.5 kB / 0.6811 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001378/0.1765, allocations: 134.2 kB / 0.6813 GB, free: 10.28 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 7.736e-05/0.1766, allocations: 21.94 kB / 0.6813 GB, free: 10.26 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.5e-05/0.1767, allocations: 24.5 kB / 0.6813 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of SimCode: time 2.9e-07/0.1767, allocations: 0 / 0.6813 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of Templates: time 0.008035/0.1847, allocations: 2.905 MB / 0.6841 GB, free: 7.402 MB / 0.5919 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.797212306410074]