Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001069/0.001069, allocations: 69.11 kB / 20.65 MB, free: 3.848 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.001058/0.001058, allocations: 173 kB / 24.06 MB, free: 452 kB / 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.014/1.014, allocations: 177.1 MB / 204.5 MB, free: 5.004 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.7502/0.7502, allocations: 118.6 MB / 379.7 MB, free: 1.32 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.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_dev_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_dev_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 484.8 MB, free: 8.129 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.165e-05/1.289e-05, allocations: 2.312 kB / 484.8 MB, free: 8.125 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1198/0.1198, allocations: 138.7 MB / 0.6089 GB, free: 5.223 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007534/0.1274, allocations: 5.517 MB / 0.6143 GB, free: 15.69 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.1286, allocations: 142.7 kB / 0.6145 GB, free: 15.55 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0009325/0.1296, allocations: 0.5189 MB / 0.615 GB, free: 15.03 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002515/0.1321, allocations: 1.874 MB / 0.6168 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.001932/0.134, allocations: 1.293 MB / 0.6181 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003419/0.1374, allocations: 4.7 MB / 0.6226 GB, free: 7.121 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007187/0.1381, allocations: 0.6954 MB / 0.6233 GB, free: 6.367 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001975/0.1401, allocations: 2.525 MB / 0.6258 GB, free: 3.836 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001907/0.142, allocations: 1.983 MB / 0.6277 GB, free: 1.848 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002973/0.1423, allocations: 316 kB / 0.628 GB, free: 1.539 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.1435, allocations: 0.8624 MB / 0.6289 GB, free: 0.6758 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004151/0.1439, allocations: 0.6966 MB / 0.6296 GB, free: 15.97 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0009153/0.1449, allocations: 1.13 MB / 0.6307 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002475/0.1473, allocations: 3.115 MB / 0.6337 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1473, allocations: 0 / 0.6337 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.052e-06/0.1473, allocations: 0 / 0.6337 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.232e-05/0.1474, allocations: 4 kB / 0.6337 GB, free: 11.71 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.003754/0.1511, allocations: 3.592 MB / 0.6372 GB, free: 8.047 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.1512, allocations: 12.03 kB / 0.6372 GB, free: 8.035 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005357/0.1517, allocations: 0.5336 MB / 0.6377 GB, free: 7.5 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001902/0.1536, allocations: 2.032 MB / 0.6397 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.248e-05/0.1537, allocations: 148.3 kB / 0.6399 GB, free: 5.242 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.1539, allocations: 211.8 kB / 0.6401 GB, free: 5.035 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001757/0.1556, allocations: 1.439 MB / 0.6415 GB, free: 3.535 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.1556, allocations: 0 / 0.6415 GB, free: 3.535 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001142/0.1558, allocations: 83.98 kB / 0.6416 GB, free: 3.453 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-05/0.1558, allocations: 70.7 kB / 0.6416 GB, free: 3.383 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009614/0.1568, allocations: 0.7491 MB / 0.6424 GB, free: 2.625 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.214/0.3708, allocations: 6.23 MB / 0.6484 GB, free: 50.72 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001728/0.3725, allocations: 1.217 MB / 0.6496 GB, free: 50.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008/0.3733, allocations: 0.522 MB / 0.6501 GB, free: 50.6 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003888/0.3772, allocations: 2.535 MB / 0.6526 GB, free: 50.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008366/0.3781, allocations: 0.6466 MB / 0.6532 GB, free: 49.91 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 4.128e-06/0.3781, allocations: 0 / 0.6532 GB, free: 49.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.004588/0.3826, allocations: 3.317 MB / 0.6565 GB, free: 49.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.3827, allocations: 109.5 kB / 0.6566 GB, free: 49.28 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009377/0.3836, allocations: 1.423 MB / 0.658 GB, free: 48.99 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.876e-05/0.3837, allocations: 62.78 kB / 0.658 GB, free: 48.96 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005235/0.3842, allocations: 1.16 MB / 0.6592 GB, free: 48.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002905/0.3845, allocations: 0.6788 MB / 0.6598 GB, free: 48.27 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002932/0.3848, allocations: 316.5 kB / 0.6601 GB, free: 48.24 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.767e-05/0.3848, allocations: 476.8 kB / 0.6606 GB, free: 47.77 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.3852, allocations: 300.2 kB / 0.6609 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004124/0.3856, allocations: 0.543 MB / 0.6614 GB, free: 47.44 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009486/0.3865, allocations: 1.041 MB / 0.6624 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.3865, allocations: 3.344 kB / 0.6624 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001971/0.3885, allocations: 1.657 MB / 0.664 GB, free: 46.73 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.3885, allocations: 63.75 kB / 0.6641 GB, free: 46.67 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.3886, allocations: 8.594 kB / 0.6641 GB, free: 46.67 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000986/0.3895, allocations: 413.7 kB / 0.6645 GB, free: 46.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007253/0.3903, allocations: 317.5 kB / 0.6648 GB, free: 46.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003617/0.3939, allocations: 5.57 MB / 0.6702 GB, free: 42.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/0.3944, allocations: 50.23 kB / 0.6703 GB, free: 42.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.499e-05/0.3945, allocations: 62.62 kB / 0.6704 GB, free: 42.91 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.0004096/0.3949, allocations: 252.5 kB / 0.6706 GB, free: 42.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/0.3953, allocations: 334.3 kB / 0.6709 GB, free: 42.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.3981, allocations: 2.236 MB / 0.6731 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.3981, allocations: 20.12 kB / 0.6731 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/0.3981, allocations: 11.44 kB / 0.6731 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.3981, allocations: 9 kB / 0.6731 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004183/0.4023, allocations: 3.333 MB / 0.6764 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.77e-06/0.4023, allocations: 2.219 kB / 0.6764 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.403, allocations: 291.2 kB / 0.6767 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009919/0.404, allocations: 444.2 kB / 0.6771 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001109/0.4041, allocations: 68.78 kB / 0.6772 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003221/0.4073, allocations: 5.581 MB / 0.6826 GB, free: 37.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.4073, allocations: 48 / 0.6826 GB, free: 37.92 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002341/0.4096, allocations: 2.264 MB / 0.6848 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.4101, allocations: 424.5 kB / 0.6852 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/0.4102, allocations: 52.34 kB / 0.6853 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.4107, allocations: 50.72 kB / 0.6853 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.4109, allocations: 168.4 kB / 0.6855 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.001e-05/0.411, allocations: 55.14 kB / 0.6855 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.000518/0.4115, allocations: 0.8652 MB / 0.6864 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.4115, allocations: 1.969 kB / 0.6864 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001233/0.4127, allocations: 0.7819 MB / 0.6871 GB, free: 36.93 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.0004774/0.4132, allocations: 401.2 kB / 0.6875 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001528/0.4147, allocations: 1.706 MB / 0.6892 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.4147, allocations: 0.7812 kB / 0.6892 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009467/0.4157, allocations: 1.199 MB / 0.6904 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/0.4177, allocations: 0.9573 MB / 0.6913 GB, free: 35.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004498/0.4222, allocations: 4.247 MB / 0.6955 GB, free: 33.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.4226, allocations: 467.6 kB / 0.6959 GB, free: 33.63 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008725/0.4234, allocations: 395.3 kB / 0.6963 GB, free: 33.52 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002167/0.4256, allocations: 0.7825 MB / 0.697 GB, free: 33.45 MB / 0.5573 GB Notification: Performance of SimCode: time 7.62e-07/0.4256, allocations: 0.9062 kB / 0.697 GB, free: 33.45 MB / 0.5573 GB Notification: Performance of Templates: time 0.04908/0.4747, allocations: 49.5 MB / 0.7454 GB, free: 0.8203 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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: 5.080633874982595]