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.001748/0.001748, allocations: 88.72 kB / 19.44 MB, free: 356 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.002105/0.002105, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.539/1.539, allocations: 177.1 MB / 203.1 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 1.119/1.119, allocations: 118.6 MB / 378.2 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.733e-06/1.733e-06, allocations: 0 / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.96e-05/3.133e-05, allocations: 3.719 kB / 482.9 MB, free: 8.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5545/0.5545, allocations: 206.3 MB / 0.673 GB, free: 9.918 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.02518/0.5797, allocations: 19.94 MB / 0.6925 GB, free: 9.766 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002926/0.5826, allocations: 138.3 kB / 0.6926 GB, free: 9.766 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.005012/0.5876, allocations: 1.513 MB / 0.6941 GB, free: 9.703 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.008638/0.5963, allocations: 2.966 MB / 0.697 GB, free: 9.129 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.005867/0.6021, allocations: 2.044 MB / 0.699 GB, free: 8.934 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.005638/0.6078, allocations: 4.705 MB / 0.7036 GB, free: 7.586 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001825/0.6096, allocations: 0.6901 MB / 0.7043 GB, free: 23.4 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005442/0.6151, allocations: 2.583 MB / 0.7068 GB, free: 23.15 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003537/0.6186, allocations: 1.92 MB / 0.7087 GB, free: 22.97 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0008889/0.6195, allocations: 313.8 kB / 0.709 GB, free: 22.97 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007526/0.627, allocations: 2.971 MB / 0.7119 GB, free: 22.79 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001/0.628, allocations: 0.6985 MB / 0.7125 GB, free: 22.65 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.6307, allocations: 1.114 MB / 0.7136 GB, free: 22.52 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.009452/0.6402, allocations: 5.235 MB / 0.7187 GB, free: 22 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.6402, allocations: 0 / 0.7187 GB, free: 22 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.743e-06/0.6402, allocations: 0.9375 kB / 0.7187 GB, free: 22 MB / 0.573 GB Notification: Performance of Transformations before backend: time 9.664e-05/0.6403, allocations: 0 / 0.7187 GB, free: 22 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.007128/0.6474, allocations: 3.61 MB / 0.7223 GB, free: 20.36 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.6475, allocations: 11.47 kB / 0.7223 GB, free: 20.36 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009935/0.6484, allocations: 0.5332 MB / 0.7228 GB, free: 20.16 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003148/0.6516, allocations: 2.095 MB / 0.7249 GB, free: 19.6 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.823e-05/0.6517, allocations: 152.4 kB / 0.725 GB, free: 19.6 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003202/0.652, allocations: 214.2 kB / 0.7252 GB, free: 19.59 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003863/0.6559, allocations: 2.414 MB / 0.7276 GB, free: 18.64 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.9e-05/0.6559, allocations: 4.125 kB / 0.7276 GB, free: 18.64 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001694/0.6561, allocations: 81.53 kB / 0.7276 GB, free: 18.58 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.71e-05/0.6561, allocations: 74.62 kB / 0.7277 GB, free: 18.57 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00353/0.6597, allocations: 2.281 MB / 0.7299 GB, free: 17.55 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/0.6705, allocations: 6.521 MB / 0.7363 GB, free: 12.98 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/0.6738, allocations: 1.74 MB / 0.738 GB, free: 12 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001806/0.6756, allocations: 0.9392 MB / 0.7389 GB, free: 11.52 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006422/0.682, allocations: 2.957 MB / 0.7418 GB, free: 9.453 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001991/0.684, allocations: 1.049 MB / 0.7428 GB, free: 8.812 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 3.878e-06/0.684, allocations: 4 kB / 0.7428 GB, free: 8.809 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.01371/0.6977, allocations: 6.107 MB / 0.7488 GB, free: 5.309 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.252e-05/0.6978, allocations: 105.5 kB / 0.7489 GB, free: 5.207 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/0.7001, allocations: 1.582 MB / 0.7504 GB, free: 4.332 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001991/0.7003, allocations: 62.17 kB / 0.7505 GB, free: 4.273 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001162/0.7015, allocations: 1.067 MB / 0.7516 GB, free: 3.328 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007484/0.7022, allocations: 0.6842 MB / 0.7522 GB, free: 2.73 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005547/0.7028, allocations: 309.1 kB / 0.7525 GB, free: 2.555 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001742/0.7029, allocations: 305.1 kB / 0.7528 GB, free: 2.254 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.7043, allocations: 0.7351 MB / 0.7535 GB, free: 1.836 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/0.706, allocations: 0.9349 MB / 0.7544 GB, free: 1.23 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007313/0.7133, allocations: 2.596 MB / 0.757 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.495e-06/0.7133, allocations: 4 kB / 0.757 GB, free: 15.46 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.006227/0.7195, allocations: 2.646 MB / 0.7596 GB, free: 12.82 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 7.651e-05/0.7196, allocations: 63.39 kB / 0.7596 GB, free: 12.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.581e-05/0.7196, allocations: 4 kB / 0.7596 GB, free: 12.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00207/0.7217, allocations: 0.5358 MB / 0.7601 GB, free: 12.21 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001439/0.7231, allocations: 334.6 kB / 0.7605 GB, free: 11.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009615/0.7327, allocations: 6.122 MB / 0.7664 GB, free: 5.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001592/0.7343, allocations: 67.95 kB / 0.7665 GB, free: 5.543 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002336/0.7346, allocations: 75.97 kB / 0.7666 GB, free: 5.469 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.001249/0.7358, allocations: 0.493 MB / 0.7671 GB, free: 4.984 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009168/0.7367, allocations: 334.2 kB / 0.7674 GB, free: 4.656 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006802/0.7435, allocations: 3.123 MB / 0.7704 GB, free: 1.57 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.54e-05/0.7435, allocations: 20 kB / 0.7704 GB, free: 1.551 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.7436, allocations: 8 kB / 0.7705 GB, free: 1.543 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.782e-05/0.7436, allocations: 15.89 kB / 0.7705 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.7541, allocations: 4.609 MB / 0.775 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.7541, allocations: 4 kB / 0.775 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.7555, allocations: 307.5 kB / 0.7753 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002129/0.7576, allocations: 0.552 MB / 0.7758 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/0.7578, allocations: 67.95 kB / 0.7759 GB, free: 12.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009821/0.7676, allocations: 6.135 MB / 0.7819 GB, free: 5.707 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-05/0.7676, allocations: 15.09 kB / 0.7819 GB, free: 5.695 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008406/0.776, allocations: 3.75 MB / 0.7855 GB, free: 1.93 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/0.7774, allocations: 442.1 kB / 0.786 GB, free: 1.496 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006229/0.778, allocations: 51.95 kB / 0.786 GB, free: 1.445 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.7791, allocations: 59.95 kB / 0.7861 GB, free: 1.387 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004704/0.7796, allocations: 180.7 kB / 0.7862 GB, free: 1.211 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001784/0.7798, allocations: 75.95 kB / 0.7863 GB, free: 1.137 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001947/0.7817, allocations: 1.102 MB / 0.7874 GB, free: 16 kB / 0.6042 GB Notification: Performance of sort global known variables: time 6e-08/0.7817, allocations: 0 / 0.7874 GB, free: 16 kB / 0.6042 GB Notification: Performance of remove unused functions: time 0.00316/0.7849, allocations: 0.9582 MB / 0.7883 GB, free: 15.07 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.001923/0.7868, allocations: 0.9629 MB / 0.7893 GB, free: 14.16 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.005229/0.792, allocations: 2.376 MB / 0.7916 GB, free: 11.74 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.792, allocations: 0 / 0.7916 GB, free: 11.74 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003258/0.7953, allocations: 1.447 MB / 0.793 GB, free: 10.31 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005139/0.8004, allocations: 0.9802 MB / 0.794 GB, free: 9.355 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/0.8116, allocations: 4.791 MB / 0.7986 GB, free: 4.504 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/0.8132, allocations: 1.107 MB / 0.7997 GB, free: 3.359 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002633/0.8158, allocations: 470.4 kB / 0.8002 GB, free: 2.922 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.817, allocations: 220.4 kB / 0.8004 GB, free: 2.707 MB / 0.6198 GB Notification: Performance of SimCode: time 1.914e-06/0.817, allocations: 3.094 kB / 0.8004 GB, free: 2.707 MB / 0.6198 GB Notification: Performance of Templates: time 0.1005/0.9175, allocations: 53.77 MB / 0.8529 GB, free: 13.9 MB / 0.6823 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: 8.746427285019308]