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.001824/0.001824, allocations: 85.48 kB / 19.44 MB, free: 336 kB / 13.93 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.002062/0.002062, allocations: 177.2 kB / 22.76 MB, free: 1.652 MB / 18.57 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.712/1.712, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.091/1.091, allocations: 118.6 MB / 378.2 MB, free: 1.488 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 482.9 MB, free: 8.293 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.789e-05, allocations: 5.234 kB / 482.9 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5938/0.5938, allocations: 230.2 MB / 0.6963 GB, free: 11.46 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.02448/0.6183, allocations: 22.58 MB / 0.7184 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003835/0.6221, allocations: 139 kB / 0.7185 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.00516/0.6273, allocations: 1.508 MB / 0.72 GB, free: 11.01 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.009408/0.6367, allocations: 2.961 MB / 0.7229 GB, free: 10.27 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006372/0.6431, allocations: 2.058 MB / 0.7249 GB, free: 10.07 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006721/0.6498, allocations: 4.7 MB / 0.7295 GB, free: 8.727 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001794/0.6516, allocations: 0.6972 MB / 0.7302 GB, free: 24.54 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00552/0.6571, allocations: 2.595 MB / 0.7327 GB, free: 23.65 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003733/0.6608, allocations: 1.965 MB / 0.7346 GB, free: 23.18 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0008617/0.6617, allocations: 314.7 kB / 0.7349 GB, free: 23.18 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007849/0.6695, allocations: 2.967 MB / 0.7378 GB, free: 22.57 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.6706, allocations: 0.707 MB / 0.7385 GB, free: 22.11 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002854/0.6735, allocations: 1.127 MB / 0.7396 GB, free: 21.67 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.6836, allocations: 5.247 MB / 0.7447 GB, free: 18.86 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.6836, allocations: 4 kB / 0.7447 GB, free: 18.86 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6836, allocations: 0 / 0.7447 GB, free: 18.86 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001147/0.6837, allocations: 0 / 0.7447 GB, free: 18.86 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 503 * Number of variables: 503 Notification: Performance of Generate backend data structure: time 0.007715/0.6915, allocations: 4.001 MB / 0.7486 GB, free: 16.07 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.6915, allocations: 9.156 kB / 0.7486 GB, free: 16.07 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.6925, allocations: 0.5431 MB / 0.7492 GB, free: 15.8 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004254/0.6968, allocations: 2.088 MB / 0.7512 GB, free: 14.43 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001519/0.6969, allocations: 148 kB / 0.7514 GB, free: 14.36 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004108/0.6973, allocations: 213.4 kB / 0.7516 GB, free: 14.28 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00442/0.7018, allocations: 2.268 MB / 0.7538 GB, free: 12.95 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.394e-05/0.7018, allocations: 3.938 kB / 0.7538 GB, free: 12.94 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001834/0.702, allocations: 78.38 kB / 0.7539 GB, free: 12.88 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.645e-05/0.7021, allocations: 78.03 kB / 0.7539 GB, free: 12.87 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003514/0.7056, allocations: 1.673 MB / 0.7556 GB, free: 12.13 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01532/0.7209, allocations: 8.519 MB / 0.7639 GB, free: 6.188 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003136/0.724, allocations: 1.693 MB / 0.7655 GB, free: 5.312 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/0.7257, allocations: 0.8925 MB / 0.7664 GB, free: 4.91 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006594/0.7323, allocations: 3.067 MB / 0.7694 GB, free: 2.707 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002183/0.7345, allocations: 1.077 MB / 0.7705 GB, free: 2.082 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 4.639e-06/0.7345, allocations: 7.188 kB / 0.7705 GB, free: 2.078 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.01417/0.7487, allocations: 5.732 MB / 0.7761 GB, free: 13.59 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.7488, allocations: 106.8 kB / 0.7762 GB, free: 13.47 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003295/0.7521, allocations: 1.973 MB / 0.7781 GB, free: 11.45 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002797/0.7523, allocations: 61.7 kB / 0.7781 GB, free: 11.38 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.754, allocations: 1.225 MB / 0.7793 GB, free: 10.14 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009792/0.755, allocations: 0.7447 MB / 0.7801 GB, free: 9.41 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006778/0.7557, allocations: 385.2 kB / 0.7804 GB, free: 9.023 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0002649/0.7559, allocations: 480.8 kB / 0.7809 GB, free: 8.551 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.7574, allocations: 0.6359 MB / 0.7815 GB, free: 7.902 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001965/0.7594, allocations: 0.956 MB / 0.7825 GB, free: 6.867 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004306/0.7637, allocations: 1.944 MB / 0.7844 GB, free: 4.855 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.7637, allocations: 0 / 0.7844 GB, free: 4.855 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.00618/0.7699, allocations: 2.5 MB / 0.7868 GB, free: 2.359 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.665e-05/0.77, allocations: 67.39 kB / 0.7869 GB, free: 2.281 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.77, allocations: 4 kB / 0.7869 GB, free: 2.277 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/0.7721, allocations: 0.5323 MB / 0.7874 GB, free: 1.742 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.7735, allocations: 330.6 kB / 0.7877 GB, free: 1.438 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.784, allocations: 7.218 MB / 0.7947 GB, free: 10.02 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.7858, allocations: 59.97 kB / 0.7948 GB, free: 9.957 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002498/0.786, allocations: 75.97 kB / 0.7949 GB, free: 9.883 MB / 0.6042 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: 16 * 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 (180): * Single equations (assignments): 176 * 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.001492/0.7875, allocations: 0.5072 MB / 0.7954 GB, free: 9.383 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001002/0.7885, allocations: 334.2 kB / 0.7957 GB, free: 9.055 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007051/0.7956, allocations: 3.293 MB / 0.7989 GB, free: 5.766 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/0.7956, allocations: 23.98 kB / 0.7989 GB, free: 5.742 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/0.7956, allocations: 8 kB / 0.7989 GB, free: 5.734 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/0.7957, allocations: 11.91 kB / 0.7989 GB, free: 5.723 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0109/0.8066, allocations: 5.1 MB / 0.8039 GB, free: 0.6211 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.8066, allocations: 3.984 kB / 0.8039 GB, free: 0.6172 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001318/0.8079, allocations: 307.8 kB / 0.8042 GB, free: 340 kB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/0.8101, allocations: 0.5441 MB / 0.8048 GB, free: 15.79 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001928/0.8102, allocations: 63.95 kB / 0.8048 GB, free: 15.72 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01056/0.8208, allocations: 7.22 MB / 0.8119 GB, free: 8.285 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-05/0.8208, allocations: 11.12 kB / 0.8119 GB, free: 8.277 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008315/0.8291, allocations: 3.589 MB / 0.8154 GB, free: 4.66 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001416/0.8306, allocations: 442.1 kB / 0.8158 GB, free: 4.227 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/0.8309, allocations: 51.92 kB / 0.8159 GB, free: 4.176 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.832, allocations: 59.97 kB / 0.8159 GB, free: 4.117 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004533/0.8325, allocations: 180.8 kB / 0.8161 GB, free: 3.945 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001919/0.8327, allocations: 75.95 kB / 0.8162 GB, free: 3.871 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.002126/0.8348, allocations: 1.238 MB / 0.8174 GB, free: 2.613 MB / 0.6198 GB Notification: Performance of sort global known variables: time 7e-08/0.8348, allocations: 0 / 0.8174 GB, free: 2.613 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.003327/0.8381, allocations: 0.9518 MB / 0.8183 GB, free: 1.66 MB / 0.6198 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.002023/0.8402, allocations: 0.9657 MB / 0.8192 GB, free: 0.75 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.005572/0.8457, allocations: 2.482 MB / 0.8217 GB, free: 14.22 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.8457, allocations: 0 / 0.8217 GB, free: 14.22 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.003328/0.8491, allocations: 1.596 MB / 0.8232 GB, free: 12.63 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005249/0.8543, allocations: 0.9895 MB / 0.8242 GB, free: 11.67 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.8648, allocations: 4.638 MB / 0.8287 GB, free: 6.953 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001453/0.8662, allocations: 1.103 MB / 0.8298 GB, free: 5.812 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.002143/0.8684, allocations: 463.5 kB / 0.8302 GB, free: 5.387 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006055/0.869, allocations: 216.4 kB / 0.8304 GB, free: 5.176 MB / 0.6355 GB Notification: Performance of SimCode: time 1.844e-06/0.869, allocations: 4 kB / 0.8304 GB, free: 5.172 MB / 0.6355 GB Notification: Performance of Templates: time 0.1009/0.9698, allocations: 54.05 MB / 0.8832 GB, free: 84 kB / 0.6823 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.Switch.pipe 2>&1) [Timeout 240] 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.923733612056822]