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.002261/0.002261, allocations: 81.5 kB / 19.44 MB, free: 344 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.002879/0.002879, allocations: 173.6 kB / 22.76 MB, free: 1.66 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.645/1.645, allocations: 177.1 MB / 203.1 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 178] 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 1.115/1.115, allocations: 118.6 MB / 378.2 MB, free: 1.453 MB / 346.7 MB " [Timeout remaining time 178] 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.174e-06/2.174e-06, allocations: 0 / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.114e-05/3.331e-05, allocations: 2.312 kB / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6279/0.6279, allocations: 230.2 MB / 0.6963 GB, free: 11.54 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.03254/0.6605, allocations: 22.58 MB / 0.7184 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004316/0.6648, allocations: 137.7 kB / 0.7185 GB, free: 11.27 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.006233/0.671, allocations: 1.517 MB / 0.72 GB, free: 11.1 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.682, allocations: 2.963 MB / 0.7229 GB, free: 10.36 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.007346/0.6894, allocations: 2.043 MB / 0.7249 GB, free: 10.16 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.007212/0.6966, allocations: 4.709 MB / 0.7295 GB, free: 8.82 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002831/0.6994, allocations: 0.6891 MB / 0.7302 GB, free: 24.64 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007175/0.7066, allocations: 2.597 MB / 0.7327 GB, free: 23.68 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004182/0.7108, allocations: 1.965 MB / 0.7346 GB, free: 23.21 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.001298/0.7121, allocations: 316.3 kB / 0.7349 GB, free: 23.21 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008435/0.7205, allocations: 2.969 MB / 0.7378 GB, free: 22.6 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001373/0.7219, allocations: 0.7046 MB / 0.7385 GB, free: 22.14 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.003741/0.7256, allocations: 1.115 MB / 0.7396 GB, free: 21.7 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.0148/0.7404, allocations: 5.249 MB / 0.7447 GB, free: 18.87 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 1.314e-05/0.7404, allocations: 0 / 0.7447 GB, free: 18.87 MB / 0.573 GB Notification: Performance of FrontEnd: time 4.068e-06/0.7404, allocations: 0 / 0.7447 GB, free: 18.87 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0003365/0.7408, allocations: 0 / 0.7447 GB, free: 18.87 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.01506/0.7558, allocations: 4.014 MB / 0.7486 GB, free: 16.07 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.7559, allocations: 8.531 kB / 0.7486 GB, free: 16.07 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/0.758, allocations: 0.5302 MB / 0.7492 GB, free: 15.81 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005603/0.7636, allocations: 2.097 MB / 0.7512 GB, free: 14.43 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.7638, allocations: 144.1 kB / 0.7513 GB, free: 14.37 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008426/0.7647, allocations: 215.5 kB / 0.7515 GB, free: 14.29 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006326/0.771, allocations: 2.267 MB / 0.7538 GB, free: 12.95 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.747e-05/0.771, allocations: 5.594 kB / 0.7538 GB, free: 12.95 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.7712, allocations: 79.61 kB / 0.7538 GB, free: 12.89 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001007/0.7713, allocations: 74.08 kB / 0.7539 GB, free: 12.88 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003797/0.7751, allocations: 1.672 MB / 0.7555 GB, free: 12.14 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01727/0.7924, allocations: 8.527 MB / 0.7639 GB, free: 6.195 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003556/0.796, allocations: 1.697 MB / 0.7655 GB, free: 5.316 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001795/0.7978, allocations: 0.8851 MB / 0.7664 GB, free: 4.918 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007868/0.8056, allocations: 3.078 MB / 0.7694 GB, free: 2.707 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002218/0.8078, allocations: 1.07 MB / 0.7704 GB, free: 2.086 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 6.773e-06/0.8079, allocations: 0 / 0.7704 GB, free: 2.086 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.01579/0.8236, allocations: 5.74 MB / 0.7761 GB, free: 13.55 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.8237, allocations: 106.9 kB / 0.7762 GB, free: 13.43 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.827, allocations: 1.973 MB / 0.7781 GB, free: 11.41 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004086/0.8275, allocations: 57.7 kB / 0.7781 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001516/0.829, allocations: 1.223 MB / 0.7793 GB, free: 10.11 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001162/0.8301, allocations: 0.7457 MB / 0.7801 GB, free: 9.375 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007073/0.8308, allocations: 385.2 kB / 0.7804 GB, free: 8.988 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002836/0.8311, allocations: 476.8 kB / 0.7809 GB, free: 8.52 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.8327, allocations: 0.6476 MB / 0.7815 GB, free: 7.859 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.8345, allocations: 0.956 MB / 0.7824 GB, free: 6.824 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003866/0.8384, allocations: 1.94 MB / 0.7843 GB, free: 4.816 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.8384, allocations: 0 / 0.7843 GB, free: 4.816 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005979/0.8444, allocations: 2.503 MB / 0.7868 GB, free: 2.316 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.697e-05/0.8444, allocations: 63.41 kB / 0.7868 GB, free: 2.242 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.694e-05/0.8445, allocations: 7.984 kB / 0.7869 GB, free: 2.234 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002194/0.8467, allocations: 0.5183 MB / 0.7874 GB, free: 1.711 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001626/0.8483, allocations: 338.6 kB / 0.7877 GB, free: 1.398 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01037/0.8587, allocations: 7.212 MB / 0.7947 GB, free: 9.977 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.8605, allocations: 64 kB / 0.7948 GB, free: 9.914 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002667/0.8607, allocations: 79.97 kB / 0.7949 GB, free: 9.836 MB / 0.6042 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.00124/0.862, allocations: 0.5 MB / 0.7954 GB, free: 9.344 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/0.863, allocations: 338.2 kB / 0.7957 GB, free: 9.012 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007191/0.8702, allocations: 3.297 MB / 0.7989 GB, free: 5.734 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/0.8702, allocations: 20 kB / 0.7989 GB, free: 5.715 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/0.8702, allocations: 8 kB / 0.7989 GB, free: 5.707 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.1e-05/0.8702, allocations: 15.89 kB / 0.7989 GB, free: 5.691 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01151/0.8817, allocations: 5.102 MB / 0.8039 GB, free: 0.5898 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.227e-06/0.8818, allocations: 0 / 0.8039 GB, free: 0.5898 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001338/0.8831, allocations: 307.6 kB / 0.8042 GB, free: 312 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002209/0.8853, allocations: 0.5449 MB / 0.8047 GB, free: 15.76 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002142/0.8855, allocations: 67.95 kB / 0.8048 GB, free: 15.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/0.8963, allocations: 7.226 MB / 0.8119 GB, free: 8.25 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.8963, allocations: 7.125 kB / 0.8119 GB, free: 8.246 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008678/0.905, allocations: 3.585 MB / 0.8154 GB, free: 4.625 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001623/0.9066, allocations: 438.1 kB / 0.8158 GB, free: 4.195 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005114/0.9071, allocations: 51.94 kB / 0.8158 GB, free: 4.145 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001191/0.9083, allocations: 55.97 kB / 0.8159 GB, free: 4.09 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004714/0.9088, allocations: 180.7 kB / 0.8161 GB, free: 3.918 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/0.909, allocations: 79.94 kB / 0.8161 GB, free: 3.84 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002157/0.9111, allocations: 1.242 MB / 0.8174 GB, free: 2.578 MB / 0.6198 GB Notification: Performance of sort global known variables: time 8e-08/0.9111, allocations: 0 / 0.8174 GB, free: 2.578 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003591/0.9147, allocations: 0.9518 MB / 0.8183 GB, free: 1.625 MB / 0.6198 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.002014/0.9167, allocations: 0.9654 MB / 0.8192 GB, free: 0.7188 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.005713/0.9224, allocations: 2.477 MB / 0.8216 GB, free: 14.2 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.9224, allocations: 0 / 0.8216 GB, free: 14.2 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.00345/0.9259, allocations: 1.595 MB / 0.8232 GB, free: 12.61 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005245/0.9311, allocations: 0.9969 MB / 0.8242 GB, free: 11.64 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01111/0.9422, allocations: 4.629 MB / 0.8287 GB, free: 6.93 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00151/0.9437, allocations: 1.099 MB / 0.8298 GB, free: 5.793 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002348/0.9461, allocations: 460.2 kB / 0.8302 GB, free: 5.367 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006755/0.9468, allocations: 220.4 kB / 0.8304 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of SimCode: time 1.623e-06/0.9468, allocations: 0 / 0.8304 GB, free: 5.152 MB / 0.6355 GB Notification: Performance of Templates: time 0.1026/1.049, allocations: 54.06 MB / 0.8832 GB, free: 72 kB / 0.6823 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.098435322986916]