Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.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.0009852/0.0009852, allocations: 82.05 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.001109/0.001109, allocations: 170 kB / 23.27 MB, free: 1.223 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.973/0.973, allocations: 177.1 MB / 203.7 MB, free: 5.5 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.6968/0.6968, allocations: 118.6 MB / 378.9 MB, free: 1.379 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.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") translateModel(ThermofluidStream.FlowControl.Tests.Switch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|fourWaySwitch.switch.tanValve.outlet.m_flow|fourWaySwitch.switch1.tanValve.outlet.m_flow|pulse.T_start|pulse.count|pulse1.T_start|pulse1.count|source.outlet.m_flow|source1.outlet.m_flow|source2.outlet.m_flow|switch.tanValve.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 484.1 MB, free: 8.117 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.927e-06/1.009e-05, allocations: 7.906 kB / 484.1 MB, free: 8.109 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1261/0.1261, allocations: 138.7 MB / 0.6082 GB, free: 5.266 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.008626/0.1347, allocations: 5.521 MB / 0.6136 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002778/0.1375, allocations: 138.8 kB / 0.6137 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.139, allocations: 0.5227 MB / 0.6142 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.004625/0.1436, allocations: 1.873 MB / 0.616 GB, free: 13.18 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002831/0.1464, allocations: 1.29 MB / 0.6173 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.005202/0.1517, allocations: 4.708 MB / 0.6219 GB, free: 7.156 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001/0.1527, allocations: 0.6877 MB / 0.6226 GB, free: 6.41 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003731/0.1564, allocations: 2.529 MB / 0.625 GB, free: 3.875 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.1586, allocations: 1.983 MB / 0.627 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0004774/0.159, allocations: 312 kB / 0.6273 GB, free: 1.582 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001523/0.1606, allocations: 0.8546 MB / 0.6281 GB, free: 0.7266 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0007177/0.1613, allocations: 0.7043 MB / 0.6288 GB, free: 20 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.1624, allocations: 1.122 MB / 0.6299 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003349/0.1657, allocations: 3.118 MB / 0.6329 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1657, allocations: 0 / 0.6329 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.383e-06/0.1657, allocations: 4 kB / 0.6329 GB, free: 11.76 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.928e-05/0.1658, allocations: 0 / 0.6329 GB, free: 11.76 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.00432/0.1701, allocations: 3.592 MB / 0.6364 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.1701, allocations: 12.03 kB / 0.6364 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006313/0.1708, allocations: 0.5414 MB / 0.637 GB, free: 7.539 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.1731, allocations: 2.028 MB / 0.639 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.199e-05/0.1731, allocations: 148.3 kB / 0.6391 GB, free: 5.285 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002153/0.1734, allocations: 215.8 kB / 0.6393 GB, free: 5.074 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00163/0.175, allocations: 1.439 MB / 0.6407 GB, free: 3.574 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.803e-05/0.175, allocations: 7.938 kB / 0.6407 GB, free: 3.566 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/0.1751, allocations: 79.98 kB / 0.6408 GB, free: 3.488 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.488e-05/0.1752, allocations: 78.69 kB / 0.6409 GB, free: 3.41 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009714/0.1762, allocations: 0.7375 MB / 0.6416 GB, free: 2.664 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2535/0.4297, allocations: 6.226 MB / 0.6477 GB, free: 50.7 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.4313, allocations: 1.23 MB / 0.6489 GB, free: 50.62 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006772/0.432, allocations: 0.5142 MB / 0.6494 GB, free: 50.59 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003279/0.4353, allocations: 2.574 MB / 0.6519 GB, free: 49.99 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007665/0.436, allocations: 0.6626 MB / 0.6525 GB, free: 49.88 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 4.649e-06/0.436, allocations: 0 / 0.6525 GB, free: 49.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.004651/0.4407, allocations: 3.31 MB / 0.6558 GB, free: 49.35 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.4407, allocations: 102 kB / 0.6559 GB, free: 49.25 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009967/0.4417, allocations: 1.423 MB / 0.6573 GB, free: 48.97 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.589e-05/0.4418, allocations: 61.61 kB / 0.6573 GB, free: 48.94 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005306/0.4423, allocations: 1.167 MB / 0.6585 GB, free: 48.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003258/0.4427, allocations: 0.6755 MB / 0.6591 GB, free: 48.25 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002986/0.443, allocations: 310.9 kB / 0.6594 GB, free: 48.22 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.103e-05/0.443, allocations: 480.2 kB / 0.6599 GB, free: 47.75 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003538/0.4434, allocations: 294.9 kB / 0.6601 GB, free: 47.68 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004261/0.4438, allocations: 0.5432 MB / 0.6607 GB, free: 47.41 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009332/0.4447, allocations: 1.044 MB / 0.6617 GB, free: 47.09 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.4447, allocations: 7.562 kB / 0.6617 GB, free: 47.08 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001949/0.4467, allocations: 1.653 MB / 0.6633 GB, free: 46.71 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.4467, allocations: 63.47 kB / 0.6634 GB, free: 46.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.4467, allocations: 4.469 kB / 0.6634 GB, free: 46.64 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009988/0.4477, allocations: 412.8 kB / 0.6638 GB, free: 46.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/0.4484, allocations: 316.2 kB / 0.6641 GB, free: 46.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003659/0.4521, allocations: 5.579 MB / 0.6695 GB, free: 42.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008286/0.4529, allocations: 52.62 kB / 0.6696 GB, free: 42.88 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.453, allocations: 60.8 kB / 0.6696 GB, free: 42.88 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: flowResistance2.inlet.m_flow:VARIABLE(flow=true unit = \"kg/s\" fixed = true ) \"Mass flow rate\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 10 (pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2,$PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (174): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,28,93.8%), (2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005711/0.4536, allocations: 261 kB / 0.6699 GB, free: 42.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004901/0.4541, allocations: 337.4 kB / 0.6702 GB, free: 42.58 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002951/0.457, allocations: 2.225 MB / 0.6724 GB, free: 42.25 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/0.457, allocations: 20.44 kB / 0.6724 GB, free: 42.25 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/0.457, allocations: 7.969 kB / 0.6724 GB, free: 42.25 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.4571, allocations: 9.625 kB / 0.6724 GB, free: 42.25 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004507/0.4616, allocations: 3.337 MB / 0.6757 GB, free: 41.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.4616, allocations: 5.312 kB / 0.6757 GB, free: 41.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006617/0.4622, allocations: 288.1 kB / 0.676 GB, free: 41.65 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.4634, allocations: 448.2 kB / 0.6764 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001515/0.4635, allocations: 68.06 kB / 0.6764 GB, free: 41.61 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004345/0.4679, allocations: 5.585 MB / 0.6819 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.4679, allocations: 3.938 kB / 0.6819 GB, free: 37.86 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003251/0.4711, allocations: 2.262 MB / 0.6841 GB, free: 37.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008478/0.472, allocations: 419.2 kB / 0.6845 GB, free: 37.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/0.4722, allocations: 52.72 kB / 0.6846 GB, free: 37.07 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006838/0.4729, allocations: 50.09 kB / 0.6846 GB, free: 37.07 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/0.4732, allocations: 175.8 kB / 0.6848 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.83e-05/0.4733, allocations: 59.44 kB / 0.6848 GB, free: 37.06 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0008537/0.4742, allocations: 0.8688 MB / 0.6857 GB, free: 36.87 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.11e-07/0.4742, allocations: 0 / 0.6857 GB, free: 36.87 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001952/0.4761, allocations: 0.7774 MB / 0.6864 GB, free: 36.87 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,flowResistance3.inlet.m_flow,flowResistance6.inlet.m_flow) * Number of discrete variables: 6 ($whenCondition1,pulse.T_start,pulse.count,$whenCondition2,pulse1.T_start,pulse1.count) * Number of discrete states: 2 (pulse1.count,pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006564/0.4768, allocations: 392.9 kB / 0.6868 GB, free: 36.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002229/0.479, allocations: 1.71 MB / 0.6885 GB, free: 36.09 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.479, allocations: 0 / 0.6885 GB, free: 36.09 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001327/0.4803, allocations: 1.196 MB / 0.6897 GB, free: 35.66 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002761/0.4831, allocations: 0.9743 MB / 0.6906 GB, free: 35.53 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006456/0.4895, allocations: 4.24 MB / 0.6947 GB, free: 33.67 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.49, allocations: 465.8 kB / 0.6952 GB, free: 33.55 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001371/0.4914, allocations: 391.7 kB / 0.6956 GB, free: 33.44 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001529/0.4929, allocations: 0.7859 MB / 0.6963 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of SimCode: time 1.643e-06/0.4929, allocations: 0 / 0.6963 GB, free: 33.38 MB / 0.5573 GB Notification: Performance of Templates: time 0.05939/0.5523, allocations: 48.65 MB / 0.7438 GB, free: 1.676 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_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.8473951001651585]