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.001218/0.001218, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.001107/0.001107, allocations: 169 kB / 23.02 MB, free: 1.547 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.9807/0.9807, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.6884/0.6884, allocations: 118.6 MB / 378.6 MB, free: 1.48 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.903e-06/1.903e-06, allocations: 0 / 483.6 MB, free: 8.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.669e-05/2.859e-05, allocations: 10.11 kB / 483.6 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1335/0.1336, allocations: 141.8 MB / 0.6108 GB, free: 2.414 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.009049/0.1426, allocations: 5.556 MB / 0.6162 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002308/0.1449, allocations: 142.8 kB / 0.6163 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.1462, allocations: 0.5227 MB / 0.6168 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.003848/0.1501, allocations: 1.87 MB / 0.6187 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.1528, allocations: 1.293 MB / 0.6199 GB, free: 8.996 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.005272/0.158, allocations: 4.7 MB / 0.6245 GB, free: 4.273 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001037/0.1591, allocations: 0.6877 MB / 0.6252 GB, free: 3.527 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003665/0.1627, allocations: 2.529 MB / 0.6276 GB, free: 0.9922 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002572/0.1653, allocations: 1.983 MB / 0.6296 GB, free: 15 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0006851/0.166, allocations: 316 kB / 0.6299 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001456/0.1674, allocations: 0.8507 MB / 0.6307 GB, free: 13.84 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0004045/0.1678, allocations: 0.7043 MB / 0.6314 GB, free: 13.14 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.001354/0.1692, allocations: 1.122 MB / 0.6325 GB, free: 12.01 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.003744/0.1729, allocations: 3.118 MB / 0.6355 GB, free: 8.883 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.1729, allocations: 0 / 0.6355 GB, free: 8.883 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1729, allocations: 8 kB / 0.6356 GB, free: 8.875 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.297e-05/0.173, allocations: 0 / 0.6356 GB, free: 8.875 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.004956/0.178, allocations: 3.604 MB / 0.6391 GB, free: 5.195 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.178, allocations: 8.031 kB / 0.6391 GB, free: 5.188 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006672/0.1787, allocations: 0.5297 MB / 0.6396 GB, free: 4.656 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002221/0.1809, allocations: 2.063 MB / 0.6416 GB, free: 2.512 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.517e-05/0.181, allocations: 152.3 kB / 0.6418 GB, free: 2.363 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000212/0.1812, allocations: 215.8 kB / 0.642 GB, free: 2.152 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002314/0.1835, allocations: 1.576 MB / 0.6435 GB, free: 0.5156 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.083e-05/0.1836, allocations: 3.938 kB / 0.6435 GB, free: 0.5117 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001084/0.1837, allocations: 83.98 kB / 0.6436 GB, free: 440 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.825e-05/0.1837, allocations: 74.69 kB / 0.6437 GB, free: 364 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2485/0.4322, allocations: 0.96 MB / 0.6446 GB, free: 51.24 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007433/0.4396, allocations: 6.532 MB / 0.651 GB, free: 49.42 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001634/0.4413, allocations: 1.325 MB / 0.6523 GB, free: 49.33 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007525/0.442, allocations: 0.603 MB / 0.6529 GB, free: 49.29 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002865/0.4449, allocations: 2.546 MB / 0.6553 GB, free: 48.66 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008298/0.4457, allocations: 0.7032 MB / 0.656 GB, free: 48.55 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 3.517e-06/0.4457, allocations: 1.031 kB / 0.656 GB, free: 48.55 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.005715/0.4514, allocations: 4.376 MB / 0.6603 GB, free: 47.32 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.4515, allocations: 102.6 kB / 0.6604 GB, free: 47.23 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001312/0.4528, allocations: 1.477 MB / 0.6618 GB, free: 46.94 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.281e-05/0.4529, allocations: 59.73 kB / 0.6619 GB, free: 46.91 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006019/0.4535, allocations: 1.125 MB / 0.663 GB, free: 46.57 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004039/0.4539, allocations: 0.6738 MB / 0.6637 GB, free: 46.21 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003725/0.4543, allocations: 305.4 kB / 0.6639 GB, free: 46.19 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.104e-05/0.4543, allocations: 482.3 kB / 0.6644 GB, free: 45.72 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006131/0.4549, allocations: 371.6 kB / 0.6648 GB, free: 45.65 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000697/0.4556, allocations: 0.6102 MB / 0.6654 GB, free: 45.38 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.4571, allocations: 1.196 MB / 0.6665 GB, free: 45.06 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.4571, allocations: 4.375 kB / 0.6665 GB, free: 45.06 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002822/0.46, allocations: 1.821 MB / 0.6683 GB, free: 44.68 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.603e-05/0.46, allocations: 62.77 kB / 0.6684 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.46, allocations: 3.188 kB / 0.6684 GB, free: 44.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.4613, allocations: 425.4 kB / 0.6688 GB, free: 44.6 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008157/0.4621, allocations: 321.3 kB / 0.6691 GB, free: 44.6 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004566/0.4667, allocations: 5.738 MB / 0.6747 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009405/0.4676, allocations: 60.22 kB / 0.6747 GB, free: 40.82 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.4677, allocations: 71.25 kB / 0.6748 GB, free: 40.82 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 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1,pulse1.count,$PRE.pulse1.count,pulse1.T_start,$PRE.pulse1.T_start,$whenCondition2) * 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 {(2,10,100.0%), (4,28,93.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005418/0.4683, allocations: 253 kB / 0.6751 GB, free: 40.66 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005292/0.4688, allocations: 333.7 kB / 0.6754 GB, free: 40.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003125/0.4719, allocations: 2.351 MB / 0.6777 GB, free: 40.2 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.4719, allocations: 23.53 kB / 0.6777 GB, free: 40.19 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/0.472, allocations: 11.88 kB / 0.6777 GB, free: 40.19 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.472, allocations: 14 kB / 0.6777 GB, free: 40.19 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004713/0.4767, allocations: 3.77 MB / 0.6814 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.4767, allocations: 3.5 kB / 0.6814 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005964/0.4773, allocations: 290.9 kB / 0.6817 GB, free: 39.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009576/0.4782, allocations: 473.2 kB / 0.6821 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.4784, allocations: 66.36 kB / 0.6822 GB, free: 39.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.482, allocations: 5.739 MB / 0.6878 GB, free: 35.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.482, allocations: 6.469 kB / 0.6878 GB, free: 35.73 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00332/0.4853, allocations: 2.478 MB / 0.6902 GB, free: 35.06 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000782/0.4861, allocations: 430.6 kB / 0.6906 GB, free: 34.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.4863, allocations: 50.27 kB / 0.6907 GB, free: 34.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.4868, allocations: 55.59 kB / 0.6907 GB, free: 34.92 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002897/0.4871, allocations: 174.8 kB / 0.6909 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.244e-05/0.4872, allocations: 72.7 kB / 0.691 GB, free: 34.91 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0008509/0.4881, allocations: 0.9474 MB / 0.6919 GB, free: 34.72 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.01e-07/0.4881, allocations: 0 / 0.6919 GB, free: 34.72 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001604/0.4897, allocations: 0.7825 MB / 0.6927 GB, free: 34.67 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.000565/0.4902, allocations: 393.5 kB / 0.693 GB, free: 34.52 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002363/0.4926, allocations: 1.839 MB / 0.6948 GB, free: 33.83 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.4926, allocations: 3.125 kB / 0.6948 GB, free: 33.83 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001319/0.4939, allocations: 1.263 MB / 0.6961 GB, free: 33.23 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.4963, allocations: 0.967 MB / 0.697 GB, free: 32.96 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005188/0.5015, allocations: 4.297 MB / 0.7012 GB, free: 30.82 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.5018, allocations: 464.6 kB / 0.7017 GB, free: 30.68 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001044/0.5029, allocations: 430.2 kB / 0.7021 GB, free: 30.57 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/0.5033, allocations: 213.5 kB / 0.7023 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of SimCode: time 1.463e-06/0.5033, allocations: 0 / 0.7023 GB, free: 30.54 MB / 0.5573 GB Notification: Performance of Templates: time 0.04733/0.5506, allocations: 47.8 MB / 0.7489 GB, free: 13.79 MB / 0.573 GB " [Timeout remaining time 659] 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.139988855924457]