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.0009954/0.0009954, 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.001092/0.001092, 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 1.052/1.052, allocations: 177.1 MB / 203.4 MB, free: 5.637 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.6621/0.6621, allocations: 118.7 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 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.024e-06/2.024e-06, allocations: 0 / 483.6 MB, free: 8.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.497e-05, allocations: 3.406 kB / 483.6 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.127/0.127, allocations: 141.8 MB / 0.6108 GB, free: 2.434 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.007628/0.1346, allocations: 5.552 MB / 0.6162 GB, free: 12.87 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.1358, allocations: 138.8 kB / 0.6163 GB, free: 12.73 MB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.0009214/0.1367, allocations: 0.5227 MB / 0.6168 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.002679/0.1394, allocations: 1.866 MB / 0.6186 GB, free: 10.32 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.002008/0.1414, allocations: 1.29 MB / 0.6199 GB, free: 9.031 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.003363/0.1448, allocations: 4.712 MB / 0.6245 GB, free: 4.297 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007896/0.1456, allocations: 0.6877 MB / 0.6252 GB, free: 3.551 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002195/0.1478, allocations: 2.509 MB / 0.6276 GB, free: 1.035 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001723/0.1495, allocations: 1.956 MB / 0.6295 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003029/0.1498, allocations: 316 kB / 0.6298 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.1509, allocations: 0.8546 MB / 0.6307 GB, free: 13.91 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.000571/0.1515, allocations: 0.7082 MB / 0.6314 GB, free: 13.2 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.000883/0.1524, allocations: 1.122 MB / 0.6325 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.00272/0.1551, allocations: 3.122 MB / 0.6355 GB, free: 8.941 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1551, allocations: 0 / 0.6355 GB, free: 8.941 MB / 0.5573 GB Notification: Performance of FrontEnd: time 2.675e-06/0.1551, allocations: 4 kB / 0.6355 GB, free: 8.938 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 2.652e-05/0.1551, allocations: 0 / 0.6355 GB, free: 8.938 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.003898/0.159, allocations: 3.597 MB / 0.639 GB, free: 5.266 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.159, allocations: 8.031 kB / 0.639 GB, free: 5.258 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005908/0.1596, allocations: 0.5335 MB / 0.6396 GB, free: 4.723 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002025/0.1617, allocations: 2.059 MB / 0.6416 GB, free: 2.582 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.566e-05/0.1617, allocations: 148.3 kB / 0.6417 GB, free: 2.438 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002023/0.1619, allocations: 219.8 kB / 0.6419 GB, free: 2.223 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001977/0.1639, allocations: 1.584 MB / 0.6435 GB, free: 0.5781 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.862e-05/0.1639, allocations: 4 kB / 0.6435 GB, free: 0.5742 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.1641, allocations: 83.98 kB / 0.6435 GB, free: 0.4922 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.232e-05/0.1641, allocations: 74.69 kB / 0.6436 GB, free: 428 kB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2473/0.4114, allocations: 0.9532 MB / 0.6446 GB, free: 34.65 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007856/0.4193, allocations: 6.538 MB / 0.6509 GB, free: 32.82 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.421, allocations: 1.334 MB / 0.6522 GB, free: 32.73 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007651/0.4218, allocations: 0.6034 MB / 0.6528 GB, free: 32.69 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00298/0.4248, allocations: 2.541 MB / 0.6553 GB, free: 32.06 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009059/0.4257, allocations: 0.7053 MB / 0.656 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=187): time 3.266e-06/0.4257, allocations: 0 / 0.656 GB, free: 31.95 MB / 0.5573 GB Notification: Performance of matching and sorting (n=192): time 0.005748/0.4314, allocations: 4.374 MB / 0.6603 GB, free: 30.72 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.4315, allocations: 104.2 kB / 0.6604 GB, free: 30.62 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.4329, allocations: 1.469 MB / 0.6618 GB, free: 30.34 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.275e-05/0.4329, allocations: 59.09 kB / 0.6619 GB, free: 30.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005838/0.4335, allocations: 1.123 MB / 0.663 GB, free: 29.97 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003605/0.4339, allocations: 0.6725 MB / 0.6636 GB, free: 29.61 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003648/0.4342, allocations: 309.3 kB / 0.6639 GB, free: 29.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.368e-05/0.4343, allocations: 478.6 kB / 0.6644 GB, free: 29.12 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005868/0.4349, allocations: 371.2 kB / 0.6647 GB, free: 29.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007062/0.4356, allocations: 0.6129 MB / 0.6653 GB, free: 28.78 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.4371, allocations: 1.193 MB / 0.6665 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.4371, allocations: 1.531 kB / 0.6665 GB, free: 28.46 MB / 0.5573 GB Notification: Performance of matching and sorting (n=218) (initialization): time 0.00273/0.4399, allocations: 1.821 MB / 0.6683 GB, free: 28.09 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.4399, allocations: 65.56 kB / 0.6683 GB, free: 28.02 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4399, allocations: 4.469 kB / 0.6683 GB, free: 28.02 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.4411, allocations: 434.1 kB / 0.6687 GB, free: 27.99 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008067/0.4419, allocations: 327.7 kB / 0.6691 GB, free: 27.99 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004214/0.4461, allocations: 5.727 MB / 0.6746 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005589/0.4467, allocations: 60.14 kB / 0.6747 GB, free: 24.22 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.4468, allocations: 78.27 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.0004095/0.4472, allocations: 245.3 kB / 0.675 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003948/0.4476, allocations: 338.3 kB / 0.6753 GB, free: 23.92 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003206/0.4508, allocations: 2.36 MB / 0.6776 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.917e-05/0.4508, allocations: 22.97 kB / 0.6777 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.4508, allocations: 8.375 kB / 0.6777 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/0.4509, allocations: 12.59 kB / 0.6777 GB, free: 23.59 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004247/0.4551, allocations: 3.773 MB / 0.6814 GB, free: 22.96 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.232e-06/0.4551, allocations: 4.594 kB / 0.6814 GB, free: 22.96 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.4557, allocations: 289.7 kB / 0.6816 GB, free: 22.96 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009282/0.4566, allocations: 455.7 kB / 0.6821 GB, free: 22.92 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001016/0.4567, allocations: 68.44 kB / 0.6821 GB, free: 22.92 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.4603, allocations: 5.747 MB / 0.6878 GB, free: 19.12 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4603, allocations: 7.906 kB / 0.6878 GB, free: 19.12 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002962/0.4632, allocations: 2.491 MB / 0.6902 GB, free: 18.44 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005304/0.4637, allocations: 421.9 kB / 0.6906 GB, free: 18.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.4639, allocations: 51.92 kB / 0.6907 GB, free: 18.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004862/0.4644, allocations: 54.78 kB / 0.6907 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.4646, allocations: 171.8 kB / 0.6909 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.809e-05/0.4647, allocations: 70.33 kB / 0.6909 GB, free: 18.3 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007945/0.4655, allocations: 0.9447 MB / 0.6919 GB, free: 18.11 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.4655, allocations: 1.203 kB / 0.6919 GB, free: 18.11 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001277/0.4668, allocations: 0.784 MB / 0.6926 GB, free: 18.06 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.0004895/0.4673, allocations: 388.3 kB / 0.693 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001954/0.4692, allocations: 1.848 MB / 0.6948 GB, free: 17.27 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4692, allocations: 0 / 0.6948 GB, free: 17.27 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001165/0.4704, allocations: 1.265 MB / 0.696 GB, free: 16.84 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.4725, allocations: 0.9671 MB / 0.697 GB, free: 16.72 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005255/0.4778, allocations: 4.28 MB / 0.7012 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4782, allocations: 468.7 kB / 0.7016 GB, free: 14.75 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001035/0.4792, allocations: 431.4 kB / 0.702 GB, free: 14.63 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003569/0.4795, allocations: 213.3 kB / 0.7022 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of SimCode: time 7.71e-07/0.4795, allocations: 1 kB / 0.7022 GB, free: 14.62 MB / 0.5573 GB Notification: Performance of Templates: time 0.04538/0.5249, allocations: 44.63 MB / 0.7458 GB, free: 5.637 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.072076586075127]