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.001535/0.001535, allocations: 78.41 kB / 19.18 MB, free: 2.527 MB / 14.72 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.001768/0.001768, allocations: 169.7 kB / 22.46 MB, free: 5.355 MB / 14.72 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.413/1.413, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.0/package.mo): time 0.7413/0.7413, allocations: 80.2 MB / 339.4 MB, free: 10.87 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.3.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.202e-06/1.202e-06, allocations: 0 / 0.4929 GB, free: 25.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.843e-05/1.963e-05, allocations: 2.281 kB / 0.4929 GB, free: 25.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.2388/0.2388, allocations: 206.1 MB / 0.6942 GB, free: 0.8359 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.276/0.5148, allocations: 19.8 MB / 0.7135 GB, free: 3.977 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002191/0.517, allocations: 125.9 kB / 0.7136 GB, free: 3.977 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.004112/0.5211, allocations: 1.495 MB / 0.7151 GB, free: 3.918 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007596/0.5287, allocations: 2.903 MB / 0.7179 GB, free: 3.836 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.005342/0.5341, allocations: 1.992 MB / 0.7199 GB, free: 3.641 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.005878/0.5399, allocations: 4.585 MB / 0.7243 GB, free: 2.324 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001638/0.5416, allocations: 0.6529 MB / 0.725 GB, free: 18.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005294/0.5469, allocations: 2.534 MB / 0.7274 GB, free: 17.96 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003733/0.5506, allocations: 1.908 MB / 0.7293 GB, free: 17.79 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0008817/0.5515, allocations: 314.5 kB / 0.7296 GB, free: 17.79 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007479/0.559, allocations: 2.967 MB / 0.7325 GB, free: 17.6 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0008583/0.5598, allocations: 0.6903 MB / 0.7332 GB, free: 17.47 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.002724/0.5626, allocations: 1.107 MB / 0.7343 GB, free: 17.34 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009703/0.5723, allocations: 5.054 MB / 0.7392 GB, free: 16.85 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.5723, allocations: 1.344 kB / 0.7392 GB, free: 16.85 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.082e-06/0.5723, allocations: 0 / 0.7392 GB, free: 16.85 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0001309/0.5724, allocations: 0.9375 kB / 0.7392 GB, free: 16.85 MB / 0.6075 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.009895/0.5823, allocations: 3.466 MB / 0.7426 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.5823, allocations: 15.28 kB / 0.7426 GB, free: 15.31 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001167/0.5835, allocations: 338.3 kB / 0.7429 GB, free: 15.14 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.5872, allocations: 1.747 MB / 0.7446 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001051/0.5873, allocations: 152.7 kB / 0.7448 GB, free: 14.68 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004543/0.5877, allocations: 207 kB / 0.745 GB, free: 14.67 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004419/0.5921, allocations: 2.415 MB / 0.7473 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.5922, allocations: 3 kB / 0.7473 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002144/0.5924, allocations: 83.88 kB / 0.7474 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.25e-05/0.5925, allocations: 75.97 kB / 0.7475 GB, free: 14.48 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003652/0.5961, allocations: 2.283 MB / 0.7497 GB, free: 14.46 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01113/0.6073, allocations: 6.45 MB / 0.756 GB, free: 12.91 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.6102, allocations: 1.746 MB / 0.7577 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.6119, allocations: 0.9661 MB / 0.7587 GB, free: 12.82 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005805/0.6177, allocations: 2.995 MB / 0.7616 GB, free: 12.33 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001754/0.6195, allocations: 1.066 MB / 0.7626 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 5.21e-06/0.6195, allocations: 0 / 0.7626 GB, free: 12.24 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.01267/0.6321, allocations: 6.002 MB / 0.7685 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.481e-05/0.6322, allocations: 105.5 kB / 0.7686 GB, free: 10.99 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001956/0.6342, allocations: 1.442 MB / 0.77 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.6344, allocations: 59.67 kB / 0.7701 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009034/0.6353, allocations: 1.012 MB / 0.771 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006775/0.636, allocations: 0.686 MB / 0.7717 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005673/0.6365, allocations: 305.8 kB / 0.772 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.6367, allocations: 303 kB / 0.7723 GB, free: 8.777 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001378/0.638, allocations: 0.7439 MB / 0.773 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.6396, allocations: 0.9469 MB / 0.7739 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007435/0.6471, allocations: 2.631 MB / 0.7765 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.6471, allocations: 0.75 kB / 0.7765 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.005331/0.6524, allocations: 2.564 MB / 0.779 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.317e-05/0.6525, allocations: 67.05 kB / 0.7791 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.6525, allocations: 4.938 kB / 0.7791 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001466/0.654, allocations: 474.1 kB / 0.7795 GB, free: 5.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001305/0.6553, allocations: 334.8 kB / 0.7799 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008407/0.6637, allocations: 6.097 MB / 0.7858 GB, free: 0.6953 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.6653, allocations: 65.7 kB / 0.7859 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002746/0.6655, allocations: 81.23 kB / 0.786 GB, free: 0.6289 MB / 0.6075 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.001323/0.6669, allocations: 494.9 kB / 0.7864 GB, free: 296 kB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007109/0.6676, allocations: 232.8 kB / 0.7866 GB, free: 172 kB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006201/0.6738, allocations: 3.114 MB / 0.7897 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.6738, allocations: 21.31 kB / 0.7897 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/0.6738, allocations: 7.562 kB / 0.7897 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.63e-05/0.6738, allocations: 11.95 kB / 0.7897 GB, free: 14.34 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009299/0.6831, allocations: 4.628 MB / 0.7942 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.6832, allocations: 2.375 kB / 0.7942 GB, free: 11.5 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.6844, allocations: 309.8 kB / 0.7945 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001555/0.6859, allocations: 491.8 kB / 0.795 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.6861, allocations: 71.48 kB / 0.7951 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008339/0.6945, allocations: 6.084 MB / 0.801 GB, free: 5.875 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/0.6945, allocations: 4.031 kB / 0.801 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007683/0.7022, allocations: 3.686 MB / 0.8046 GB, free: 2.18 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.7034, allocations: 434.3 kB / 0.805 GB, free: 1.754 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000447/0.7038, allocations: 47.94 kB / 0.8051 GB, free: 1.707 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001239/0.7051, allocations: 59.95 kB / 0.8051 GB, free: 1.648 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000412/0.7055, allocations: 188.7 kB / 0.8053 GB, free: 1.469 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000182/0.7057, allocations: 75.95 kB / 0.8054 GB, free: 1.395 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001631/0.7073, allocations: 1.006 MB / 0.8064 GB, free: 408 kB / 0.6231 GB Notification: Performance of sort global known variables: time 9.1e-08/0.7073, allocations: 0 / 0.8064 GB, free: 408 kB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003039/0.7103, allocations: 0.9521 MB / 0.8073 GB, free: 15.45 MB / 0.6387 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.001894/0.7122, allocations: 0.9666 MB / 0.8083 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.005083/0.7173, allocations: 2.394 MB / 0.8106 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.171e-06/0.7173, allocations: 0 / 0.8106 GB, free: 12.11 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.003315/0.7206, allocations: 1.449 MB / 0.812 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005623/0.7262, allocations: 0.9411 MB / 0.8129 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.7375, allocations: 4.567 MB / 0.8174 GB, free: 5.172 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/0.7389, allocations: 1.043 MB / 0.8184 GB, free: 4.09 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.002012/0.7409, allocations: 456.7 kB / 0.8188 GB, free: 3.668 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006839/0.7416, allocations: 196.4 kB / 0.819 GB, free: 3.477 MB / 0.6387 GB Notification: Performance of SimCode: time 9.32e-07/0.7416, allocations: 0 / 0.819 GB, free: 3.477 MB / 0.6387 GB Notification: Performance of Templates: time 0.09037/0.832, allocations: 53.22 MB / 0.871 GB, free: 15.18 MB / 0.7012 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_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_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: 7.7702496610581875]