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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 113.9 kB / 17.61 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001637/0.001637, allocations: 185.9 kB / 20.78 MB, free: 1.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.6 MB / 249.4 MB, free: 3.297 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.6259/0.6259, allocations: 90.3 MB / 394.8 MB, free: 3.855 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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 0.002281/0.002281, allocations: 80.16 kB / 0.5386 GB, free: 1.609 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3916/0.3938, allocations: 70.83 MB / 0.6078 GB, free: 7.406 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.279/0.6729, allocations: 227 MB / 0.8294 GB, free: 7.637 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.03688/0.7097, allocations: 25.08 MB / 0.8539 GB, free: 14.47 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002726/0.7125, allocations: 31.88 kB / 0.854 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.005116/0.7176, allocations: 1.651 MB / 0.8556 GB, free: 12.78 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.008414/0.726, allocations: 2.567 MB / 0.8581 GB, free: 10.2 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.006725/0.7327, allocations: 1.92 MB / 0.86 GB, free: 8.273 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.007439/0.7402, allocations: 3.82 MB / 0.8637 GB, free: 4.438 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001891/0.742, allocations: 0.6648 MB / 0.8643 GB, free: 3.727 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003717/0.7458, allocations: 1.53 MB / 0.8658 GB, free: 2.191 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004536/0.7503, allocations: 2.118 MB / 0.8679 GB, free: 68 kB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.3535/1.104, allocations: 312.8 kB / 0.8682 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008144/1.112, allocations: 3.421 MB / 0.8715 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.001122/1.113, allocations: 0.634 MB / 0.8722 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.002517/1.116, allocations: 1.432 MB / 0.8736 GB, free: 9.406 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.01031/1.126, allocations: 4.554 MB / 0.878 GB, free: 9.129 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.126, allocations: 0 / 0.878 GB, free: 9.129 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.824e-06/1.126, allocations: 1.406 kB / 0.878 GB, free: 9.129 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0001261/1.126, allocations: 0 / 0.878 GB, free: 9.129 MB / 0.6856 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.008503/1.135, allocations: 3.157 MB / 0.8811 GB, free: 7.703 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/1.135, allocations: 9.75 kB / 0.8811 GB, free: 7.703 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007836/1.135, allocations: 272.5 kB / 0.8814 GB, free: 7.562 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002256/1.138, allocations: 1.252 MB / 0.8826 GB, free: 7.133 MB / 0.6856 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/1.138, allocations: 146 kB / 0.8827 GB, free: 7.129 MB / 0.6856 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003498/1.138, allocations: 207.5 kB / 0.8829 GB, free: 7.121 MB / 0.6856 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00444/1.143, allocations: 2.342 MB / 0.8852 GB, free: 6.988 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.48e-05/1.143, allocations: 0.625 kB / 0.8852 GB, free: 6.988 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001795/1.143, allocations: 80.48 kB / 0.8853 GB, free: 6.988 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.642e-05/1.143, allocations: 75.47 kB / 0.8854 GB, free: 6.984 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00403/1.147, allocations: 2.237 MB / 0.8875 GB, free: 6.969 MB / 0.6856 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01386/1.161, allocations: 10.17 MB / 0.8975 GB, free: 17.61 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003155/1.164, allocations: 1.761 MB / 0.8992 GB, free: 17.54 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/1.165, allocations: 0.9653 MB / 0.9001 GB, free: 17.51 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008168/1.174, allocations: 6.616 MB / 0.9066 GB, free: 12.98 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00174/1.175, allocations: 1.065 MB / 0.9076 GB, free: 12.88 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=193): time 3.587e-06/1.175, allocations: 0 / 0.9076 GB, free: 12.88 MB / 0.7012 GB Notification: Performance of matching and sorting (n=198): time 0.01244/1.188, allocations: 6.414 MB / 0.9139 GB, free: 11.11 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.468e-05/1.188, allocations: 104.1 kB / 0.914 GB, free: 11.02 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/1.189, allocations: 1.124 MB / 0.9151 GB, free: 10.87 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001275/1.189, allocations: 61.36 kB / 0.9152 GB, free: 10.84 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005192/1.19, allocations: 0.8037 MB / 0.9159 GB, free: 10.52 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/1.19, allocations: 0.6905 MB / 0.9166 GB, free: 10.06 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004793/1.191, allocations: 297.9 kB / 0.9169 GB, free: 10.04 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.191, allocations: 308.9 kB / 0.9172 GB, free: 9.738 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/1.192, allocations: 0.6835 MB / 0.9179 GB, free: 9.734 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/1.193, allocations: 0.8466 MB / 0.9187 GB, free: 9.645 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006422/1.2, allocations: 2.568 MB / 0.9212 GB, free: 9.418 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/1.2, allocations: 3.609 kB / 0.9212 GB, free: 9.418 MB / 0.7012 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004321/1.204, allocations: 2.402 MB / 0.9235 GB, free: 9.168 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 7.016e-05/1.204, allocations: 63.28 kB / 0.9236 GB, free: 9.105 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/1.204, allocations: 6.141 kB / 0.9236 GB, free: 9.102 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001375/1.206, allocations: 464.2 kB / 0.9241 GB, free: 9.086 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001235/1.207, allocations: 321 kB / 0.9244 GB, free: 9.086 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007409/1.214, allocations: 6.47 MB / 0.9307 GB, free: 6.141 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001623/1.216, allocations: 68.73 kB / 0.9307 GB, free: 6.137 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002128/1.216, allocations: 72.59 kB / 0.9308 GB, free: 6.137 MB / 0.7012 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.0009675/1.217, allocations: 470.8 kB / 0.9313 GB, free: 6.012 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/1.217, allocations: 173.2 kB / 0.9314 GB, free: 5.918 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/1.223, allocations: 3.078 MB / 0.9344 GB, free: 5.613 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.902e-05/1.223, allocations: 21.12 kB / 0.9345 GB, free: 5.613 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/1.223, allocations: 13.66 kB / 0.9345 GB, free: 5.609 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/1.223, allocations: 12.7 kB / 0.9345 GB, free: 5.609 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008305/1.231, allocations: 5.124 MB / 0.9395 GB, free: 5.039 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/1.231, allocations: 0 / 0.9395 GB, free: 5.039 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.232, allocations: 311.8 kB / 0.9398 GB, free: 5.039 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001331/1.233, allocations: 489.9 kB / 0.9403 GB, free: 5.008 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001508/1.234, allocations: 69.59 kB / 0.9403 GB, free: 5.008 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007405/1.241, allocations: 6.485 MB / 0.9467 GB, free: 2.055 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.241, allocations: 0 / 0.9467 GB, free: 2.055 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005918/1.247, allocations: 3.636 MB / 0.9502 GB, free: 1.566 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/1.248, allocations: 469.8 kB / 0.9506 GB, free: 1.379 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002881/1.248, allocations: 54.42 kB / 0.9507 GB, free: 1.375 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/1.249, allocations: 56.09 kB / 0.9508 GB, free: 1.375 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003587/1.25, allocations: 178.6 kB / 0.9509 GB, free: 1.371 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/1.25, allocations: 81.14 kB / 0.951 GB, free: 1.367 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.00103/1.251, allocations: 0.8286 MB / 0.9518 GB, free: 1.258 MB / 0.7012 GB Notification: Performance of sort global known variables: time 9e-08/1.251, allocations: 0 / 0.9518 GB, free: 1.258 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002638/1.253, allocations: 0.8948 MB / 0.9527 GB, free: 1.18 MB / 0.7012 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.001603/1.255, allocations: 0.924 MB / 0.9536 GB, free: 0.957 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.004314/1.259, allocations: 2.315 MB / 0.9558 GB, free: 0.5234 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/1.259, allocations: 0 / 0.9558 GB, free: 0.5234 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.002672/1.262, allocations: 1.459 MB / 0.9573 GB, free: 240 kB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003012/1.265, allocations: 0.6443 MB / 0.9579 GB, free: 144 kB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0069/1.272, allocations: 4.047 MB / 0.9619 GB, free: 14.51 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001163/1.273, allocations: 1.479 MB / 0.9633 GB, free: 13.72 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001432/1.275, allocations: 403.2 kB / 0.9637 GB, free: 13.6 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004579/1.275, allocations: 173.6 kB / 0.9638 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of SimCode: time 1.092e-06/1.275, allocations: 0 / 0.9638 GB, free: 13.57 MB / 0.7169 GB Notification: Performance of Templates: time 0.07632/1.351, allocations: 46.26 MB / 1.009 GB, free: 2.59 MB / 0.7481 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.101460478268564]