Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.000932/0.000932, allocations: 93.06 kB / 19.65 MB, free: 280 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.001105/0.001105, allocations: 169.3 kB / 23.02 MB, free: 1.555 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 0.9474/0.9474, allocations: 177.1 MB / 203.4 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6396/0.6396, allocations: 118.6 MB / 378.6 MB, free: 1.516 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.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_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_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 483.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.308e-05, allocations: 9.203 kB / 483.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1359/0.1359, allocations: 136.5 MB / 0.6055 GB, free: 7.812 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005805/0.1418, allocations: 3.67 MB / 0.6091 GB, free: 4.133 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.1429, allocations: 71.38 kB / 0.6092 GB, free: 4.062 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.000923/0.1438, allocations: 353.1 kB / 0.6095 GB, free: 3.715 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002178/0.146, allocations: 1.242 MB / 0.6107 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001485/0.1475, allocations: 0.7053 MB / 0.6114 GB, free: 1.758 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002818/0.1503, allocations: 2.796 MB / 0.6142 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005388/0.1508, allocations: 290.3 kB / 0.6144 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002215/0.153, allocations: 1.43 MB / 0.6158 GB, free: 13.2 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.1545, allocations: 1.263 MB / 0.6171 GB, free: 11.94 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002282/0.1547, allocations: 148 kB / 0.6172 GB, free: 11.79 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008556/0.1556, allocations: 0.4954 MB / 0.6177 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.1558, allocations: 382.5 kB / 0.618 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0005756/0.1564, allocations: 0.608 MB / 0.6186 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001837/0.1582, allocations: 1.647 MB / 0.6203 GB, free: 8.66 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1582, allocations: 4 kB / 0.6203 GB, free: 8.656 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1582, allocations: 0 / 0.6203 GB, free: 8.656 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.366e-05/0.1583, allocations: 0 / 0.6203 GB, free: 8.656 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.002421/0.1607, allocations: 2.06 MB / 0.6223 GB, free: 6.547 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.1607, allocations: 11.97 kB / 0.6223 GB, free: 6.535 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004172/0.1612, allocations: 311.5 kB / 0.6226 GB, free: 6.23 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001181/0.1623, allocations: 0.9758 MB / 0.6235 GB, free: 5.215 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.1624, allocations: 90.78 kB / 0.6236 GB, free: 5.125 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001259/0.1625, allocations: 120.4 kB / 0.6237 GB, free: 5.008 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.1638, allocations: 1.014 MB / 0.6247 GB, free: 3.945 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.1639, allocations: 3.938 kB / 0.6247 GB, free: 3.941 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.596e-05/0.1639, allocations: 52 kB / 0.6248 GB, free: 3.891 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.898e-05/0.164, allocations: 28 kB / 0.6248 GB, free: 3.863 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.165, allocations: 0.7203 MB / 0.6255 GB, free: 3.133 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004415/0.1695, allocations: 3.39 MB / 0.6288 GB, free: 15.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.1708, allocations: 0.8453 MB / 0.6296 GB, free: 14.82 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006314/0.1714, allocations: 367.4 kB / 0.63 GB, free: 14.46 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00334/0.1748, allocations: 1.758 MB / 0.6317 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008186/0.1756, allocations: 487 kB / 0.6322 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 3.927e-06/0.1756, allocations: 0 / 0.6322 GB, free: 12.19 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.004906/0.1805, allocations: 2.523 MB / 0.6346 GB, free: 9.629 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.1805, allocations: 76.64 kB / 0.6347 GB, free: 9.543 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006986/0.1812, allocations: 0.6947 MB / 0.6354 GB, free: 8.832 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.565e-05/0.1813, allocations: 57.64 kB / 0.6354 GB, free: 8.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003874/0.1817, allocations: 0.5977 MB / 0.636 GB, free: 8.164 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.182, allocations: 456 kB / 0.6365 GB, free: 7.715 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.1823, allocations: 212.6 kB / 0.6367 GB, free: 7.496 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1825, allocations: 0.5199 MB / 0.6372 GB, free: 6.969 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004927/0.183, allocations: 276.2 kB / 0.6374 GB, free: 6.695 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006121/0.1836, allocations: 409.8 kB / 0.6378 GB, free: 6.262 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.1847, allocations: 0.7398 MB / 0.6385 GB, free: 5.488 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.1847, allocations: 0 / 0.6385 GB, free: 5.488 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001916/0.1867, allocations: 1.143 MB / 0.6397 GB, free: 4.32 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.193e-05/0.1867, allocations: 33.7 kB / 0.6397 GB, free: 4.281 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.487e-06/0.1867, allocations: 4 kB / 0.6397 GB, free: 4.277 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004292/0.1871, allocations: 130.2 kB / 0.6398 GB, free: 4.148 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006718/0.1878, allocations: 239.7 kB / 0.6401 GB, free: 3.914 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.1904, allocations: 2.66 MB / 0.6426 GB, free: 1.133 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003879/0.1908, allocations: 43.95 kB / 0.6427 GB, free: 1.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.951e-05/0.1909, allocations: 51.98 kB / 0.6427 GB, free: 1.039 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.000286/0.1912, allocations: 220.3 kB / 0.643 GB, free: 0.8125 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002941/0.1915, allocations: 191 kB / 0.6431 GB, free: 0.625 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2464/0.4379, allocations: 1.734 MB / 0.6448 GB, free: 50.76 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.4379, allocations: 14.48 kB / 0.6448 GB, free: 50.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.4379, allocations: 3 kB / 0.6448 GB, free: 50.76 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/0.4379, allocations: 8.719 kB / 0.6449 GB, free: 50.76 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/0.4416, allocations: 2.312 MB / 0.6471 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.4416, allocations: 4.344 kB / 0.6471 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005865/0.4422, allocations: 240.7 kB / 0.6473 GB, free: 50.36 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003875/0.4426, allocations: 135.3 kB / 0.6475 GB, free: 50.35 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.084e-05/0.4427, allocations: 42.88 kB / 0.6475 GB, free: 50.35 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00167/0.4443, allocations: 2.53 MB / 0.65 GB, free: 48.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.4443, allocations: 4.188 kB / 0.65 GB, free: 48.41 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002203/0.4465, allocations: 1.613 MB / 0.6516 GB, free: 48.1 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003853/0.4469, allocations: 262.3 kB / 0.6518 GB, free: 48.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.447, allocations: 38.73 kB / 0.6519 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000312/0.4473, allocations: 39.09 kB / 0.6519 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/0.4475, allocations: 109 kB / 0.652 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.165e-05/0.4476, allocations: 49.5 kB / 0.652 GB, free: 48.09 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003799/0.4479, allocations: 475 kB / 0.6525 GB, free: 47.94 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.4479, allocations: 2.406 kB / 0.6525 GB, free: 47.94 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0008911/0.4488, allocations: 450.7 kB / 0.6529 GB, free: 47.94 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.0004183/0.4493, allocations: 261.4 kB / 0.6532 GB, free: 47.85 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001483/0.4507, allocations: 1.132 MB / 0.6543 GB, free: 47.54 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4507, allocations: 1.031 kB / 0.6543 GB, free: 47.54 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007759/0.4515, allocations: 0.7337 MB / 0.655 GB, free: 47.34 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.4528, allocations: 0.5185 MB / 0.6555 GB, free: 47.32 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003742/0.4566, allocations: 2.412 MB / 0.6579 GB, free: 46.32 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.4568, allocations: 272.3 kB / 0.6581 GB, free: 46.24 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007772/0.4576, allocations: 314.1 kB / 0.6584 GB, free: 46.16 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.4579, allocations: 144.9 kB / 0.6586 GB, free: 46.16 MB / 0.5573 GB Notification: Performance of SimCode: time 2.174e-06/0.4579, allocations: 1.062 kB / 0.6586 GB, free: 46.16 MB / 0.5573 GB Notification: Performance of Templates: time 0.03976/0.4976, allocations: 24.19 MB / 0.6822 GB, free: 42.04 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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.753757507074624]