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.0009719/0.0009719, allocations: 73.88 kB / 20.65 MB, free: 3.844 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.0009965/0.0009965, allocations: 169 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 0.9308/0.9308, allocations: 177.1 MB / 204.5 MB, free: 5.477 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.6592/0.6592, allocations: 118.6 MB / 379.7 MB, free: 1.375 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 9.22e-07/9.22e-07, allocations: 0 / 484.8 MB, free: 8.152 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.018e-05/1.11e-05, allocations: 9.484 kB / 484.8 MB, free: 8.145 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1191/0.1191, allocations: 138.7 MB / 0.6089 GB, free: 5.273 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007211/0.1263, allocations: 5.521 MB / 0.6143 GB, free: 15.74 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008573/0.1272, allocations: 134.8 kB / 0.6145 GB, free: 15.61 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0008356/0.128, allocations: 0.5189 MB / 0.615 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002477/0.1305, allocations: 1.877 MB / 0.6168 GB, free: 13.19 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.001799/0.1323, allocations: 1.286 MB / 0.6181 GB, free: 11.9 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003561/0.1359, allocations: 4.704 MB / 0.6226 GB, free: 7.176 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008928/0.1368, allocations: 0.6915 MB / 0.6233 GB, free: 6.426 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002361/0.1391, allocations: 2.529 MB / 0.6258 GB, free: 3.891 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002249/0.1414, allocations: 1.983 MB / 0.6277 GB, free: 1.902 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0003369/0.1417, allocations: 312 kB / 0.628 GB, free: 1.598 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001187/0.1429, allocations: 0.8624 MB / 0.6289 GB, free: 0.7344 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004462/0.1433, allocations: 0.7004 MB / 0.6296 GB, free: 32 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.000999/0.1443, allocations: 1.126 MB / 0.6307 GB, free: 14.9 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002802/0.1471, allocations: 3.118 MB / 0.6337 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.1471, allocations: 0 / 0.6337 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of FrontEnd: time 6.51e-07/0.1471, allocations: 0 / 0.6337 GB, free: 11.77 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 1.718e-05/0.1472, allocations: 0 / 0.6337 GB, free: 11.77 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.004474/0.1516, allocations: 3.596 MB / 0.6372 GB, free: 8.102 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 2.502e-05/0.1517, allocations: 8.031 kB / 0.6372 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/0.1523, allocations: 0.5374 MB / 0.6377 GB, free: 7.555 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002481/0.1548, allocations: 2.028 MB / 0.6397 GB, free: 5.445 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.343e-05/0.1549, allocations: 144.3 kB / 0.6399 GB, free: 5.305 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002534/0.1552, allocations: 211.8 kB / 0.6401 GB, free: 5.098 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.1573, allocations: 1.451 MB / 0.6415 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.327e-05/0.1573, allocations: 0 / 0.6415 GB, free: 3.586 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001487/0.1574, allocations: 83.97 kB / 0.6416 GB, free: 3.504 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.955e-05/0.1575, allocations: 78.64 kB / 0.6416 GB, free: 3.426 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.1588, allocations: 0.7297 MB / 0.6423 GB, free: 2.688 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.218/0.3768, allocations: 6.231 MB / 0.6484 GB, free: 51.28 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3781, allocations: 1.221 MB / 0.6496 GB, free: 51.2 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006766/0.3788, allocations: 0.5175 MB / 0.6501 GB, free: 51.16 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002926/0.3817, allocations: 2.541 MB / 0.6526 GB, free: 50.58 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006647/0.3824, allocations: 0.6515 MB / 0.6532 GB, free: 50.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 2.875e-06/0.3824, allocations: 0 / 0.6532 GB, free: 50.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.004239/0.3866, allocations: 3.321 MB / 0.6565 GB, free: 49.94 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.741e-05/0.3867, allocations: 98.52 kB / 0.6566 GB, free: 49.84 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008326/0.3875, allocations: 1.432 MB / 0.658 GB, free: 49.56 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 9.542e-05/0.3876, allocations: 58.33 kB / 0.658 GB, free: 49.53 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005995/0.3882, allocations: 1.159 MB / 0.6592 GB, free: 49.12 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002877/0.3885, allocations: 0.6788 MB / 0.6598 GB, free: 48.68 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002971/0.3888, allocations: 318.7 kB / 0.6601 GB, free: 48.65 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.784e-05/0.3888, allocations: 480.3 kB / 0.6606 GB, free: 48.18 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.3891, allocations: 296.2 kB / 0.6609 GB, free: 48.11 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004159/0.3895, allocations: 0.5428 MB / 0.6614 GB, free: 47.84 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009875/0.3905, allocations: 1.044 MB / 0.6624 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.3905, allocations: 0 / 0.6624 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001791/0.3923, allocations: 1.656 MB / 0.664 GB, free: 47.12 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.943e-05/0.3923, allocations: 64.2 kB / 0.6641 GB, free: 47.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.3924, allocations: 5.234 kB / 0.6641 GB, free: 47.06 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009954/0.3934, allocations: 422.8 kB / 0.6645 GB, free: 47.04 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006985/0.3941, allocations: 317.4 kB / 0.6648 GB, free: 47.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003505/0.3976, allocations: 5.556 MB / 0.6702 GB, free: 43.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005595/0.3981, allocations: 57.14 kB / 0.6703 GB, free: 43.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.656e-05/0.3982, allocations: 57.44 kB / 0.6704 GB, free: 43.3 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.0004445/0.3987, allocations: 252.3 kB / 0.6706 GB, free: 43.14 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004261/0.3991, allocations: 331 kB / 0.6709 GB, free: 43 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.4022, allocations: 2.242 MB / 0.6731 GB, free: 42.66 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.148e-05/0.4022, allocations: 20.81 kB / 0.6731 GB, free: 42.66 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/0.4022, allocations: 12.12 kB / 0.6731 GB, free: 42.65 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.4022, allocations: 12.33 kB / 0.6731 GB, free: 42.65 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004187/0.4064, allocations: 3.33 MB / 0.6764 GB, free: 42.05 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.332e-06/0.4064, allocations: 3.125 kB / 0.6764 GB, free: 42.05 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/0.4072, allocations: 289.1 kB / 0.6767 GB, free: 42.05 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009773/0.4082, allocations: 444.9 kB / 0.6771 GB, free: 42.01 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.4083, allocations: 72.3 kB / 0.6772 GB, free: 42.01 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003309/0.4116, allocations: 5.579 MB / 0.6826 GB, free: 38.27 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.4116, allocations: 2.562 kB / 0.6826 GB, free: 38.27 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002358/0.4139, allocations: 2.263 MB / 0.6848 GB, free: 37.59 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004777/0.4144, allocations: 421.9 kB / 0.6852 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.4146, allocations: 45.38 kB / 0.6853 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004838/0.4151, allocations: 50.94 kB / 0.6853 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.4153, allocations: 178.4 kB / 0.6855 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.608e-05/0.4154, allocations: 54.94 kB / 0.6855 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005833/0.4159, allocations: 0.8674 MB / 0.6864 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.4159, allocations: 0 / 0.6864 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001434/0.4174, allocations: 0.7802 MB / 0.6872 GB, free: 37.21 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.0004874/0.4179, allocations: 386 kB / 0.6875 GB, free: 37.07 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001636/0.4195, allocations: 1.713 MB / 0.6892 GB, free: 36.42 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.4195, allocations: 0.875 kB / 0.6892 GB, free: 36.42 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001004/0.4205, allocations: 1.193 MB / 0.6904 GB, free: 36 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.4226, allocations: 0.9719 MB / 0.6913 GB, free: 35.87 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004657/0.4273, allocations: 4.247 MB / 0.6955 GB, free: 34.01 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.4276, allocations: 465.8 kB / 0.6959 GB, free: 33.89 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008532/0.4284, allocations: 390.3 kB / 0.6963 GB, free: 33.78 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001122/0.4296, allocations: 0.788 MB / 0.697 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of SimCode: time 1.021e-06/0.4296, allocations: 0.8125 kB / 0.697 GB, free: 33.71 MB / 0.5573 GB Notification: Performance of Templates: time 0.04424/0.4738, allocations: 49.48 MB / 0.7454 GB, free: 1.312 MB / 0.5573 GB " [Timeout remaining time 660] 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.8878542529419065]