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.001099/0.001099, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001068/0.001068, allocations: 173 kB / 23.49 MB, free: 1.059 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.9866/0.9866, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.7547/0.7547, allocations: 118.6 MB / 378.9 MB, free: 1.508 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.956e-06/2.956e-06, allocations: 0 / 483.6 MB, free: 8.25 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.017e-05/3.312e-05, allocations: 2.312 kB / 483.6 MB, free: 8.246 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.457/0.457, allocations: 230.5 MB / 0.6974 GB, free: 11.58 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.02013/0.4771, allocations: 22.59 MB / 0.7194 GB, free: 11.3 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002846/0.48, allocations: 138.3 kB / 0.7196 GB, free: 11.3 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004049/0.484, allocations: 1.51 MB / 0.721 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.007791/0.4918, allocations: 2.964 MB / 0.7239 GB, free: 10.39 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005017/0.4969, allocations: 2.046 MB / 0.7259 GB, free: 10.2 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.00607/0.5029, allocations: 4.712 MB / 0.7305 GB, free: 8.852 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.5045, allocations: 0.6892 MB / 0.7312 GB, free: 24.67 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00403/0.5085, allocations: 2.593 MB / 0.7337 GB, free: 23.7 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002388/0.5109, allocations: 1.97 MB / 0.7357 GB, free: 23.23 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0005656/0.5115, allocations: 313.8 kB / 0.736 GB, free: 23.23 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004862/0.5163, allocations: 2.968 MB / 0.7389 GB, free: 22.62 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0005518/0.5169, allocations: 0.7075 MB / 0.7395 GB, free: 22.1 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.5184, allocations: 1.119 MB / 0.7406 GB, free: 21.57 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.007952/0.5264, allocations: 3.979 MB / 0.7445 GB, free: 19.46 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.5264, allocations: 0 / 0.7445 GB, free: 19.46 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.623e-06/0.5264, allocations: 0 / 0.7445 GB, free: 19.46 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001125/0.5265, allocations: 0 / 0.7445 GB, free: 19.46 MB / 0.573 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.00472/0.5312, allocations: 3.76 MB / 0.7482 GB, free: 16.8 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.5313, allocations: 8.531 kB / 0.7482 GB, free: 16.8 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000703/0.532, allocations: 0.5287 MB / 0.7487 GB, free: 16.54 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.5342, allocations: 2.07 MB / 0.7507 GB, free: 15.17 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.191e-05/0.5343, allocations: 148.5 kB / 0.7509 GB, free: 15.1 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.5345, allocations: 216.4 kB / 0.7511 GB, free: 15.02 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00229/0.5368, allocations: 1.583 MB / 0.7526 GB, free: 14.09 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.103e-05/0.5368, allocations: 3.094 kB / 0.7526 GB, free: 14.09 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.537, allocations: 77.12 kB / 0.7527 GB, free: 14.04 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.763e-05/0.537, allocations: 78.62 kB / 0.7528 GB, free: 14.02 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001944/0.539, allocations: 0.9551 MB / 0.7537 GB, free: 13.68 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007579/0.5466, allocations: 6.572 MB / 0.7601 GB, free: 8.809 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/0.5482, allocations: 1.299 MB / 0.7614 GB, free: 8.227 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008064/0.549, allocations: 0.5936 MB / 0.762 GB, free: 7.996 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00365/0.5527, allocations: 2.722 MB / 0.7646 GB, free: 5.988 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009544/0.5536, allocations: 0.7231 MB / 0.7653 GB, free: 5.555 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 4.849e-06/0.5536, allocations: 0 / 0.7653 GB, free: 5.555 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.006603/0.5602, allocations: 4.429 MB / 0.7697 GB, free: 3.242 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.5e-05/0.5603, allocations: 115.7 kB / 0.7698 GB, free: 3.137 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.5616, allocations: 1.474 MB / 0.7712 GB, free: 2.285 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.78e-05/0.5617, allocations: 59.77 kB / 0.7713 GB, free: 2.227 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006375/0.5623, allocations: 1.116 MB / 0.7724 GB, free: 1.23 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004175/0.5627, allocations: 0.6922 MB / 0.773 GB, free: 0.6289 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003098/0.563, allocations: 315.5 kB / 0.7733 GB, free: 452 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.5632, allocations: 476.8 kB / 0.7738 GB, free: 15.97 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005582/0.5637, allocations: 379.2 kB / 0.7742 GB, free: 15.81 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007103/0.5644, allocations: 0.6309 MB / 0.7748 GB, free: 15.38 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001773/0.5662, allocations: 1.224 MB / 0.776 GB, free: 14.37 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.5662, allocations: 4 kB / 0.776 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.002746/0.5689, allocations: 1.859 MB / 0.7778 GB, free: 12.51 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 4.845e-05/0.569, allocations: 67.39 kB / 0.7779 GB, free: 12.43 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.569, allocations: 7.984 kB / 0.7779 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001083/0.5701, allocations: 417.5 kB / 0.7783 GB, free: 12.01 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007333/0.5708, allocations: 342.6 kB / 0.7786 GB, free: 11.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004831/0.5756, allocations: 5.743 MB / 0.7842 GB, free: 5.742 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001253/0.5769, allocations: 55.97 kB / 0.7843 GB, free: 5.688 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001419/0.577, allocations: 75.97 kB / 0.7843 GB, free: 5.613 MB / 0.5886 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 (180): * Single equations (assignments): 176 * 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.0006164/0.5777, allocations: 251.3 kB / 0.7846 GB, free: 5.375 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005386/0.5782, allocations: 338.2 kB / 0.7849 GB, free: 5.043 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003132/0.5813, allocations: 2.432 MB / 0.7873 GB, free: 2.625 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.5813, allocations: 20 kB / 0.7873 GB, free: 2.605 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.5814, allocations: 8 kB / 0.7873 GB, free: 2.598 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.696e-05/0.5814, allocations: 15.89 kB / 0.7873 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005182/0.5865, allocations: 3.842 MB / 0.7911 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-06/0.5866, allocations: 4 kB / 0.7911 GB, free: 14.74 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006247/0.5872, allocations: 303.5 kB / 0.7913 GB, free: 14.46 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.5882, allocations: 457.9 kB / 0.7918 GB, free: 14.01 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.5883, allocations: 71.95 kB / 0.7919 GB, free: 13.94 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004478/0.5928, allocations: 5.741 MB / 0.7975 GB, free: 7.973 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5928, allocations: 7.125 kB / 0.7975 GB, free: 7.969 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003626/0.5964, allocations: 2.531 MB / 0.7999 GB, free: 5.41 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000726/0.5971, allocations: 441.3 kB / 0.8004 GB, free: 4.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001933/0.5973, allocations: 55.89 kB / 0.8004 GB, free: 4.926 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005248/0.5979, allocations: 55.97 kB / 0.8005 GB, free: 4.871 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.5981, allocations: 180.8 kB / 0.8006 GB, free: 4.699 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.306e-05/0.5982, allocations: 71.95 kB / 0.8007 GB, free: 4.629 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0009195/0.5991, allocations: 0.9452 MB / 0.8016 GB, free: 3.66 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5991, allocations: 0 / 0.8016 GB, free: 3.66 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002012/0.6011, allocations: 0.9557 MB / 0.8026 GB, free: 2.703 MB / 0.6042 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 (170): * Single equations (assignments): 164 * 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.001185/0.6023, allocations: 0.9595 MB / 0.8035 GB, free: 1.805 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002643/0.605, allocations: 1.874 MB / 0.8053 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.605, allocations: 0 / 0.8053 GB, free: 15.88 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.6063, allocations: 1.283 MB / 0.8066 GB, free: 14.59 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002414/0.6087, allocations: 0.9858 MB / 0.8075 GB, free: 13.63 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005987/0.6147, allocations: 4.311 MB / 0.8118 GB, free: 9.254 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.6151, allocations: 467.8 kB / 0.8122 GB, free: 8.766 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.001303/0.6164, allocations: 465.4 kB / 0.8126 GB, free: 8.332 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003838/0.6168, allocations: 216.4 kB / 0.8129 GB, free: 8.117 MB / 0.6198 GB Notification: Performance of SimCode: time 1.964e-06/0.6168, allocations: 0 / 0.8129 GB, free: 8.117 MB / 0.6198 GB Notification: Performance of Templates: time 0.0616/0.6784, allocations: 54.1 MB / 0.8657 GB, free: 2.996 MB / 0.6667 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.5811071649659425]