Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.0009297/0.0009297, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009926/0.0009926, allocations: 169 kB / 23.02 MB, free: 1.547 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.036/1.036, allocations: 177.1 MB / 203.4 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] 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.6915/0.6915, allocations: 118.6 MB / 378.6 MB, free: 1.465 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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.843e-06/1.843e-06, allocations: 0 / 483.6 MB, free: 8.199 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.785e-05, allocations: 2.312 kB / 483.6 MB, free: 8.195 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1498/0.1498, allocations: 136.4 MB / 0.6055 GB, free: 7.789 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005532/0.1553, allocations: 3.686 MB / 0.6091 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.1565, allocations: 67.38 kB / 0.6092 GB, free: 4.027 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0008345/0.1573, allocations: 349.1 kB / 0.6095 GB, free: 3.684 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002336/0.1596, allocations: 1.234 MB / 0.6107 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.1611, allocations: 0.713 MB / 0.6114 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002576/0.1637, allocations: 2.796 MB / 0.6141 GB, free: 14.92 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004433/0.1641, allocations: 294.3 kB / 0.6144 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002054/0.1662, allocations: 1.43 MB / 0.6158 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.1675, allocations: 1.263 MB / 0.617 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002232/0.1677, allocations: 144 kB / 0.6172 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.1689, allocations: 0.5032 MB / 0.6177 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002884/0.1692, allocations: 382.5 kB / 0.618 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0006422/0.1698, allocations: 0.5963 MB / 0.6186 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001935/0.1717, allocations: 1.658 MB / 0.6202 GB, free: 8.621 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1717, allocations: 4 kB / 0.6202 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.783e-06/0.1717, allocations: 0 / 0.6202 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.549e-05/0.1718, allocations: 0 / 0.6202 GB, free: 8.617 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002559/0.1743, allocations: 2.052 MB / 0.6223 GB, free: 6.516 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.1744, allocations: 12.03 kB / 0.6223 GB, free: 6.504 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004607/0.1748, allocations: 323.4 kB / 0.6226 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001179/0.176, allocations: 0.968 MB / 0.6235 GB, free: 5.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.346e-05/0.1761, allocations: 86.78 kB / 0.6236 GB, free: 5.094 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.1762, allocations: 120.4 kB / 0.6237 GB, free: 4.977 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001517/0.1777, allocations: 1.022 MB / 0.6247 GB, free: 3.906 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.98e-05/0.1777, allocations: 7.938 kB / 0.6247 GB, free: 3.898 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.35e-05/0.1778, allocations: 48 kB / 0.6248 GB, free: 3.852 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.291e-05/0.1778, allocations: 32 kB / 0.6248 GB, free: 3.82 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.1789, allocations: 0.7203 MB / 0.6255 GB, free: 3.09 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004037/0.1829, allocations: 3.382 MB / 0.6288 GB, free: 15.64 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.1841, allocations: 0.8537 MB / 0.6296 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/0.1846, allocations: 363.1 kB / 0.63 GB, free: 14.43 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002431/0.187, allocations: 1.766 MB / 0.6317 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006113/0.1876, allocations: 483 kB / 0.6322 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 3.767e-06/0.1876, allocations: 0 / 0.6322 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.003855/0.1915, allocations: 2.527 MB / 0.6346 GB, free: 9.59 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.514e-05/0.1915, allocations: 72.66 kB / 0.6347 GB, free: 9.508 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005326/0.192, allocations: 0.6947 MB / 0.6354 GB, free: 8.797 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.337e-05/0.1921, allocations: 45.7 kB / 0.6354 GB, free: 8.746 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003037/0.1924, allocations: 0.5977 MB / 0.636 GB, free: 8.141 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000245/0.1926, allocations: 464 kB / 0.6365 GB, free: 7.684 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.1929, allocations: 216.6 kB / 0.6367 GB, free: 7.461 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001425/0.193, allocations: 0.5199 MB / 0.6372 GB, free: 6.934 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.1934, allocations: 276.2 kB / 0.6374 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/0.1938, allocations: 405.8 kB / 0.6378 GB, free: 6.23 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.1949, allocations: 0.7398 MB / 0.6385 GB, free: 5.457 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1949, allocations: 0 / 0.6385 GB, free: 5.457 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001486/0.1963, allocations: 1.147 MB / 0.6397 GB, free: 4.285 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/0.1964, allocations: 29.7 kB / 0.6397 GB, free: 4.25 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1964, allocations: 7.984 kB / 0.6397 GB, free: 4.242 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003742/0.1968, allocations: 127.6 kB / 0.6398 GB, free: 4.113 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005018/0.1973, allocations: 251.7 kB / 0.6401 GB, free: 3.867 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.1995, allocations: 2.655 MB / 0.6426 GB, free: 1.094 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004055/0.1999, allocations: 47.97 kB / 0.6427 GB, free: 1.047 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.137e-05/0.2, allocations: 51.98 kB / 0.6427 GB, free: 0.9961 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002773/0.2003, allocations: 216.3 kB / 0.643 GB, free: 0.7734 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002495/0.2005, allocations: 195 kB / 0.6431 GB, free: 0.582 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2607/0.4612, allocations: 1.732 MB / 0.6448 GB, free: 51.03 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.567e-05/0.4612, allocations: 14.67 kB / 0.6448 GB, free: 51.03 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.4612, allocations: 2.156 kB / 0.6448 GB, free: 51.03 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.512e-05/0.4612, allocations: 6.75 kB / 0.6449 GB, free: 51.03 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.4648, allocations: 2.316 MB / 0.6471 GB, free: 50.63 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.4648, allocations: 0.8125 kB / 0.6471 GB, free: 50.63 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005381/0.4653, allocations: 238.6 kB / 0.6473 GB, free: 50.63 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003434/0.4657, allocations: 136 kB / 0.6475 GB, free: 50.62 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.912e-05/0.4657, allocations: 41.05 kB / 0.6475 GB, free: 50.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00156/0.4673, allocations: 2.529 MB / 0.65 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.4673, allocations: 5 kB / 0.65 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002093/0.4694, allocations: 1.615 MB / 0.6516 GB, free: 48.37 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003817/0.4698, allocations: 262.4 kB / 0.6518 GB, free: 48.37 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.053e-05/0.4699, allocations: 28.38 kB / 0.6518 GB, free: 48.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.4702, allocations: 46.19 kB / 0.6519 GB, free: 48.36 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001517/0.4703, allocations: 108.7 kB / 0.652 GB, free: 48.36 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.098e-05/0.4704, allocations: 48.83 kB / 0.652 GB, free: 48.36 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000382/0.4708, allocations: 473.8 kB / 0.6525 GB, free: 48.21 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.4708, allocations: 0 / 0.6525 GB, free: 48.21 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009129/0.4717, allocations: 458.2 kB / 0.6529 GB, free: 48.21 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.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 (129): * Single equations (assignments): 126 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003926/0.4721, allocations: 267.4 kB / 0.6532 GB, free: 48.12 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00147/0.4735, allocations: 1.131 MB / 0.6543 GB, free: 47.81 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4735, allocations: 0 / 0.6543 GB, free: 47.81 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007414/0.4743, allocations: 0.7314 MB / 0.655 GB, free: 47.61 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001304/0.4756, allocations: 0.5202 MB / 0.6555 GB, free: 47.58 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003555/0.4791, allocations: 2.419 MB / 0.6579 GB, free: 46.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.4795, allocations: 265.9 kB / 0.6581 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000904/0.4804, allocations: 317.5 kB / 0.6584 GB, free: 46.42 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003148/0.4807, allocations: 144.5 kB / 0.6586 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of SimCode: time 1.863e-06/0.4807, allocations: 0 / 0.6586 GB, free: 46.41 MB / 0.5573 GB Notification: Performance of Templates: time 0.03195/0.5126, allocations: 24.18 MB / 0.6822 GB, free: 42.29 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.925545786973089]