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.001386/0.001386, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001584/0.001584, allocations: 220.1 kB / 22.26 MB, free: 5.117 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.558/1.558, allocations: 230.6 MB / 256 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.742/0.742, allocations: 94.56 MB / 407 MB, free: 9.188 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002693/0.002693, allocations: 85.75 kB / 0.5554 GB, free: 38.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1114, allocations: 73.05 MB / 0.6268 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5439/0.6553, allocations: 227.4 MB / 0.8488 GB, free: 8.348 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.03265/0.688, allocations: 25.26 MB / 0.8735 GB, free: 2.996 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002607/0.6906, allocations: 115 kB / 0.8736 GB, free: 2.883 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.004523/0.6951, allocations: 1.662 MB / 0.8752 GB, free: 1.211 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.007849/0.703, allocations: 2.699 MB / 0.8779 GB, free: 14.5 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.005405/0.7084, allocations: 1.963 MB / 0.8798 GB, free: 12.53 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.006152/0.7145, allocations: 4.112 MB / 0.8838 GB, free: 8.402 MB / 0.6231 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.7159, allocations: 0.6714 MB / 0.8845 GB, free: 7.684 MB / 0.6231 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002966/0.7188, allocations: 1.736 MB / 0.8862 GB, free: 5.941 MB / 0.6231 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003484/0.7223, allocations: 2.153 MB / 0.8883 GB, free: 3.781 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.0005359/0.7228, allocations: 312 kB / 0.8886 GB, free: 3.477 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007974/0.7308, allocations: 3.447 MB / 0.8919 GB, free: 24 kB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.0008547/0.7317, allocations: 0.6616 MB / 0.8926 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.002228/0.7339, allocations: 1.52 MB / 0.8941 GB, free: 13.83 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.008798/0.7427, allocations: 4.851 MB / 0.8988 GB, free: 8.965 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.7427, allocations: 0 / 0.8988 GB, free: 8.965 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.703e-06/0.7427, allocations: 0 / 0.8988 GB, free: 8.965 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 7.016e-05/0.7428, allocations: 0 / 0.8988 GB, free: 8.965 MB / 0.6387 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 496 * Number of variables: 496 Notification: Performance of Generate backend data structure: time 0.007809/0.7506, allocations: 3.384 MB / 0.9021 GB, free: 5.516 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.7506, allocations: 12.03 kB / 0.9021 GB, free: 5.504 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000573/0.7512, allocations: 310 kB / 0.9024 GB, free: 5.199 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.7546, allocations: 1.703 MB / 0.9041 GB, free: 3.453 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.7547, allocations: 151.7 kB / 0.9042 GB, free: 3.305 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004013/0.7551, allocations: 199.9 kB / 0.9044 GB, free: 3.109 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004428/0.7595, allocations: 2.367 MB / 0.9067 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.386e-05/0.7596, allocations: 0 / 0.9067 GB, free: 0.7148 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001768/0.7597, allocations: 79.98 kB / 0.9068 GB, free: 0.6367 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.829e-05/0.7598, allocations: 74.69 kB / 0.9069 GB, free: 0.5625 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004273/0.7641, allocations: 2.272 MB / 0.9091 GB, free: 14.28 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01437/0.7785, allocations: 10.2 MB / 0.919 GB, free: 3.148 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003443/0.7819, allocations: 1.763 MB / 0.9208 GB, free: 1.371 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001911/0.7838, allocations: 0.966 MB / 0.9217 GB, free: 416 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006593/0.7904, allocations: 3.356 MB / 0.925 GB, free: 13.02 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002027/0.7925, allocations: 1.071 MB / 0.926 GB, free: 11.93 MB / 0.67 GB Notification: Performance of pre-optimization done (n=193): time 3.607e-06/0.7925, allocations: 0 / 0.926 GB, free: 11.93 MB / 0.67 GB Notification: Performance of matching and sorting (n=198): time 0.01313/0.8056, allocations: 5.946 MB / 0.9318 GB, free: 5.922 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.838e-05/0.8057, allocations: 110.8 kB / 0.9319 GB, free: 5.797 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002052/0.8077, allocations: 1.421 MB / 0.9333 GB, free: 4.375 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0001946/0.8079, allocations: 57.7 kB / 0.9334 GB, free: 4.312 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009279/0.8089, allocations: 0.9628 MB / 0.9343 GB, free: 3.34 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006766/0.8095, allocations: 0.6816 MB / 0.935 GB, free: 2.652 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005312/0.8101, allocations: 299.5 kB / 0.9353 GB, free: 2.355 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.8102, allocations: 309.1 kB / 0.9356 GB, free: 2.051 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.8116, allocations: 0.6832 MB / 0.9362 GB, free: 1.367 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.8133, allocations: 0.8488 MB / 0.9371 GB, free: 500 kB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007448/0.8207, allocations: 2.569 MB / 0.9396 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.8207, allocations: 0 / 0.9396 GB, free: 13.86 MB / 0.6856 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.005175/0.8259, allocations: 2.444 MB / 0.942 GB, free: 11.39 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/0.826, allocations: 63.39 kB / 0.942 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.826, allocations: 0 / 0.942 GB, free: 11.32 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001523/0.8275, allocations: 474.2 kB / 0.9425 GB, free: 10.85 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.8289, allocations: 323.5 kB / 0.9428 GB, free: 10.53 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009041/0.838, allocations: 6.266 MB / 0.9489 GB, free: 4.047 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001363/0.8393, allocations: 59.95 kB / 0.949 GB, free: 3.988 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001957/0.8395, allocations: 75.97 kB / 0.949 GB, free: 3.914 MB / 0.6856 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: 9 * 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 (173): * Single equations (assignments): 169 * 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.001012/0.8405, allocations: 480.2 kB / 0.9495 GB, free: 3.438 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004259/0.841, allocations: 214.6 kB / 0.9497 GB, free: 3.227 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006363/0.8473, allocations: 3.112 MB / 0.9527 GB, free: 88 kB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.056e-05/0.8474, allocations: 20 kB / 0.9528 GB, free: 68 kB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.8474, allocations: 11.94 kB / 0.9528 GB, free: 56 kB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8474, allocations: 7.969 kB / 0.9528 GB, free: 48 kB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009688/0.8571, allocations: 5.191 MB / 0.9578 GB, free: 10.77 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.8571, allocations: 8.031 kB / 0.9579 GB, free: 10.77 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.8584, allocations: 307.6 kB / 0.9581 GB, free: 10.46 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001501/0.8599, allocations: 485.4 kB / 0.9586 GB, free: 9.984 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.8601, allocations: 71.95 kB / 0.9587 GB, free: 9.914 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008949/0.869, allocations: 6.262 MB / 0.9648 GB, free: 3.426 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.869, allocations: 7.969 kB / 0.9648 GB, free: 3.418 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007209/0.8763, allocations: 3.669 MB / 0.9684 GB, free: 15.69 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.8774, allocations: 430.3 kB / 0.9688 GB, free: 15.27 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/0.8777, allocations: 59.83 kB / 0.9689 GB, free: 15.21 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.8788, allocations: 67.95 kB / 0.9689 GB, free: 15.14 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003808/0.8791, allocations: 177.6 kB / 0.9691 GB, free: 14.97 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/0.8793, allocations: 71.95 kB / 0.9692 GB, free: 14.9 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001624/0.8809, allocations: 1.013 MB / 0.9701 GB, free: 13.9 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.8809, allocations: 0 / 0.9701 GB, free: 13.9 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002516/0.8834, allocations: 0.8971 MB / 0.971 GB, free: 13 MB / 0.7169 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.001612/0.885, allocations: 0.9378 MB / 0.9719 GB, free: 12.06 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.004789/0.8898, allocations: 2.326 MB / 0.9742 GB, free: 9.676 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 4.758e-06/0.8898, allocations: 0 / 0.9742 GB, free: 9.676 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002955/0.8928, allocations: 1.455 MB / 0.9756 GB, free: 8.203 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003088/0.8959, allocations: 0.6607 MB / 0.9763 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008101/0.904, allocations: 4.382 MB / 0.9806 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00146/0.9054, allocations: 1.581 MB / 0.9821 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001589/0.907, allocations: 441 kB / 0.9825 GB, free: 1.094 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005515/0.9076, allocations: 187.4 kB / 0.9827 GB, free: 0.9102 MB / 0.7169 GB Notification: Performance of SimCode: time 8.52e-07/0.9076, allocations: 3.938 kB / 0.9827 GB, free: 0.9062 MB / 0.7169 GB Notification: Performance of Templates: time 0.08297/0.9906, allocations: 47.44 MB / 1.029 GB, free: 1.816 MB / 0.7637 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.104788247030228]