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.0008963/0.0008963, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001158/0.002054, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007036/0.0007036, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008711/0.001575, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9601/0.9601, allocations: 177.2 MB / 189.7 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1055/1.066, allocations: 53.66 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.7409/0.7409, allocations: 118.7 MB / 362.9 MB, free: 1.035 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05937/0.8002, allocations: 35.85 MB / 398.7 MB, free: 13.09 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/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="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="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 2.024e-06/2.024e-06, allocations: 0 / 400 MB, free: 11.79 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.844e-05/3.047e-05, allocations: 5.688 kB / 400 MB, free: 11.79 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3452/0.3452, allocations: 141.1 MB / 0.5284 GB, free: 6.707 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.008424/0.3537, allocations: 5.74 MB / 0.5341 GB, free: 0.9648 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001271/0.3549, allocations: 134.8 kB / 0.5342 GB, free: 0.832 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0008278/0.3558, allocations: 0.5345 MB / 0.5347 GB, free: 300 kB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.003031/0.3588, allocations: 1.858 MB / 0.5365 GB, free: 14.42 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.3607, allocations: 1.204 MB / 0.5377 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002996/0.3637, allocations: 4.725 MB / 0.5423 GB, free: 8.473 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009627/0.3647, allocations: 0.7307 MB / 0.543 GB, free: 7.664 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.3669, allocations: 2.766 MB / 0.5457 GB, free: 4.879 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00167/0.3686, allocations: 1.941 MB / 0.5476 GB, free: 2.934 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0002989/0.3689, allocations: 316 kB / 0.5479 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001234/0.3701, allocations: 0.9443 MB / 0.5488 GB, free: 1.68 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003204/0.3704, allocations: 0.5411 MB / 0.5494 GB, free: 1.137 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.001011/0.3714, allocations: 0.9592 MB / 0.5503 GB, free: 180 kB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002159/0.3736, allocations: 2.9 MB / 0.5531 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.3736, allocations: 0 / 0.5531 GB, free: 13.27 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.433e-06/0.3736, allocations: 4 kB / 0.5531 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.626e-05/0.3736, allocations: 0 / 0.5531 GB, free: 13.26 MB / 0.5261 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.00372/0.3774, allocations: 4.172 MB / 0.5572 GB, free: 9.016 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.616e-05/0.3774, allocations: 8.031 kB / 0.5572 GB, free: 9.008 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000465/0.3779, allocations: 416.2 kB / 0.5576 GB, free: 8.602 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.3795, allocations: 1.57 MB / 0.5592 GB, free: 6.941 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.709e-05/0.3796, allocations: 152.5 kB / 0.5593 GB, free: 6.793 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.3798, allocations: 211.9 kB / 0.5595 GB, free: 6.586 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.3811, allocations: 1.447 MB / 0.5609 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.7e-05/0.3812, allocations: 0 / 0.5609 GB, free: 5.094 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.35e-05/0.3813, allocations: 80 kB / 0.561 GB, free: 5.016 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.244e-05/0.3813, allocations: 74.69 kB / 0.5611 GB, free: 4.941 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008201/0.3821, allocations: 0.6816 MB / 0.5617 GB, free: 4.246 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004679/0.3868, allocations: 4.651 MB / 0.5663 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009823/0.3878, allocations: 1.104 MB / 0.5673 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004764/0.3883, allocations: 474.7 kB / 0.5678 GB, free: 13.92 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002193/0.3905, allocations: 1.872 MB / 0.5696 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005764/0.391, allocations: 0.6317 MB / 0.5702 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 2.425e-06/0.391, allocations: 0 / 0.5702 GB, free: 11.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.008303/0.3993, allocations: 3.207 MB / 0.5734 GB, free: 8.129 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.3994, allocations: 98.92 kB / 0.5735 GB, free: 8.012 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001663/0.4011, allocations: 1.359 MB / 0.5748 GB, free: 6.613 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4012, allocations: 57.7 kB / 0.5749 GB, free: 6.551 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006485/0.4018, allocations: 0.741 MB / 0.5756 GB, free: 5.793 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000619/0.4025, allocations: 0.666 MB / 0.5762 GB, free: 5.121 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005359/0.403, allocations: 295.4 kB / 0.5765 GB, free: 4.824 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.958e-05/0.4031, allocations: 305.1 kB / 0.5768 GB, free: 4.523 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.4036, allocations: 251.3 kB / 0.577 GB, free: 4.266 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006299/0.4042, allocations: 466.5 kB / 0.5775 GB, free: 3.746 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001436/0.4057, allocations: 0.9643 MB / 0.5784 GB, free: 2.719 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.4057, allocations: 0 / 0.5784 GB, free: 2.719 MB / 0.5417 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.00265/0.4083, allocations: 1.273 MB / 0.5797 GB, free: 1.406 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.777e-05/0.4084, allocations: 63.39 kB / 0.5797 GB, free: 1.332 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.4084, allocations: 7.938 kB / 0.5797 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0015/0.4099, allocations: 395.4 kB / 0.5801 GB, free: 0.9336 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.4112, allocations: 379.4 kB / 0.5805 GB, free: 0.5625 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005245/0.4164, allocations: 4.208 MB / 0.5846 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.4174, allocations: 59.97 kB / 0.5846 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.4175, allocations: 55.97 kB / 0.5847 GB, free: 12.06 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.0006427/0.4182, allocations: 212.8 kB / 0.5849 GB, free: 11.84 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004149/0.4186, allocations: 227.5 kB / 0.5851 GB, free: 11.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002297/0.4209, allocations: 1.882 MB / 0.587 GB, free: 9.699 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-05/0.4209, allocations: 20 kB / 0.587 GB, free: 9.68 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/0.4209, allocations: 4 kB / 0.587 GB, free: 9.676 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.4209, allocations: 15.95 kB / 0.587 GB, free: 9.66 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003834/0.4248, allocations: 2.548 MB / 0.5895 GB, free: 7.055 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.4248, allocations: 7.984 kB / 0.5895 GB, free: 7.047 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006598/0.4254, allocations: 335.5 kB / 0.5898 GB, free: 6.719 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005778/0.426, allocations: 282.5 kB / 0.5901 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008915/0.4269, allocations: 435.8 kB / 0.5905 GB, free: 6.012 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.427, allocations: 59.89 kB / 0.5905 GB, free: 5.953 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.4305, allocations: 4.197 MB / 0.5946 GB, free: 1.574 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.107e-05/0.4305, allocations: 7.938 kB / 0.5947 GB, free: 1.566 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.4327, allocations: 1.786 MB / 0.5964 GB, free: 15.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002726/0.433, allocations: 47.94 kB / 0.5964 GB, free: 15.69 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008518/0.4338, allocations: 47.98 kB / 0.5965 GB, free: 15.64 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000259/0.4341, allocations: 169.4 kB / 0.5967 GB, free: 15.47 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.817e-05/0.4342, allocations: 51.95 kB / 0.5967 GB, free: 15.42 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0007357/0.4349, allocations: 0.7375 MB / 0.5974 GB, free: 14.66 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4349, allocations: 0 / 0.5974 GB, free: 14.66 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001812/0.4367, allocations: 0.7804 MB / 0.5982 GB, free: 13.88 MB / 0.573 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.0006167/0.4373, allocations: 387.1 kB / 0.5986 GB, free: 13.49 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002061/0.4394, allocations: 1.528 MB / 0.6 GB, free: 11.9 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.541e-05/0.4395, allocations: 34.61 kB / 0.6001 GB, free: 11.86 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001456/0.4409, allocations: 1.152 MB / 0.6012 GB, free: 10.69 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0052/0.4461, allocations: 6.401 MB / 0.6075 GB, free: 3.117 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03289/0.479, allocations: 4.279 MB / 0.6116 GB, free: 14.76 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000589/0.4796, allocations: 461.3 kB / 0.6121 GB, free: 14.27 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0014/0.481, allocations: 396.6 kB / 0.6125 GB, free: 13.89 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001372/0.4824, allocations: 0.6747 MB / 0.6131 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of SimCode: time 2.254e-06/0.4824, allocations: 0 / 0.6131 GB, free: 13.2 MB / 0.5886 GB Notification: Performance of Templates: time 0.2703/0.7527, allocations: 50.11 MB / 0.662 GB, free: 111.1 MB / 0.6042 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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.888102356344461]