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 (/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.001016/0.001016, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00114/0.00114, allocations: 168.7 kB / 15.95 MB, free: 204 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.448/1.448, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8927/0.8927, allocations: 89.63 MB / 380.7 MB, free: 11.4 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0004286/0.0004287, allocations: 11.11 kB / 460 MB, free: 24.37 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1928, allocations: 68.83 MB / 0.5165 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.6964/0.8892, allocations: 207.6 MB / 0.7192 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02872/0.918, allocations: 23.31 MB / 0.7419 GB, free: 4.297 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003466/0.9215, allocations: 35.88 kB / 0.742 GB, free: 4.262 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.004958/0.9265, allocations: 1.415 MB / 0.7434 GB, free: 2.84 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008602/0.9351, allocations: 2.369 MB / 0.7457 GB, free: 468 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006845/0.942, allocations: 1.281 MB / 0.7469 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.007809/0.9498, allocations: 4.05 MB / 0.7509 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002376/0.9522, allocations: 0.8757 MB / 0.7517 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003316/0.9556, allocations: 1.171 MB / 0.7529 GB, free: 9.035 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003952/0.9596, allocations: 1.795 MB / 0.7546 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.9606, allocations: 108 kB / 0.7547 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009033/0.9697, allocations: 2.745 MB / 0.7574 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.9708, allocations: 402.1 kB / 0.7578 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001612/0.9724, allocations: 0.4966 MB / 0.7583 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.006534/0.979, allocations: 3.195 MB / 0.7614 GB, free: 284 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.979, allocations: 0 / 0.7614 GB, free: 284 kB / 0.5606 GB Notification: Performance of FrontEnd: time 3.666e-06/0.979, allocations: 0 / 0.7614 GB, free: 284 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001562/0.9792, allocations: 3.938 kB / 0.7614 GB, free: 280 kB / 0.5606 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.007673/0.9869, allocations: 2.679 MB / 0.764 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.217e-05/0.9869, allocations: 8.031 kB / 0.764 GB, free: 13.52 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001027/0.988, allocations: 260.9 kB / 0.7643 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002856/0.9908, allocations: 1.203 MB / 0.7655 GB, free: 12 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001506/0.991, allocations: 143.8 kB / 0.7656 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005891/0.9916, allocations: 199.9 kB / 0.7658 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005694/0.9973, allocations: 2.34 MB / 0.7681 GB, free: 9.301 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.578e-05/0.9974, allocations: 3.938 kB / 0.7681 GB, free: 9.297 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002679/0.9976, allocations: 76 kB / 0.7681 GB, free: 9.223 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001134/0.9978, allocations: 74.69 kB / 0.7682 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004652/1.002, allocations: 2.249 MB / 0.7704 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01626/1.019, allocations: 10.21 MB / 0.7804 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003567/1.022, allocations: 1.927 MB / 0.7823 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/1.024, allocations: 1.069 MB / 0.7833 GB, free: 8.719 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009581/1.034, allocations: 6.603 MB / 0.7898 GB, free: 1.297 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002272/1.036, allocations: 1.068 MB / 0.7908 GB, free: 216 kB / 0.5919 GB Notification: Performance of pre-optimization done (n=193): time 7.183e-06/1.036, allocations: 0 / 0.7908 GB, free: 216 kB / 0.5919 GB Notification: Performance of matching and sorting (n=198): time 0.01505/1.051, allocations: 6.419 MB / 0.7971 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.655e-05/1.052, allocations: 98.98 kB / 0.7972 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002349/1.054, allocations: 1.129 MB / 0.7983 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001643/1.054, allocations: 65.7 kB / 0.7983 GB, free: 8.258 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008797/1.055, allocations: 0.7794 MB / 0.7991 GB, free: 7.469 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008008/1.056, allocations: 0.6545 MB / 0.7997 GB, free: 6.805 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001306/1.056, allocations: 36 kB / 0.7998 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002222/1.056, allocations: 373.9 kB / 0.8001 GB, free: 6.398 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/1.058, allocations: 0.6949 MB / 0.8008 GB, free: 5.703 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001479/1.059, allocations: 0.8527 MB / 0.8016 GB, free: 4.824 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00159/1.061, allocations: 0.852 MB / 0.8025 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/1.061, allocations: 4 kB / 0.8025 GB, free: 3.957 MB / 0.6075 GB Notification: Performance of matching and sorting (n=217) (initialization): time 0.004916/1.066, allocations: 2.422 MB / 0.8048 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 7.398e-05/1.066, allocations: 67.39 kB / 0.8049 GB, free: 1.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/1.066, allocations: 3.984 kB / 0.8049 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001576/1.067, allocations: 467 kB / 0.8053 GB, free: 0.9648 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001273/1.069, allocations: 335.5 kB / 0.8057 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3893/1.458, allocations: 5.933 MB / 0.8115 GB, free: 223.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/1.46, allocations: 134.5 kB / 0.8116 GB, free: 223.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002027/1.46, allocations: 71.45 kB / 0.8117 GB, free: 223.3 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,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009544/1.461, allocations: 457.9 kB / 0.8121 GB, free: 223 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/1.461, allocations: 164.8 kB / 0.8123 GB, free: 223 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005781/1.467, allocations: 3.138 MB / 0.8153 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.597e-05/1.467, allocations: 21.06 kB / 0.8153 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.467, allocations: 7.969 kB / 0.8153 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.477e-05/1.467, allocations: 11.44 kB / 0.8154 GB, free: 221.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008308/1.476, allocations: 5.166 MB / 0.8204 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/1.476, allocations: 3.281 kB / 0.8204 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001246/1.477, allocations: 314.8 kB / 0.8207 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/1.478, allocations: 497.6 kB / 0.8212 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/1.479, allocations: 64.48 kB / 0.8212 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006687/1.485, allocations: 5.953 MB / 0.8271 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/1.485, allocations: 4.938 kB / 0.8271 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006876/1.492, allocations: 3.653 MB / 0.8306 GB, free: 213 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/1.494, allocations: 484.8 kB / 0.8311 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002695/1.494, allocations: 45.62 kB / 0.8311 GB, free: 212.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/1.495, allocations: 134.6 kB / 0.8313 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004637/1.496, allocations: 176.8 kB / 0.8314 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001874/1.496, allocations: 72.48 kB / 0.8315 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001397/1.497, allocations: 0.8133 MB / 0.8323 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.31e-07/1.497, allocations: 4.156 kB / 0.8323 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.003647/1.501, allocations: 0.8904 MB / 0.8332 GB, free: 212.1 MB / 0.6075 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 (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,93.8%) 28} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001947/1.503, allocations: 0.9733 MB / 0.8341 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.004925/1.508, allocations: 2.433 MB / 0.8365 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/1.508, allocations: 1.156 kB / 0.8365 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.002862/1.511, allocations: 1.54 MB / 0.838 GB, free: 210 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004014/1.515, allocations: 0.5886 MB / 0.8386 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008103/1.523, allocations: 4.825 MB / 0.8433 GB, free: 207 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/1.524, allocations: 1.493 MB / 0.8447 GB, free: 206.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.00197/1.526, allocations: 392.1 kB / 0.8451 GB, free: 206 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006537/1.527, allocations: 169.3 kB / 0.8453 GB, free: 206 MB / 0.6075 GB Notification: Performance of SimCode: time 2.104e-06/1.527, allocations: 7.938 kB / 0.8453 GB, free: 206 MB / 0.6075 GB Notification: Performance of Templates: time 0.06408/1.591, allocations: 41.71 MB / 0.886 GB, free: 168.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches