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.00139/0.00139, allocations: 81.86 kB / 19.87 MB, free: 4.625 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.001564/0.001564, allocations: 173.7 kB / 23.27 MB, free: 1.227 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.9474/0.9474, allocations: 177.1 MB / 203.7 MB, free: 5.504 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.6485/0.6485, allocations: 118.6 MB / 378.9 MB, free: 1.371 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.543e-06/1.543e-06, allocations: 0 / 484 MB, free: 8.074 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.056e-05/1.21e-05, allocations: 4.984 kB / 484.1 MB, free: 8.07 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1196/0.1196, allocations: 138.7 MB / 0.6082 GB, free: 5.262 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007783/0.1274, allocations: 5.529 MB / 0.6136 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001215/0.1286, allocations: 138.8 kB / 0.6137 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0007975/0.1294, allocations: 0.5111 MB / 0.6142 GB, free: 15.07 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002705/0.1321, allocations: 1.881 MB / 0.616 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002048/0.1342, allocations: 1.29 MB / 0.6173 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003338/0.1375, allocations: 4.696 MB / 0.6219 GB, free: 7.16 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007129/0.1382, allocations: 0.6954 MB / 0.6226 GB, free: 6.406 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002308/0.1405, allocations: 2.521 MB / 0.625 GB, free: 3.879 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.1421, allocations: 1.987 MB / 0.627 GB, free: 1.887 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0002694/0.1424, allocations: 316 kB / 0.6273 GB, free: 1.578 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.1434, allocations: 0.8584 MB / 0.6281 GB, free: 0.7188 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0003934/0.1438, allocations: 0.7043 MB / 0.6288 GB, free: 12 kB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0009385/0.1447, allocations: 1.122 MB / 0.6299 GB, free: 14.89 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002443/0.1472, allocations: 3.122 MB / 0.6329 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1472, allocations: 0 / 0.6329 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.493e-06/0.1472, allocations: 0 / 0.6329 GB, free: 11.75 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.489e-05/0.1472, allocations: 0 / 0.6329 GB, free: 11.75 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.004024/0.1512, allocations: 3.596 MB / 0.6364 GB, free: 8.082 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1513, allocations: 8.031 kB / 0.6365 GB, free: 8.074 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008646/0.1522, allocations: 0.5336 MB / 0.637 GB, free: 7.539 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.1541, allocations: 2.028 MB / 0.639 GB, free: 5.43 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.087e-05/0.1542, allocations: 152.3 kB / 0.6391 GB, free: 5.281 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001979/0.1544, allocations: 211.8 kB / 0.6393 GB, free: 5.074 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001486/0.1559, allocations: 1.443 MB / 0.6407 GB, free: 3.57 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.001e-05/0.1559, allocations: 3.938 kB / 0.6407 GB, free: 3.566 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001045/0.156, allocations: 84 kB / 0.6408 GB, free: 3.484 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.853e-05/0.1561, allocations: 74.69 kB / 0.6409 GB, free: 3.41 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000925/0.157, allocations: 0.7336 MB / 0.6416 GB, free: 2.668 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2258/0.3828, allocations: 6.227 MB / 0.6477 GB, free: 50.73 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.3842, allocations: 1.223 MB / 0.6489 GB, free: 50.64 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.3848, allocations: 0.5246 MB / 0.6494 GB, free: 50.61 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00295/0.3878, allocations: 2.57 MB / 0.6519 GB, free: 50.02 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006822/0.3885, allocations: 0.6505 MB / 0.6525 GB, free: 49.91 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 2.595e-06/0.3885, allocations: 1.094 kB / 0.6525 GB, free: 49.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.004073/0.3925, allocations: 3.312 MB / 0.6557 GB, free: 49.38 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.3926, allocations: 100.5 kB / 0.6558 GB, free: 49.29 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008795/0.3935, allocations: 1.44 MB / 0.6573 GB, free: 49 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.237e-05/0.3935, allocations: 58.73 kB / 0.6573 GB, free: 48.96 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004786/0.394, allocations: 1.161 MB / 0.6584 GB, free: 48.63 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002902/0.3943, allocations: 0.6692 MB / 0.6591 GB, free: 48.28 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002861/0.3946, allocations: 320.6 kB / 0.6594 GB, free: 48.25 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.526e-05/0.3946, allocations: 480.7 kB / 0.6599 GB, free: 47.78 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003141/0.3949, allocations: 297.7 kB / 0.6601 GB, free: 47.71 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/0.3953, allocations: 0.5474 MB / 0.6607 GB, free: 47.44 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009068/0.3962, allocations: 1.039 MB / 0.6617 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3963, allocations: 8.484 kB / 0.6617 GB, free: 47.11 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001934/0.3982, allocations: 1.654 MB / 0.6633 GB, free: 46.74 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.3982, allocations: 65.64 kB / 0.6634 GB, free: 46.68 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3982, allocations: 3.156 kB / 0.6634 GB, free: 46.68 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009596/0.3992, allocations: 409.5 kB / 0.6638 GB, free: 46.65 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006599/0.3998, allocations: 319.1 kB / 0.6641 GB, free: 46.65 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003434/0.4033, allocations: 5.565 MB / 0.6695 GB, free: 42.92 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005063/0.4038, allocations: 55.73 kB / 0.6696 GB, free: 42.92 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.092e-05/0.4039, allocations: 61.48 kB / 0.6696 GB, free: 42.92 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.0003953/0.4043, allocations: 259.2 kB / 0.6699 GB, free: 42.75 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/0.4047, allocations: 335 kB / 0.6702 GB, free: 42.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002803/0.4075, allocations: 2.227 MB / 0.6724 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.022e-05/0.4075, allocations: 20.47 kB / 0.6724 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.4075, allocations: 8.734 kB / 0.6724 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.4075, allocations: 13.58 kB / 0.6724 GB, free: 42.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004026/0.4115, allocations: 3.34 MB / 0.6757 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.4115, allocations: 3.156 kB / 0.6757 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006351/0.4122, allocations: 286.2 kB / 0.6759 GB, free: 41.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009335/0.4131, allocations: 444.8 kB / 0.6764 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.4132, allocations: 68.31 kB / 0.6764 GB, free: 41.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003134/0.4164, allocations: 5.587 MB / 0.6819 GB, free: 37.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4164, allocations: 2.906 kB / 0.6819 GB, free: 37.91 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/0.4185, allocations: 2.264 MB / 0.6841 GB, free: 37.26 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000412/0.4189, allocations: 419.2 kB / 0.6845 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001495/0.4191, allocations: 43.22 kB / 0.6845 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004498/0.4195, allocations: 54.16 kB / 0.6846 GB, free: 37.13 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.4197, allocations: 175.7 kB / 0.6848 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.061e-05/0.4198, allocations: 60.77 kB / 0.6848 GB, free: 37.12 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005381/0.4203, allocations: 0.8622 MB / 0.6857 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of sort global known variables: time 9e-08/0.4203, allocations: 0 / 0.6857 GB, free: 36.93 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001174/0.4215, allocations: 0.7847 MB / 0.6864 GB, free: 36.93 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.0004309/0.4219, allocations: 399.6 kB / 0.6868 GB, free: 36.79 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001464/0.4234, allocations: 1.707 MB / 0.6885 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4234, allocations: 1.031 kB / 0.6885 GB, free: 36.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009337/0.4243, allocations: 1.199 MB / 0.6896 GB, free: 35.72 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/0.4262, allocations: 0.9765 MB / 0.6906 GB, free: 35.58 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004642/0.4309, allocations: 4.241 MB / 0.6947 GB, free: 33.73 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.4312, allocations: 471.1 kB / 0.6952 GB, free: 33.61 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008895/0.4321, allocations: 395.1 kB / 0.6956 GB, free: 33.49 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001156/0.4333, allocations: 0.7823 MB / 0.6963 GB, free: 33.43 MB / 0.5573 GB Notification: Performance of SimCode: time 6.72e-07/0.4333, allocations: 0.8125 kB / 0.6963 GB, free: 33.43 MB / 0.5573 GB Notification: Performance of Templates: time 0.05453/0.4878, allocations: 48.65 MB / 0.7438 GB, free: 1.695 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: 4.70887959189713]