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.001528/0.001528, 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.001739/0.001739, 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.9807/0.9807, 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 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.6634/0.6634, allocations: 118.6 MB / 378.9 MB, free: 1.477 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 1.262e-06/1.262e-06, allocations: 0 / 483.6 MB, free: 8.305 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.387e-05/1.513e-05, allocations: 2.312 kB / 483.6 MB, free: 8.301 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.396/0.396, allocations: 230.5 MB / 0.6974 GB, free: 11.54 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.01611/0.4121, allocations: 22.59 MB / 0.7194 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001834/0.414, allocations: 135.3 kB / 0.7196 GB, free: 11.26 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002795/0.4168, allocations: 1.514 MB / 0.721 GB, free: 11.09 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.00479/0.4216, allocations: 2.963 MB / 0.7239 GB, free: 10.35 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.003231/0.4248, allocations: 2.043 MB / 0.7259 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.003232/0.428, allocations: 4.71 MB / 0.7305 GB, free: 8.805 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009841/0.429, allocations: 0.6941 MB / 0.7312 GB, free: 24.62 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00237/0.4314, allocations: 2.593 MB / 0.7337 GB, free: 23.64 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001768/0.4331, allocations: 1.973 MB / 0.7357 GB, free: 23.17 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0003913/0.4335, allocations: 314.2 kB / 0.736 GB, free: 23.17 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003623/0.4372, allocations: 2.968 MB / 0.7389 GB, free: 22.57 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003206/0.4375, allocations: 0.7084 MB / 0.7395 GB, free: 22.04 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008592/0.4383, allocations: 1.118 MB / 0.7406 GB, free: 21.52 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.003498/0.4418, allocations: 3.977 MB / 0.7445 GB, free: 19.41 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.4418, allocations: 0 / 0.7445 GB, free: 19.41 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4418, allocations: 0 / 0.7445 GB, free: 19.41 MB / 0.573 GB Notification: Performance of Transformations before backend: time 5.536e-05/0.4419, allocations: 2.438 kB / 0.7445 GB, free: 19.41 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.003643/0.4455, allocations: 3.751 MB / 0.7482 GB, free: 16.75 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.4456, allocations: 8.844 kB / 0.7482 GB, free: 16.75 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005522/0.4461, allocations: 0.5382 MB / 0.7487 GB, free: 16.48 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.448, allocations: 2.069 MB / 0.7507 GB, free: 15.12 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.346e-05/0.4481, allocations: 145.9 kB / 0.7509 GB, free: 15.05 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.4482, allocations: 212.2 kB / 0.7511 GB, free: 14.97 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001985/0.4502, allocations: 1.58 MB / 0.7526 GB, free: 14.05 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.004e-05/0.4503, allocations: 5.312 kB / 0.7526 GB, free: 14.05 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.4504, allocations: 87.69 kB / 0.7527 GB, free: 13.98 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.169e-05/0.4504, allocations: 73.47 kB / 0.7528 GB, free: 13.98 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001566/0.452, allocations: 0.9589 MB / 0.7537 GB, free: 13.63 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006021/0.458, allocations: 6.564 MB / 0.7601 GB, free: 8.766 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.4595, allocations: 1.305 MB / 0.7614 GB, free: 8.176 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007635/0.4603, allocations: 0.5985 MB / 0.762 GB, free: 7.941 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003016/0.4633, allocations: 2.709 MB / 0.7646 GB, free: 5.941 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008631/0.4642, allocations: 0.7269 MB / 0.7653 GB, free: 5.508 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 3.096e-06/0.4642, allocations: 3.031 kB / 0.7654 GB, free: 5.508 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.005763/0.4699, allocations: 4.433 MB / 0.7697 GB, free: 3.191 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.47, allocations: 108.3 kB / 0.7698 GB, free: 3.09 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001158/0.4711, allocations: 1.482 MB / 0.7712 GB, free: 2.23 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 7.763e-05/0.4712, allocations: 55.67 kB / 0.7713 GB, free: 2.176 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005553/0.4718, allocations: 1.122 MB / 0.7724 GB, free: 1.176 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003451/0.4721, allocations: 0.6871 MB / 0.7731 GB, free: 0.5742 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000309/0.4724, allocations: 312.7 kB / 0.7733 GB, free: 400 kB / 0.573 GB Notification: Performance of setup shared object (initialization): time 9.738e-05/0.4725, allocations: 483.4 kB / 0.7738 GB, free: 15.92 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005379/0.4731, allocations: 380.7 kB / 0.7742 GB, free: 15.75 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006648/0.4737, allocations: 0.6177 MB / 0.7748 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/0.4752, allocations: 1.224 MB / 0.776 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4752, allocations: 4 kB / 0.776 GB, free: 14.36 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.002384/0.4776, allocations: 1.863 MB / 0.7778 GB, free: 12.49 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 3.947e-05/0.4776, allocations: 63.39 kB / 0.7779 GB, free: 12.42 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.677e-06/0.4776, allocations: 4 kB / 0.7779 GB, free: 12.41 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009537/0.4786, allocations: 431.5 kB / 0.7783 GB, free: 12 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006796/0.4792, allocations: 342.5 kB / 0.7786 GB, free: 11.68 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004078/0.4833, allocations: 5.73 MB / 0.7842 GB, free: 5.738 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005091/0.4838, allocations: 59.97 kB / 0.7842 GB, free: 5.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.711e-05/0.4839, allocations: 83.95 kB / 0.7843 GB, free: 5.598 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.0004035/0.4843, allocations: 245.8 kB / 0.7846 GB, free: 5.367 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.4847, allocations: 338.2 kB / 0.7849 GB, free: 5.035 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003005/0.4877, allocations: 2.433 MB / 0.7873 GB, free: 2.605 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-05/0.4877, allocations: 24.05 kB / 0.7873 GB, free: 2.582 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.4877, allocations: 11.97 kB / 0.7873 GB, free: 2.57 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.4877, allocations: 15.91 kB / 0.7873 GB, free: 2.555 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004373/0.4921, allocations: 3.842 MB / 0.7911 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4921, allocations: 4 kB / 0.7911 GB, free: 14.71 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006255/0.4928, allocations: 303.5 kB / 0.7914 GB, free: 14.43 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009352/0.4937, allocations: 450.8 kB / 0.7918 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.4938, allocations: 71.95 kB / 0.7919 GB, free: 13.91 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00438/0.4982, allocations: 5.739 MB / 0.7975 GB, free: 7.953 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4982, allocations: 7.969 kB / 0.7975 GB, free: 7.945 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00407/0.5022, allocations: 2.537 MB / 0.7999 GB, free: 5.387 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006665/0.5029, allocations: 434.2 kB / 0.8004 GB, free: 4.961 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.5031, allocations: 51.89 kB / 0.8004 GB, free: 4.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007011/0.5038, allocations: 63.95 kB / 0.8005 GB, free: 4.848 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002917/0.5041, allocations: 180.7 kB / 0.8006 GB, free: 4.676 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.5043, allocations: 71.95 kB / 0.8007 GB, free: 4.605 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001084/0.5053, allocations: 0.9413 MB / 0.8016 GB, free: 3.641 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9.1e-08/0.5053, allocations: 4 kB / 0.8016 GB, free: 3.637 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00201/0.5073, allocations: 0.9518 MB / 0.8026 GB, free: 2.684 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.001257/0.5086, allocations: 0.9647 MB / 0.8035 GB, free: 1.781 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002678/0.5113, allocations: 1.863 MB / 0.8053 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.5113, allocations: 8.062 kB / 0.8053 GB, free: 15.86 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001669/0.513, allocations: 1.28 MB / 0.8066 GB, free: 14.57 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.5159, allocations: 1 MB / 0.8076 GB, free: 13.6 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006291/0.5222, allocations: 4.297 MB / 0.8118 GB, free: 9.23 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004048/0.5226, allocations: 474.4 kB / 0.8122 GB, free: 8.738 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.00112/0.5237, allocations: 457.4 kB / 0.8126 GB, free: 8.312 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004547/0.5241, allocations: 216.4 kB / 0.8129 GB, free: 8.098 MB / 0.6198 GB Notification: Performance of SimCode: time 7.02e-07/0.5241, allocations: 0 / 0.8129 GB, free: 8.098 MB / 0.6198 GB Notification: Performance of Templates: time 0.06164/0.5858, allocations: 54.1 MB / 0.8657 GB, free: 2.965 MB / 0.6667 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.244957275921479]