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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001196, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001232, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8224/0.8224, allocations: 89.61 MB / 380.6 MB, free: 11.47 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.000405, allocations: 13.88 kB / 459.9 MB, free: 24.35 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1647, allocations: 68.82 MB / 0.5163 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6131/0.7778, allocations: 191.6 MB / 0.7035 GB, free: 10.25 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.03057/0.8085, allocations: 20.92 MB / 0.7239 GB, free: 5.293 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004278/0.8128, allocations: 35.88 kB / 0.7239 GB, free: 5.258 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.006241/0.8191, allocations: 1.454 MB / 0.7254 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.8304, allocations: 2.461 MB / 0.7278 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.006107/0.8366, allocations: 1.301 MB / 0.729 GB, free: 20 kB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.006492/0.8431, allocations: 2.433 MB / 0.7314 GB, free: 13.58 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001709/0.8448, allocations: 0.8645 MB / 0.7323 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003135/0.848, allocations: 1.082 MB / 0.7333 GB, free: 11.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00331/0.8513, allocations: 1.526 MB / 0.7348 GB, free: 10.08 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.000419/0.8517, allocations: 104 kB / 0.7349 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009375/0.8611, allocations: 2.942 MB / 0.7378 GB, free: 7.035 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0007319/0.8619, allocations: 402.4 kB / 0.7382 GB, free: 6.641 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.001267/0.8632, allocations: 0.5005 MB / 0.7386 GB, free: 6.133 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.005962/0.8692, allocations: 3.152 MB / 0.7417 GB, free: 2.973 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.8692, allocations: 0 / 0.7417 GB, free: 2.973 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.755e-06/0.8692, allocations: 0 / 0.7417 GB, free: 2.973 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.299e-05/0.8693, allocations: 4 kB / 0.7417 GB, free: 2.969 MB / 0.545 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.006684/0.876, allocations: 2.687 MB / 0.7444 GB, free: 216 kB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.876, allocations: 8.031 kB / 0.7444 GB, free: 208 kB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005889/0.8766, allocations: 257 kB / 0.7446 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002139/0.8788, allocations: 1.196 MB / 0.7458 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.8789, allocations: 147.8 kB / 0.7459 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002989/0.8792, allocations: 203.9 kB / 0.7461 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003858/0.8831, allocations: 2.309 MB / 0.7484 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.8831, allocations: 7.938 kB / 0.7484 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001753/0.8833, allocations: 87.94 kB / 0.7485 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.362e-05/0.8834, allocations: 78.62 kB / 0.7485 GB, free: 11.85 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003866/0.8873, allocations: 2.249 MB / 0.7507 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01519/0.9025, allocations: 10.37 MB / 0.7608 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003275/0.9058, allocations: 1.923 MB / 0.7627 GB, free: 12.34 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009484/0.9153, allocations: 6.739 MB / 0.7693 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001885/0.9172, allocations: 1.064 MB / 0.7703 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=193): time 5.671e-06/0.9173, allocations: 0 / 0.7703 GB, free: 3.703 MB / 0.5762 GB Notification: Performance of matching and sorting (n=198): time 0.01285/0.9301, allocations: 6.406 MB / 0.7766 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.9303, allocations: 102.9 kB / 0.7767 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001794/0.9321, allocations: 1.129 MB / 0.7778 GB, free: 11.83 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001466/0.9322, allocations: 57.7 kB / 0.7779 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007974/0.933, allocations: 0.7872 MB / 0.7786 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005773/0.9336, allocations: 0.6544 MB / 0.7793 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.906e-05/0.9337, allocations: 36 kB / 0.7793 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0003162/0.934, allocations: 369.9 kB / 0.7797 GB, free: 9.906 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.9353, allocations: 0.6911 MB / 0.7803 GB, free: 9.215 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001419/0.9367, allocations: 0.841 MB / 0.7811 GB, free: 8.344 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001641/0.9384, allocations: 0.8598 MB / 0.782 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.9384, allocations: 0 / 0.782 GB, free: 7.48 MB / 0.5919 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004817/0.9432, allocations: 2.41 MB / 0.7843 GB, free: 5.039 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.464e-05/0.9433, allocations: 59.41 kB / 0.7844 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.9433, allocations: 0 / 0.7844 GB, free: 4.969 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/0.9449, allocations: 473.3 kB / 0.7848 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001513/0.9464, allocations: 327.5 kB / 0.7852 GB, free: 4.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008796/0.9552, allocations: 6.1 MB / 0.7911 GB, free: 13.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002096/0.9574, allocations: 135.8 kB / 0.7912 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002339/0.9576, allocations: 75.97 kB / 0.7913 GB, free: 13.61 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: 9 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,$whenCondition2,$PRE.pulse1.T_start,pulse1.T_start,$PRE.pulse1.count,pulse1.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001175/0.9588, allocations: 455 kB / 0.7918 GB, free: 13.15 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003342/0.9591, allocations: 177.8 kB / 0.7919 GB, free: 12.98 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005946/0.9651, allocations: 3.13 MB / 0.795 GB, free: 9.82 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.859e-05/0.9651, allocations: 20 kB / 0.795 GB, free: 9.801 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.9652, allocations: 12 kB / 0.795 GB, free: 9.789 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.148e-05/0.9652, allocations: 11.95 kB / 0.795 GB, free: 9.777 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009312/0.9745, allocations: 5.212 MB / 0.8001 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.9745, allocations: 0 / 0.8001 GB, free: 4.473 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001227/0.9758, allocations: 311.5 kB / 0.8004 GB, free: 4.168 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001497/0.9773, allocations: 497.9 kB / 0.8009 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001867/0.9775, allocations: 67.94 kB / 0.8009 GB, free: 3.609 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3446/1.322, allocations: 6.089 MB / 0.8069 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/1.322, allocations: 4.141 kB / 0.8069 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007214/1.329, allocations: 3.685 MB / 0.8105 GB, free: 221.2 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001258/1.331, allocations: 0.5139 MB / 0.811 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/1.331, allocations: 50.19 kB / 0.811 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.332, allocations: 129.8 kB / 0.8112 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/1.332, allocations: 170.2 kB / 0.8113 GB, free: 221.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/1.333, allocations: 81.95 kB / 0.8114 GB, free: 221 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001171/1.334, allocations: 0.8119 MB / 0.8122 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.4e-07/1.334, allocations: 0 / 0.8122 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.002764/1.337, allocations: 0.8877 MB / 0.8131 GB, free: 220.6 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (switch.tanValve.outlet.m_flow,flowResistance2.inlet.m_flow,fourWaySwitch.switch.tanValve.outlet.m_flow,fourWaySwitch.switch.tanValve1.inlet.m_flow,fourWaySwitch.switch1.tanValve.outlet.m_flow,fourWaySwitch.switch1.tanValve1.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 10,(4,87.5%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001618/1.338, allocations: 0.9743 MB / 0.814 GB, free: 220.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004366/1.343, allocations: 2.431 MB / 0.8164 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.343, allocations: 0 / 0.8164 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.00278/1.345, allocations: 1.526 MB / 0.8179 GB, free: 218.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00317/1.349, allocations: 0.5454 MB / 0.8184 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007824/1.356, allocations: 4.806 MB / 0.8231 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/1.358, allocations: 1.528 MB / 0.8246 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002216/1.36, allocations: 396.3 kB / 0.825 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005618/1.361, allocations: 165.9 kB / 0.8251 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of SimCode: time 2.144e-06/1.361, allocations: 1.062 kB / 0.8251 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of Templates: time 0.06253/1.423, allocations: 41.53 MB / 0.8657 GB, free: 186.9 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.makefile (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) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.Switch_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches