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.0009554/0.0009554, allocations: 80.94 kB / 19.94 MB, free: 4.547 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.0009847/0.0009847, allocations: 177.3 kB / 23.36 MB, free: 1.133 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 1.008/1.008, allocations: 177.1 MB / 203.8 MB, free: 5.477 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.7354/0.7354, allocations: 118.7 MB / 378.9 MB, free: 1.316 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.583e-06/1.583e-06, allocations: 0 / 430.8 MB, free: 13.27 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.516e-05, allocations: 2.312 kB / 430.8 MB, free: 13.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.3561/0.3561, allocations: 140.7 MB / 0.5582 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.009928/0.3661, allocations: 5.706 MB / 0.5637 GB, free: 8.809 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002497/0.3686, allocations: 138.8 kB / 0.5639 GB, free: 8.672 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.3701, allocations: 0.5344 MB / 0.5644 GB, free: 8.133 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.005102/0.3752, allocations: 1.87 MB / 0.5662 GB, free: 6.25 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.003322/0.3785, allocations: 1.216 MB / 0.5674 GB, free: 5.031 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.005826/0.3844, allocations: 4.701 MB / 0.572 GB, free: 324 kB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.3856, allocations: 0.739 MB / 0.5727 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005429/0.391, allocations: 2.513 MB / 0.5752 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00365/0.3947, allocations: 1.968 MB / 0.5771 GB, free: 11.01 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0009468/0.3956, allocations: 312 kB / 0.5774 GB, free: 10.71 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002089/0.3977, allocations: 0.9366 MB / 0.5783 GB, free: 9.77 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0004645/0.3982, allocations: 0.7004 MB / 0.579 GB, free: 9.066 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0018/0.4, allocations: 1.126 MB / 0.5801 GB, free: 7.938 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.004746/0.4047, allocations: 3.122 MB / 0.5831 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.4047, allocations: 4 kB / 0.5831 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.366e-06/0.4047, allocations: 0 / 0.5831 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.745e-05/0.4048, allocations: 0 / 0.5831 GB, free: 4.801 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.004307/0.4091, allocations: 3.41 MB / 0.5865 GB, free: 1.332 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.4091, allocations: 12.03 kB / 0.5865 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006363/0.4098, allocations: 416.2 kB / 0.5869 GB, free: 0.9141 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.4121, allocations: 1.567 MB / 0.5884 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.721e-05/0.4122, allocations: 144.5 kB / 0.5885 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.4124, allocations: 215.8 kB / 0.5887 GB, free: 14.9 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.414, allocations: 1.442 MB / 0.5902 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.161e-05/0.4141, allocations: 4 kB / 0.5902 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.4142, allocations: 79.98 kB / 0.5902 GB, free: 13.33 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.426e-05/0.4142, allocations: 78.69 kB / 0.5903 GB, free: 13.25 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009637/0.4152, allocations: 0.6816 MB / 0.591 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006097/0.4213, allocations: 4.642 MB / 0.5955 GB, free: 7.84 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.4225, allocations: 1.104 MB / 0.5966 GB, free: 6.715 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005377/0.423, allocations: 486.8 kB / 0.5971 GB, free: 6.238 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002947/0.426, allocations: 1.867 MB / 0.5989 GB, free: 4.359 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007731/0.4267, allocations: 0.6375 MB / 0.5995 GB, free: 3.699 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=187): time 4.589e-06/0.4267, allocations: 0 / 0.5995 GB, free: 3.699 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.005066/0.4318, allocations: 2.917 MB / 0.6023 GB, free: 0.7305 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.301e-05/0.4319, allocations: 102.9 kB / 0.6024 GB, free: 0.6133 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.433, allocations: 1.351 MB / 0.6038 GB, free: 15.22 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 8.212e-05/0.4331, allocations: 57.7 kB / 0.6038 GB, free: 15.16 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004694/0.4336, allocations: 0.7409 MB / 0.6045 GB, free: 14.4 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004062/0.434, allocations: 0.6738 MB / 0.6052 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/0.4343, allocations: 291.4 kB / 0.6055 GB, free: 13.43 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 8.824e-05/0.4344, allocations: 305.1 kB / 0.6058 GB, free: 13.13 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.4347, allocations: 247.3 kB / 0.606 GB, free: 12.88 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004433/0.4352, allocations: 466.6 kB / 0.6064 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009993/0.4362, allocations: 0.9487 MB / 0.6074 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4362, allocations: 0 / 0.6074 GB, free: 11.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.001707/0.4379, allocations: 1.265 MB / 0.6086 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 5.517e-05/0.4379, allocations: 63.41 kB / 0.6087 GB, free: 9.961 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.438, allocations: 7.984 kB / 0.6087 GB, free: 9.953 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009746/0.4389, allocations: 393.4 kB / 0.6091 GB, free: 9.562 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007601/0.4397, allocations: 339.5 kB / 0.6094 GB, free: 9.23 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003842/0.4435, allocations: 4.197 MB / 0.6135 GB, free: 4.863 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.4446, allocations: 51.98 kB / 0.6135 GB, free: 4.812 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.413e-05/0.4447, allocations: 59.95 kB / 0.6136 GB, free: 4.754 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.0006066/0.4453, allocations: 204.4 kB / 0.6138 GB, free: 4.543 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003862/0.4456, allocations: 231.5 kB / 0.614 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002152/0.4478, allocations: 1.885 MB / 0.6158 GB, free: 2.398 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-05/0.4478, allocations: 20 kB / 0.6159 GB, free: 2.379 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.4478, allocations: 4 kB / 0.6159 GB, free: 2.375 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-05/0.4478, allocations: 15.91 kB / 0.6159 GB, free: 2.359 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003844/0.4517, allocations: 2.549 MB / 0.6184 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.4517, allocations: 4 kB / 0.6184 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006684/0.4524, allocations: 307.8 kB / 0.6187 GB, free: 15.45 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009477/0.4533, allocations: 427.9 kB / 0.6191 GB, free: 15.02 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.4534, allocations: 55.95 kB / 0.6191 GB, free: 14.96 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003672/0.4571, allocations: 4.204 MB / 0.6232 GB, free: 10.59 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.4571, allocations: 0 / 0.6232 GB, free: 10.59 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002478/0.4596, allocations: 1.778 MB / 0.625 GB, free: 8.766 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000624/0.4602, allocations: 270.3 kB / 0.6252 GB, free: 8.5 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001705/0.4604, allocations: 55.92 kB / 0.6253 GB, free: 8.445 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/0.4608, allocations: 47.98 kB / 0.6253 GB, free: 8.398 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002801/0.4611, allocations: 165.4 kB / 0.6255 GB, free: 8.238 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.461e-05/0.4612, allocations: 51.95 kB / 0.6255 GB, free: 8.188 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006359/0.4618, allocations: 0.7453 MB / 0.6263 GB, free: 7.418 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4618, allocations: 0 / 0.6263 GB, free: 7.418 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001616/0.4634, allocations: 0.7843 MB / 0.627 GB, free: 6.633 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.0006059/0.4641, allocations: 383.2 kB / 0.6274 GB, free: 6.246 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001853/0.4659, allocations: 1.499 MB / 0.6289 GB, free: 4.672 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.188e-05/0.4659, allocations: 20 kB / 0.6289 GB, free: 4.652 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.467, allocations: 1.025 MB / 0.6299 GB, free: 3.602 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002157/0.4692, allocations: 0.9578 MB / 0.6308 GB, free: 2.699 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00561/0.4748, allocations: 4.103 MB / 0.6348 GB, free: 14.52 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.4752, allocations: 451.7 kB / 0.6352 GB, free: 14.05 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.001377/0.4766, allocations: 401.4 kB / 0.6356 GB, free: 13.67 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001272/0.4778, allocations: 0.6747 MB / 0.6363 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of SimCode: time 2.024e-06/0.4779, allocations: 0 / 0.6363 GB, free: 12.98 MB / 0.5886 GB Notification: Performance of Templates: time 0.2635/0.7414, allocations: 48.47 MB / 0.6836 GB, free: 103.3 MB / 0.6042 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 -s gbode -gbm=radauIIA3 -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.113481620326638]