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.0009892/0.0009892, allocations: 92.22 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.0009869/0.0009869, allocations: 173 kB / 23.03 MB, free: 1.543 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.011/1.011, 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 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.681/0.681, allocations: 118.6 MB / 378.6 MB, free: 1.52 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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_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_ThermofluidStream.FlowControl.Tests.Switch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 483.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.067e-05/3.274e-05, allocations: 5.547 kB / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.1402/0.1402, allocations: 141.8 MB / 0.6108 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.00802/0.1482, allocations: 5.548 MB / 0.6162 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.1495, allocations: 142.8 kB / 0.6163 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0009302/0.1504, allocations: 0.5227 MB / 0.6168 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.1532, allocations: 1.874 MB / 0.6187 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002238/0.1555, allocations: 1.289 MB / 0.6199 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00414/0.1596, allocations: 4.7 MB / 0.6245 GB, free: 4.309 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001141/0.1608, allocations: 0.6915 MB / 0.6252 GB, free: 3.559 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003697/0.1645, allocations: 2.529 MB / 0.6276 GB, free: 1.023 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001774/0.1662, allocations: 1.995 MB / 0.6296 GB, free: 15.02 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002846/0.1665, allocations: 316 kB / 0.6299 GB, free: 14.71 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001232/0.1678, allocations: 0.8468 MB / 0.6307 GB, free: 13.86 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003761/0.1681, allocations: 0.7082 MB / 0.6314 GB, free: 13.15 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.000887/0.169, allocations: 1.118 MB / 0.6325 GB, free: 12.03 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.002446/0.1715, allocations: 3.118 MB / 0.6356 GB, free: 8.902 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1715, allocations: 4 kB / 0.6356 GB, free: 8.898 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.586e-06/0.1715, allocations: 4 kB / 0.6356 GB, free: 8.895 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.268e-05/0.1715, allocations: 3.938 kB / 0.6356 GB, free: 8.891 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.0037/0.1752, allocations: 3.596 MB / 0.6391 GB, free: 5.219 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.1752, allocations: 12.03 kB / 0.6391 GB, free: 5.207 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006418/0.1759, allocations: 0.5296 MB / 0.6396 GB, free: 4.676 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.1778, allocations: 2.063 MB / 0.6416 GB, free: 2.531 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.222e-05/0.1779, allocations: 152.3 kB / 0.6418 GB, free: 2.383 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/0.1781, allocations: 207.8 kB / 0.642 GB, free: 2.18 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001917/0.18, allocations: 1.584 MB / 0.6435 GB, free: 0.5352 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.1801, allocations: 3.938 kB / 0.6435 GB, free: 0.5312 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.1802, allocations: 80 kB / 0.6436 GB, free: 464 kB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-05/0.1802, allocations: 74.69 kB / 0.6437 GB, free: 388 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2342/0.4144, allocations: 0.9565 MB / 0.6446 GB, free: 34.64 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007113/0.4216, allocations: 6.535 MB / 0.651 GB, free: 32.8 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001644/0.4232, allocations: 1.332 MB / 0.6523 GB, free: 32.71 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007453/0.4239, allocations: 0.6093 MB / 0.6529 GB, free: 32.68 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002854/0.4268, allocations: 2.54 MB / 0.6554 GB, free: 32.05 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008719/0.4277, allocations: 0.7079 MB / 0.656 GB, free: 31.94 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 4.498e-06/0.4277, allocations: 0.9688 kB / 0.656 GB, free: 31.94 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.005392/0.4331, allocations: 4.372 MB / 0.6603 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.925e-05/0.4331, allocations: 100.5 kB / 0.6604 GB, free: 30.61 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.4343, allocations: 1.473 MB / 0.6618 GB, free: 30.32 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.68e-05/0.4344, allocations: 57.89 kB / 0.6619 GB, free: 30.29 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005648/0.4349, allocations: 1.127 MB / 0.663 GB, free: 29.96 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003603/0.4353, allocations: 0.6677 MB / 0.6637 GB, free: 29.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00036/0.4357, allocations: 310.2 kB / 0.664 GB, free: 29.57 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.749e-05/0.4357, allocations: 481.4 kB / 0.6644 GB, free: 29.11 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005937/0.4363, allocations: 370.3 kB / 0.6648 GB, free: 29.04 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007261/0.437, allocations: 0.6133 MB / 0.6654 GB, free: 28.77 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001509/0.4385, allocations: 1.195 MB / 0.6665 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.4385, allocations: 1.469 kB / 0.6665 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.002585/0.4411, allocations: 1.817 MB / 0.6683 GB, free: 28.07 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.4412, allocations: 67.94 kB / 0.6684 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.4412, allocations: 3.969 kB / 0.6684 GB, free: 28.01 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.4423, allocations: 433.1 kB / 0.6688 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/0.443, allocations: 321.5 kB / 0.6691 GB, free: 27.98 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00426/0.4473, allocations: 5.729 MB / 0.6747 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005587/0.4479, allocations: 58.42 kB / 0.6747 GB, free: 24.21 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.448, allocations: 73.69 kB / 0.6748 GB, free: 24.21 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.0004086/0.4484, allocations: 260.4 kB / 0.6751 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004074/0.4488, allocations: 336.4 kB / 0.6754 GB, free: 23.91 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003274/0.4521, allocations: 2.352 MB / 0.6777 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.918e-05/0.4521, allocations: 24.72 kB / 0.6777 GB, free: 23.58 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/0.4521, allocations: 8.766 kB / 0.6777 GB, free: 23.58 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.4521, allocations: 10.19 kB / 0.6777 GB, free: 23.58 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004137/0.4562, allocations: 3.773 MB / 0.6814 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.4563, allocations: 7.688 kB / 0.6814 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005678/0.4568, allocations: 294.1 kB / 0.6817 GB, free: 22.95 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009071/0.4577, allocations: 460.4 kB / 0.6821 GB, free: 22.91 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001162/0.4578, allocations: 67.14 kB / 0.6822 GB, free: 22.91 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003485/0.4613, allocations: 5.747 MB / 0.6878 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4613, allocations: 3.188 kB / 0.6878 GB, free: 19.11 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002785/0.4641, allocations: 2.487 MB / 0.6902 GB, free: 18.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.4646, allocations: 426.3 kB / 0.6907 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001587/0.4648, allocations: 43.38 kB / 0.6907 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/0.4652, allocations: 62.06 kB / 0.6908 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/0.4655, allocations: 175.3 kB / 0.6909 GB, free: 18.29 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.767e-05/0.4655, allocations: 69.17 kB / 0.691 GB, free: 18.29 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007357/0.4663, allocations: 0.9472 MB / 0.6919 GB, free: 18.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.1e-08/0.4663, allocations: 1.031 kB / 0.6919 GB, free: 18.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001207/0.4675, allocations: 0.7819 MB / 0.6927 GB, free: 18.05 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.0004853/0.468, allocations: 390.1 kB / 0.693 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001826/0.4698, allocations: 1.85 MB / 0.6949 GB, free: 17.26 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4698, allocations: 0.9375 kB / 0.6949 GB, free: 17.26 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.4709, allocations: 1.263 MB / 0.6961 GB, free: 16.83 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.4729, allocations: 0.9639 MB / 0.697 GB, free: 16.71 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004859/0.4778, allocations: 4.285 MB / 0.7012 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.4781, allocations: 471.9 kB / 0.7017 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0008736/0.479, allocations: 427.3 kB / 0.7021 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.4793, allocations: 211.9 kB / 0.7023 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of SimCode: time 1.142e-06/0.4793, allocations: 0.8125 kB / 0.7023 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of Templates: time 0.0558/0.5351, allocations: 47.78 MB / 0.7489 GB, free: 2.426 MB / 0.573 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 -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: 5.220708235166967]