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.00146/0.00146, allocations: 85.17 kB / 19.87 MB, free: 4.617 MB / 18.57 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.001836/0.001836, allocations: 169 kB / 23.27 MB, free: 1.227 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.9419/0.9419, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.6622/0.6622, allocations: 118.6 MB / 378.9 MB, free: 1.395 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.413e-06/1.413e-06, allocations: 0 / 484.1 MB, free: 8.152 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.908e-05/2.049e-05, allocations: 4.984 kB / 484.1 MB, free: 8.148 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1467/0.1467, allocations: 133.4 MB / 0.603 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005316/0.1521, allocations: 3.658 MB / 0.6066 GB, free: 6.898 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000719/0.1528, allocations: 71.38 kB / 0.6067 GB, free: 6.828 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0006542/0.1534, allocations: 349.1 kB / 0.607 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001717/0.1551, allocations: 1.238 MB / 0.6082 GB, free: 5.238 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.1564, allocations: 0.7169 MB / 0.6089 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002151/0.1586, allocations: 2.788 MB / 0.6116 GB, free: 1.723 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003771/0.1589, allocations: 290.3 kB / 0.6119 GB, free: 1.406 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001488/0.1604, allocations: 1.438 MB / 0.6133 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.1617, allocations: 1.278 MB / 0.6146 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.1619, allocations: 140 kB / 0.6147 GB, free: 14.55 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007558/0.1626, allocations: 0.4954 MB / 0.6152 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0002104/0.1628, allocations: 386.5 kB / 0.6155 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004653/0.1633, allocations: 0.6002 MB / 0.6161 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.1648, allocations: 1.658 MB / 0.6178 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.1648, allocations: 4 kB / 0.6178 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.603e-06/0.1648, allocations: 0 / 0.6178 GB, free: 11.4 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.651e-05/0.1648, allocations: 0 / 0.6178 GB, free: 11.4 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.002316/0.1671, allocations: 2.029 MB / 0.6197 GB, free: 9.324 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.1671, allocations: 8.031 kB / 0.6197 GB, free: 9.316 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003645/0.1675, allocations: 323.4 kB / 0.6201 GB, free: 9 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009477/0.1685, allocations: 0.9602 MB / 0.621 GB, free: 8 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.384e-05/0.1685, allocations: 94.78 kB / 0.6211 GB, free: 7.906 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.1686, allocations: 120.4 kB / 0.6212 GB, free: 7.789 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009482/0.1696, allocations: 0.9198 MB / 0.6221 GB, free: 6.82 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.1696, allocations: 3.938 kB / 0.6221 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.942e-05/0.1696, allocations: 48 kB / 0.6221 GB, free: 6.77 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.1697, allocations: 28 kB / 0.6222 GB, free: 6.742 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006444/0.1703, allocations: 0.543 MB / 0.6227 GB, free: 6.188 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003297/0.1736, allocations: 3.211 MB / 0.6258 GB, free: 2.922 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008369/0.1744, allocations: 0.7671 MB / 0.6266 GB, free: 2.141 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1747, allocations: 307.4 kB / 0.6269 GB, free: 1.84 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001888/0.1766, allocations: 1.805 MB / 0.6286 GB, free: 56 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004419/0.177, allocations: 434.8 kB / 0.6291 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=128): time 2.966e-06/0.1771, allocations: 0 / 0.6291 GB, free: 15.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=129): time 0.002638/0.1797, allocations: 2.075 MB / 0.6311 GB, free: 13.5 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.1797, allocations: 72.66 kB / 0.6312 GB, free: 13.42 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005394/0.1803, allocations: 0.6942 MB / 0.6318 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.656e-05/0.1803, allocations: 45.7 kB / 0.6319 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002727/0.1806, allocations: 0.6015 MB / 0.6325 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002222/0.1808, allocations: 467.9 kB / 0.6329 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.181, allocations: 212.5 kB / 0.6331 GB, free: 11.37 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1811, allocations: 0.5276 MB / 0.6336 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002492/0.1814, allocations: 216.2 kB / 0.6338 GB, free: 10.62 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.1817, allocations: 357.7 kB / 0.6342 GB, free: 10.23 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005957/0.1823, allocations: 0.638 MB / 0.6348 GB, free: 9.562 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1823, allocations: 0 / 0.6348 GB, free: 9.562 MB / 0.5573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001104/0.1834, allocations: 1.026 MB / 0.6358 GB, free: 8.512 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.142e-05/0.1834, allocations: 29.7 kB / 0.6358 GB, free: 8.477 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1834, allocations: 4 kB / 0.6358 GB, free: 8.473 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000281/0.1837, allocations: 127.6 kB / 0.636 GB, free: 8.344 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004429/0.1842, allocations: 231.7 kB / 0.6362 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00192/0.1861, allocations: 2.606 MB / 0.6387 GB, free: 5.398 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002729/0.1863, allocations: 32 kB / 0.6387 GB, free: 5.367 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.602e-05/0.1864, allocations: 43.97 kB / 0.6388 GB, free: 5.324 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.0004846/0.1869, allocations: 212.4 kB / 0.639 GB, free: 5.105 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/0.1871, allocations: 198.9 kB / 0.6392 GB, free: 4.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001689/0.1888, allocations: 1.642 MB / 0.6408 GB, free: 3.227 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.348e-06/0.1888, allocations: 16 kB / 0.6408 GB, free: 3.211 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1888, allocations: 7.938 kB / 0.6408 GB, free: 3.203 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-06/0.1888, allocations: 7.969 kB / 0.6408 GB, free: 3.195 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.1911, allocations: 2.052 MB / 0.6428 GB, free: 1.086 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.1911, allocations: 0 / 0.6428 GB, free: 1.086 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004226/0.1915, allocations: 227.7 kB / 0.643 GB, free: 0.8633 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.1917, allocations: 127.5 kB / 0.6432 GB, free: 0.7344 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.917e-05/0.1918, allocations: 39.98 kB / 0.6432 GB, free: 0.6953 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2492/0.441, allocations: 2.474 MB / 0.6456 GB, free: 51.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.441, allocations: 1.469 kB / 0.6456 GB, free: 51.45 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002434/0.4434, allocations: 1.442 MB / 0.647 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004262/0.4439, allocations: 257.4 kB / 0.6473 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/0.444, allocations: 27.09 kB / 0.6473 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003108/0.4443, allocations: 38.75 kB / 0.6473 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.4445, allocations: 110.3 kB / 0.6474 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-05/0.4445, allocations: 40.55 kB / 0.6475 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000437/0.445, allocations: 444.4 kB / 0.6479 GB, free: 51.02 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.445, allocations: 0 / 0.6479 GB, free: 51.02 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001304/0.4463, allocations: 450.6 kB / 0.6483 GB, free: 51.02 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.0004561/0.4467, allocations: 264.5 kB / 0.6486 GB, free: 50.93 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.4481, allocations: 1.029 MB / 0.6496 GB, free: 50.61 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.4482, allocations: 0 / 0.6496 GB, free: 50.61 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007326/0.4489, allocations: 0.6863 MB / 0.6503 GB, free: 50.41 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001258/0.4501, allocations: 0.5201 MB / 0.6508 GB, free: 50.39 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003487/0.4536, allocations: 2.387 MB / 0.6531 GB, free: 49.4 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001943/0.4538, allocations: 266.2 kB / 0.6533 GB, free: 49.31 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007075/0.4545, allocations: 286.4 kB / 0.6536 GB, free: 49.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007414/0.4553, allocations: 489.9 kB / 0.6541 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of SimCode: time 2.013e-06/0.4553, allocations: 0 / 0.6541 GB, free: 49.16 MB / 0.5573 GB Notification: Performance of Templates: time 0.03416/0.4894, allocations: 26.81 MB / 0.6803 GB, free: 44.57 MB / 0.5573 GB " [Timeout remaining time 660] 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.582715426106006]