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.001117/0.001117, allocations: 93.06 kB / 19.65 MB, free: 272 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.0009448/0.0009448, allocations: 165 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.9993/0.9993, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.6738/0.6738, allocations: 118.6 MB / 378.6 MB, free: 1.492 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 2.004e-06/2.004e-06, allocations: 0 / 483.6 MB, free: 8.227 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.101e-05/2.301e-05, allocations: 5.125 kB / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.147/0.1471, allocations: 141.8 MB / 0.6108 GB, free: 2.398 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.009076/0.1561, allocations: 5.552 MB / 0.6162 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.1573, allocations: 134.8 kB / 0.6163 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.001065/0.1583, allocations: 0.5266 MB / 0.6168 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002875/0.1612, allocations: 1.862 MB / 0.6186 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002183/0.1634, allocations: 1.289 MB / 0.6199 GB, free: 9 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003823/0.1672, allocations: 4.704 MB / 0.6245 GB, free: 4.273 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009364/0.1682, allocations: 0.6915 MB / 0.6252 GB, free: 3.523 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002003/0.1702, allocations: 2.509 MB / 0.6276 GB, free: 1.008 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001764/0.1719, allocations: 1.96 MB / 0.6295 GB, free: 15.04 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003189/0.1722, allocations: 316 kB / 0.6298 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00113/0.1734, allocations: 0.8507 MB / 0.6307 GB, free: 13.88 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005088/0.1739, allocations: 0.7043 MB / 0.6314 GB, free: 13.17 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008354/0.1747, allocations: 1.126 MB / 0.6325 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002639/0.1773, allocations: 3.115 MB / 0.6355 GB, free: 8.918 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1774, allocations: 0 / 0.6355 GB, free: 8.918 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1774, allocations: 0 / 0.6355 GB, free: 8.918 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.477e-05/0.1774, allocations: 4 kB / 0.6355 GB, free: 8.914 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.004029/0.1814, allocations: 3.604 MB / 0.639 GB, free: 5.234 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.1815, allocations: 12.03 kB / 0.639 GB, free: 5.223 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000588/0.182, allocations: 0.5258 MB / 0.6395 GB, free: 4.695 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00212/0.1842, allocations: 2.067 MB / 0.6416 GB, free: 2.547 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.006e-05/0.1842, allocations: 144.3 kB / 0.6417 GB, free: 2.406 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002205/0.1845, allocations: 219.8 kB / 0.6419 GB, free: 2.191 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002242/0.1867, allocations: 1.584 MB / 0.6435 GB, free: 0.5469 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.1867, allocations: 0 / 0.6435 GB, free: 0.5469 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001071/0.1868, allocations: 76 kB / 0.6435 GB, free: 484 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.529e-05/0.1869, allocations: 82.62 kB / 0.6436 GB, free: 400 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2971/0.484, allocations: 0.9532 MB / 0.6445 GB, free: 51.17 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008257/0.4923, allocations: 6.543 MB / 0.6509 GB, free: 49.34 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.494, allocations: 1.318 MB / 0.6522 GB, free: 49.25 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008017/0.4948, allocations: 0.6066 MB / 0.6528 GB, free: 49.22 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003166/0.498, allocations: 2.546 MB / 0.6553 GB, free: 48.58 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009335/0.4989, allocations: 0.7071 MB / 0.656 GB, free: 48.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 5.139e-06/0.499, allocations: 0.5312 kB / 0.656 GB, free: 48.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.006033/0.505, allocations: 4.371 MB / 0.6603 GB, free: 47.25 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.505, allocations: 100.4 kB / 0.6604 GB, free: 47.15 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001389/0.5064, allocations: 1.474 MB / 0.6618 GB, free: 46.86 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.039e-05/0.5065, allocations: 62.84 kB / 0.6619 GB, free: 46.83 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006726/0.5072, allocations: 1.127 MB / 0.663 GB, free: 46.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004068/0.5076, allocations: 0.6668 MB / 0.6636 GB, free: 46.14 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004013/0.508, allocations: 309.2 kB / 0.6639 GB, free: 46.11 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.74e-05/0.508, allocations: 478 kB / 0.6644 GB, free: 45.64 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006651/0.5087, allocations: 370.8 kB / 0.6647 GB, free: 45.58 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008104/0.5095, allocations: 0.6171 MB / 0.6653 GB, free: 45.31 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.5113, allocations: 1.198 MB / 0.6665 GB, free: 44.98 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.5113, allocations: 2 kB / 0.6665 GB, free: 44.98 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003042/0.5143, allocations: 1.816 MB / 0.6683 GB, free: 44.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.882e-05/0.5144, allocations: 66.72 kB / 0.6683 GB, free: 44.55 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.5144, allocations: 3.891 kB / 0.6683 GB, free: 44.55 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001299/0.5157, allocations: 418.8 kB / 0.6687 GB, free: 44.52 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008757/0.5166, allocations: 325.9 kB / 0.669 GB, free: 44.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004605/0.5212, allocations: 5.735 MB / 0.6746 GB, free: 40.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006144/0.5218, allocations: 60.81 kB / 0.6747 GB, free: 40.75 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.5219, allocations: 74.89 kB / 0.6748 GB, free: 40.75 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.0004411/0.5224, allocations: 251.3 kB / 0.675 GB, free: 40.59 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004119/0.5228, allocations: 338.2 kB / 0.6753 GB, free: 40.45 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003303/0.5261, allocations: 2.353 MB / 0.6776 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.045e-05/0.5261, allocations: 25.44 kB / 0.6776 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-05/0.5261, allocations: 7.906 kB / 0.6777 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.5261, allocations: 11.55 kB / 0.6777 GB, free: 40.12 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004463/0.5306, allocations: 3.774 MB / 0.6814 GB, free: 39.49 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.5306, allocations: 0.9375 kB / 0.6814 GB, free: 39.49 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006208/0.5312, allocations: 292.9 kB / 0.6816 GB, free: 39.49 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009785/0.5322, allocations: 470.7 kB / 0.6821 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5323, allocations: 66.86 kB / 0.6821 GB, free: 39.45 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003745/0.536, allocations: 5.738 MB / 0.6877 GB, free: 35.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.536, allocations: 3.094 kB / 0.6878 GB, free: 35.66 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003222/0.5393, allocations: 2.482 MB / 0.6902 GB, free: 34.98 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005718/0.5398, allocations: 426.8 kB / 0.6906 GB, free: 34.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.54, allocations: 52.03 kB / 0.6906 GB, free: 34.85 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005001/0.5405, allocations: 60.75 kB / 0.6907 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/0.5408, allocations: 177.8 kB / 0.6909 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.288e-05/0.5408, allocations: 71.62 kB / 0.6909 GB, free: 34.84 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0008211/0.5417, allocations: 0.9485 MB / 0.6919 GB, free: 34.64 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8e-08/0.5417, allocations: 0 / 0.6919 GB, free: 34.64 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001633/0.5433, allocations: 0.7795 MB / 0.6926 GB, free: 34.59 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.0005634/0.5439, allocations: 393.5 kB / 0.693 GB, free: 34.45 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002163/0.546, allocations: 1.84 MB / 0.6948 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.546, allocations: 0 / 0.6948 GB, free: 33.77 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.5473, allocations: 1.263 MB / 0.696 GB, free: 33.18 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002207/0.5495, allocations: 0.9636 MB / 0.697 GB, free: 32.91 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00564/0.5551, allocations: 4.297 MB / 0.7012 GB, free: 30.77 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.5556, allocations: 467.2 kB / 0.7016 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001027/0.5566, allocations: 431.9 kB / 0.702 GB, free: 30.51 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003947/0.557, allocations: 212 kB / 0.7022 GB, free: 30.48 MB / 0.5573 GB Notification: Performance of SimCode: time 7.21e-07/0.557, allocations: 0.8438 kB / 0.7022 GB, free: 30.48 MB / 0.5573 GB Notification: Performance of Templates: time 0.04578/0.6028, allocations: 44.63 MB / 0.7458 GB, free: 0.957 MB / 0.5573 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.2752129710279405]