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.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.002066/0.002066, allocations: 113.9 kB / 18.94 MB, free: 2.93 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.002534/0.002534, allocations: 191.7 kB / 22.23 MB, free: 5.105 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.514/1.514, allocations: 225.6 MB / 251 MB, free: 13.03 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0-main/package.mo): time 0.7701/0.7701, allocations: 94.59 MB / 400.9 MB, free: 15.25 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-main/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_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 0.002513/0.002513, allocations: 82.59 kB / 0.5471 GB, free: 42.52 MB / 446.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1154, allocations: 71.88 MB / 0.6173 GB, free: 8.141 MB / 462.1 MB
Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5461/0.6615, allocations: 227.3 MB / 0.8394 GB, free: 13.62 MB / 0.5919 GB
Notification: Performance of NFInst.instExpressions: time 0.03231/0.6938, allocations: 25.26 MB / 0.864 GB, free: 14.11 MB / 0.6075 GB
Notification: Performance of NFInst.updateImplicitVariability: time 0.00289/0.6967, allocations: 118.6 kB / 0.8641 GB, free: 14.11 MB / 0.6075 GB
Notification: Performance of NFTyping.typeComponents: time 0.004719/0.7014, allocations: 1.669 MB / 0.8658 GB, free: 13.09 MB / 0.6075 GB
Notification: Performance of NFTyping.typeBindings: time 0.008083/0.7095, allocations: 2.694 MB / 0.8684 GB, free: 11.11 MB / 0.6075 GB
Notification: Performance of NFTyping.typeClassSections: time 0.005703/0.7152, allocations: 1.971 MB / 0.8703 GB, free: 9.371 MB / 0.6075 GB
Notification: Performance of NFFlatten.flatten: time 0.006528/0.7217, allocations: 4.108 MB / 0.8743 GB, free: 5.504 MB / 0.6075 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.001464/0.7232, allocations: 0.6714 MB / 0.875 GB, free: 4.789 MB / 0.6075 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.003375/0.7266, allocations: 1.74 MB / 0.8767 GB, free: 3.043 MB / 0.6075 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.004106/0.7307, allocations: 2.153 MB / 0.8788 GB, free: 0.8828 MB / 0.6075 GB
Notification: Performance of NFPackage.collectConstants: time 0.000859/0.7315, allocations: 316 kB / 0.8791 GB, free: 0.5742 MB / 0.6075 GB
Notification: Performance of NFFlatten.collectFunctions: time 0.008774/0.7403, allocations: 3.451 MB / 0.8825 GB, free: 13.12 MB / 0.6231 GB
Notification: Performance of NFScalarize.scalarize: time 0.001192/0.7415, allocations: 0.6578 MB / 0.8831 GB, free: 12.46 MB / 0.6231 GB
Notification: Performance of NFVerifyModel.verify: time 0.002644/0.7441, allocations: 1.512 MB / 0.8846 GB, free: 10.94 MB / 0.6231 GB
Notification: Performance of NFConvertDAE.convert: time 0.01035/0.7545, allocations: 4.847 MB / 0.8893 GB, free: 6.074 MB / 0.6231 GB
Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.7545, allocations: 0 / 0.8893 GB, free: 6.074 MB / 0.6231 GB
Notification: Performance of FrontEnd: time 2.435e-06/0.7545, allocations: 0 / 0.8893 GB, free: 6.074 MB / 0.6231 GB
Notification: Performance of Transformations before backend: time 9.001e-05/0.7546, allocations: 0 / 0.8893 GB, free: 6.074 MB / 0.6231 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.0081/0.7627, allocations: 3.388 MB / 0.8926 GB, free: 2.621 MB / 0.6231 GB
Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.7627, allocations: 12.03 kB / 0.8926 GB, free: 2.609 MB / 0.6231 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000632/0.7634, allocations: 306.1 kB / 0.8929 GB, free: 2.309 MB / 0.6231 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.003605/0.767, allocations: 1.699 MB / 0.8946 GB, free: 0.5625 MB / 0.6231 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.7671, allocations: 152.5 kB / 0.8947 GB, free: 424 kB / 0.6231 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003959/0.7675, allocations: 203.9 kB / 0.8949 GB, free: 220 kB / 0.6231 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0049/0.7724, allocations: 2.356 MB / 0.8972 GB, free: 13.84 MB / 0.6387 GB
Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.7724, allocations: 0 / 0.8972 GB, free: 13.84 MB / 0.6387 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001923/0.7726, allocations: 87.97 kB / 0.8973 GB, free: 13.75 MB / 0.6387 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.147e-05/0.7727, allocations: 78.62 kB / 0.8974 GB, free: 13.67 MB / 0.6387 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004703/0.7774, allocations: 2.272 MB / 0.8996 GB, free: 11.39 MB / 0.6387 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01629/0.7937, allocations: 10.19 MB / 0.9095 GB, free: 272 kB / 0.6387 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.003712/0.7974, allocations: 1.782 MB / 0.9113 GB, free: 14.47 MB / 0.6544 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.002092/0.7995, allocations: 0.9646 MB / 0.9122 GB, free: 13.5 MB / 0.6544 GB
Notification: Performance of preOpt evalFunc (simulation): time 0.006862/0.8064, allocations: 3.36 MB / 0.9155 GB, free: 10.11 MB / 0.6544 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002108/0.8085, allocations: 1.06 MB / 0.9165 GB, free: 9.027 MB / 0.6544 GB
Notification: Performance of pre-optimization done (n=193): time 3.948e-06/0.8085, allocations: 4 kB / 0.9166 GB, free: 9.023 MB / 0.6544 GB
Notification: Performance of matching and sorting (n=198): time 0.01361/0.8221, allocations: 5.95 MB / 0.9224 GB, free: 3.023 MB / 0.6544 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.424e-05/0.8222, allocations: 102.9 kB / 0.9225 GB, free: 2.906 MB / 0.6544 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002105/0.8243, allocations: 1.425 MB / 0.9239 GB, free: 1.48 MB / 0.6544 GB
Notification: Performance of collectPreVariables (initialization): time 0.0002542/0.8246, allocations: 65.7 kB / 0.9239 GB, free: 1.41 MB / 0.6544 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0009206/0.8255, allocations: 0.959 MB / 0.9249 GB, free: 448 kB / 0.6544 GB
Notification: Performance of collectInitialBindings (initialization): time 0.0007314/0.8262, allocations: 0.6779 MB / 0.9255 GB, free: 15.75 MB / 0.67 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005259/0.8267, allocations: 299.5 kB / 0.9258 GB, free: 15.45 MB / 0.67 GB
Notification: Performance of setup shared object (initialization): time 0.0001295/0.8269, allocations: 304.9 kB / 0.9261 GB, free: 15.16 MB / 0.67 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.8283, allocations: 0.6872 MB / 0.9268 GB, free: 14.47 MB / 0.67 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/0.83, allocations: 0.8457 MB / 0.9276 GB, free: 13.6 MB / 0.67 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.007523/0.8375, allocations: 2.565 MB / 0.9301 GB, free: 10.98 MB / 0.67 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.8375, allocations: 0 / 0.9301 GB, free: 10.98 MB / 0.67 GB
Notification: Performance of matching and sorting (n=217) (initialization): time 0.005411/0.8429, allocations: 2.448 MB / 0.9325 GB, free: 8.5 MB / 0.67 GB
Notification: Performance of prepare postOptimizeDAE: time 7.444e-05/0.843, allocations: 59.41 kB / 0.9325 GB, free: 8.43 MB / 0.67 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.843, allocations: 4 kB / 0.9325 GB, free: 8.426 MB / 0.67 GB
Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/0.8446, allocations: 473.3 kB / 0.933 GB, free: 7.957 MB / 0.67 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001514/0.8462, allocations: 319.5 kB / 0.9333 GB, free: 7.645 MB / 0.67 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009587/0.8557, allocations: 6.263 MB / 0.9394 GB, free: 1.156 MB / 0.67 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001765/0.8575, allocations: 59.97 kB / 0.9395 GB, free: 1.098 MB / 0.67 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000313/0.8578, allocations: 75.95 kB / 0.9395 GB, free: 1.023 MB / 0.67 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.00107/0.8589, allocations: 478.5 kB / 0.94 GB, free: 0.5469 MB / 0.67 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004817/0.8594, allocations: 210.6 kB / 0.9402 GB, free: 348 kB / 0.67 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00657/0.8659, allocations: 3.123 MB / 0.9433 GB, free: 13.19 MB / 0.6856 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.307e-05/0.866, allocations: 20 kB / 0.9433 GB, free: 13.17 MB / 0.6856 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 2.111e-05/0.866, allocations: 11.94 kB / 0.9433 GB, free: 13.16 MB / 0.6856 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.978e-05/0.866, allocations: 7.969 kB / 0.9433 GB, free: 13.15 MB / 0.6856 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01005/0.8761, allocations: 5.194 MB / 0.9484 GB, free: 7.875 MB / 0.6856 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.8761, allocations: 0 / 0.9484 GB, free: 7.875 MB / 0.6856 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.8774, allocations: 315.8 kB / 0.9487 GB, free: 7.566 MB / 0.6856 GB
Notification: Performance of postOpt tearingSystem (simulation): time 0.001544/0.879, allocations: 489.6 kB / 0.9491 GB, free: 7.082 MB / 0.6856 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000213/0.8792, allocations: 67.95 kB / 0.9492 GB, free: 7.016 MB / 0.6856 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008784/0.888, allocations: 6.262 MB / 0.9553 GB, free: 0.5273 MB / 0.6856 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.888, allocations: 4.062 kB / 0.9553 GB, free: 0.5234 MB / 0.6856 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00738/0.8953, allocations: 3.672 MB / 0.9589 GB, free: 12.8 MB / 0.7012 GB
Notification: Performance of postOpt removeConstants (simulation): time 0.001116/0.8965, allocations: 430.3 kB / 0.9593 GB, free: 12.38 MB / 0.7012 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/0.8968, allocations: 51.94 kB / 0.9594 GB, free: 12.32 MB / 0.7012 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.8979, allocations: 55.95 kB / 0.9594 GB, free: 12.27 MB / 0.7012 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004141/0.8983, allocations: 185.6 kB / 0.9596 GB, free: 12.09 MB / 0.7012 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/0.8985, allocations: 71.95 kB / 0.9597 GB, free: 12.02 MB / 0.7012 GB
Notification: Performance of sorting global known variables: time 0.001611/0.9001, allocations: 1.021 MB / 0.9607 GB, free: 11.01 MB / 0.7012 GB
Notification: Performance of sort global known variables: time 1e-07/0.9001, allocations: 0 / 0.9607 GB, free: 11.01 MB / 0.7012 GB
Notification: Performance of remove unused functions: time 0.002545/0.9026, allocations: 0.8932 MB / 0.9615 GB, free: 10.11 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.001647/0.9043, allocations: 0.9271 MB / 0.9624 GB, free: 9.184 MB / 0.7012 GB
Notification: Performance of simCode: created initialization part: time 0.004975/0.9092, allocations: 2.322 MB / 0.9647 GB, free: 6.805 MB / 0.7012 GB
Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.9093, allocations: 12 kB / 0.9647 GB, free: 6.793 MB / 0.7012 GB
Notification: Performance of simCode: created simulation system equations: time 0.003107/0.9124, allocations: 1.451 MB / 0.9661 GB, free: 5.32 MB / 0.7012 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003171/0.9155, allocations: 0.6677 MB / 0.9668 GB, free: 4.672 MB / 0.7012 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008527/0.9241, allocations: 4.393 MB / 0.9711 GB, free: 220 kB / 0.7012 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001491/0.9255, allocations: 1.577 MB / 0.9726 GB, free: 14.61 MB / 0.7169 GB
Notification: Performance of simCode: alias equations: time 0.001666/0.9272, allocations: 435.2 kB / 0.973 GB, free: 14.2 MB / 0.7169 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005644/0.9278, allocations: 191.4 kB / 0.9732 GB, free: 14.02 MB / 0.7169 GB
Notification: Performance of SimCode: time 1.052e-06/0.9278, allocations: 4 kB / 0.9732 GB, free: 14.01 MB / 0.7169 GB
Notification: Performance of Templates: time 0.08421/1.012, allocations: 47.41 MB / 1.02 GB, free: 14.95 MB / 0.7637 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=1200  -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 1200]
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: 8.109062707982957]