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.0008193/0.0008193, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001144/0.001963, allocations: 435.8 kB / 10.33 MB, free: 368 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.001106/0.001106, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001337/0.002443, allocations: 463.6 kB / 11.68 MB, free: 2.484 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.9558/0.9558, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1063/1.062, allocations: 53.65 MB / 243.2 MB, free: 15.59 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.7149/0.7149, allocations: 118.6 MB / 362.6 MB, free: 1.184 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06707/0.7819, allocations: 35.83 MB / 398.4 MB, free: 13.26 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 1.443e-06/1.443e-06, allocations: 0 / 399.7 MB, free: 11.98 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.066e-05/2.21e-05, allocations: 2.312 kB / 399.7 MB, free: 11.97 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3612/0.3612, allocations: 141.1 MB / 0.5281 GB, free: 7 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.007084/0.3683, allocations: 5.751 MB / 0.5338 GB, free: 1.25 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008171/0.3691, allocations: 134.8 kB / 0.5339 GB, free: 1.117 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0006937/0.3698, allocations: 0.5345 MB / 0.5344 GB, free: 0.5781 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.002094/0.3719, allocations: 1.85 MB / 0.5362 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.3736, allocations: 1.211 MB / 0.5374 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.003218/0.3768, allocations: 4.725 MB / 0.542 GB, free: 8.758 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007247/0.3775, allocations: 0.7346 MB / 0.5427 GB, free: 7.945 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.3799, allocations: 2.753 MB / 0.5454 GB, free: 5.168 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001636/0.3815, allocations: 1.948 MB / 0.5473 GB, free: 3.215 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.000311/0.3818, allocations: 316 kB / 0.5476 GB, free: 2.906 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.383, allocations: 0.9405 MB / 0.5485 GB, free: 1.965 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003229/0.3833, allocations: 0.5372 MB / 0.5491 GB, free: 1.426 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0007581/0.384, allocations: 0.9592 MB / 0.55 GB, free: 476 kB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002177/0.3862, allocations: 2.913 MB / 0.5529 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.116e-05/0.3862, allocations: 0 / 0.5529 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3862, allocations: 0 / 0.5529 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.495e-05/0.3863, allocations: 0 / 0.5529 GB, free: 13.54 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.003711/0.39, allocations: 4.172 MB / 0.5569 GB, free: 9.297 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 2.733e-05/0.39, allocations: 8.031 kB / 0.5569 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004714/0.3905, allocations: 408.2 kB / 0.5573 GB, free: 8.891 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00173/0.3922, allocations: 1.574 MB / 0.5589 GB, free: 7.223 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.838e-05/0.3923, allocations: 144.5 kB / 0.559 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001769/0.3924, allocations: 215.9 kB / 0.5592 GB, free: 6.871 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001363/0.3938, allocations: 1.449 MB / 0.5606 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.3938, allocations: 0 / 0.5606 GB, free: 5.375 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.27e-05/0.3939, allocations: 79.98 kB / 0.5607 GB, free: 5.297 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.406e-05/0.394, allocations: 78.69 kB / 0.5608 GB, free: 5.219 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008434/0.3948, allocations: 0.6777 MB / 0.5614 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004582/0.3994, allocations: 4.653 MB / 0.566 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009928/0.4004, allocations: 1.098 MB / 0.5671 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004819/0.4009, allocations: 490.6 kB / 0.5675 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002228/0.4031, allocations: 1.857 MB / 0.5693 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005841/0.4037, allocations: 0.6456 MB / 0.57 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 2.745e-06/0.4037, allocations: 0 / 0.57 GB, free: 11.67 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.003631/0.4073, allocations: 2.913 MB / 0.5728 GB, free: 8.703 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.4074, allocations: 102.9 kB / 0.5729 GB, free: 8.582 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008099/0.4082, allocations: 1.355 MB / 0.5742 GB, free: 7.188 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 7.152e-05/0.4083, allocations: 57.7 kB / 0.5743 GB, free: 7.125 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003381/0.4086, allocations: 0.7448 MB / 0.575 GB, free: 6.363 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/0.4089, allocations: 0.6699 MB / 0.5757 GB, free: 5.688 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002621/0.4092, allocations: 291.4 kB / 0.5759 GB, free: 5.395 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.4092, allocations: 301.1 kB / 0.5762 GB, free: 5.098 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002832/0.4095, allocations: 251.3 kB / 0.5765 GB, free: 4.84 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.4099, allocations: 471.5 kB / 0.5769 GB, free: 4.32 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008065/0.4107, allocations: 0.9565 MB / 0.5779 GB, free: 3.297 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.4107, allocations: 4 kB / 0.5779 GB, free: 3.293 MB / 0.5417 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001315/0.412, allocations: 1.262 MB / 0.5791 GB, free: 1.988 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 4.412e-05/0.4121, allocations: 63.41 kB / 0.5792 GB, free: 1.914 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.4121, allocations: 4 kB / 0.5792 GB, free: 1.91 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007473/0.4128, allocations: 397.1 kB / 0.5795 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006874/0.4135, allocations: 379.4 kB / 0.5799 GB, free: 1.145 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003019/0.4165, allocations: 4.201 MB / 0.584 GB, free: 12.77 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/0.4169, allocations: 55.97 kB / 0.5841 GB, free: 12.71 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.543e-05/0.417, allocations: 55.97 kB / 0.5841 GB, free: 12.66 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.0003449/0.4174, allocations: 210.5 kB / 0.5843 GB, free: 12.44 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002662/0.4176, allocations: 227.5 kB / 0.5845 GB, free: 12.22 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.4195, allocations: 1.882 MB / 0.5864 GB, free: 10.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4195, allocations: 20 kB / 0.5864 GB, free: 10.28 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4195, allocations: 8 kB / 0.5864 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.4195, allocations: 7.969 kB / 0.5864 GB, free: 10.26 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002807/0.4223, allocations: 2.56 MB / 0.5889 GB, free: 7.648 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.4223, allocations: 4 kB / 0.5889 GB, free: 7.645 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006137/0.4229, allocations: 343.5 kB / 0.5892 GB, free: 7.309 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.4233, allocations: 282.2 kB / 0.5895 GB, free: 7.031 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000735/0.4241, allocations: 424.4 kB / 0.5899 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.43e-05/0.4241, allocations: 55.95 kB / 0.59 GB, free: 6.555 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002911/0.427, allocations: 4.218 MB / 0.5941 GB, free: 2.16 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.427, allocations: 3.938 kB / 0.5941 GB, free: 2.156 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001765/0.4288, allocations: 1.77 MB / 0.5958 GB, free: 348 kB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001513/0.429, allocations: 47.94 kB / 0.5959 GB, free: 300 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.4294, allocations: 55.97 kB / 0.5959 GB, free: 244 kB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.4295, allocations: 161.4 kB / 0.5961 GB, free: 80 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.225e-05/0.4296, allocations: 55.95 kB / 0.5961 GB, free: 24 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005004/0.4301, allocations: 0.7414 MB / 0.5968 GB, free: 15.26 MB / 0.573 GB Notification: Performance of sort global known variables: time 9e-08/0.4301, allocations: 0 / 0.5968 GB, free: 15.26 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001042/0.4311, allocations: 0.7804 MB / 0.5976 GB, free: 14.48 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.0004561/0.4316, allocations: 387.1 kB / 0.598 GB, free: 14.09 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001356/0.433, allocations: 1.491 MB / 0.5994 GB, free: 12.53 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-05/0.433, allocations: 30.62 kB / 0.5995 GB, free: 12.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009087/0.4339, allocations: 1.037 MB / 0.6005 GB, free: 11.44 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.4358, allocations: 1.16 MB / 0.6016 GB, free: 10.33 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03136/0.4672, allocations: 4.283 MB / 0.6058 GB, free: 5.973 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.4676, allocations: 465.3 kB / 0.6062 GB, free: 5.488 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001086/0.4687, allocations: 396.2 kB / 0.6066 GB, free: 5.109 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00115/0.4698, allocations: 0.6747 MB / 0.6073 GB, free: 4.414 MB / 0.573 GB Notification: Performance of SimCode: time 1.252e-06/0.4698, allocations: 0 / 0.6073 GB, free: 4.414 MB / 0.573 GB Notification: Performance of Templates: time 0.2354/0.7052, allocations: 50.13 MB / 0.6562 GB, free: 106.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.884807093068957]