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.001821/0.001821, allocations: 85.36 kB / 19.43 MB, free: 1.844 MB / 14.72 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.002003/0.002003, allocations: 160.4 kB / 22.75 MB, free: 4.398 MB / 14.72 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.507/1.507, allocations: 177.1 MB / 203.1 MB, free: 8.121 MB / 190.1 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.045/1.045, allocations: 118.6 MB / 378.2 MB, free: 5.102 MB / 350.1 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 2.014e-06/2.014e-06, allocations: 0 / 482.9 MB, free: 12.56 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.424e-05/3.626e-05, allocations: 2.312 kB / 482.9 MB, free: 12.55 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.4531/0.4531, allocations: 206.3 MB / 0.673 GB, free: 4.949 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03074/0.4839, allocations: 19.94 MB / 0.6925 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003152/0.487, allocations: 134.8 kB / 0.6926 GB, free: 0.8203 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00505/0.4921, allocations: 1.513 MB / 0.6941 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.009684/0.5018, allocations: 2.965 MB / 0.697 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006814/0.5086, allocations: 2.047 MB / 0.699 GB, free: 10.26 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.007573/0.5162, allocations: 4.7 MB / 0.7036 GB, free: 5.535 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00179/0.518, allocations: 0.6877 MB / 0.7043 GB, free: 4.789 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005593/0.5235, allocations: 2.583 MB / 0.7068 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003829/0.5274, allocations: 1.925 MB / 0.7087 GB, free: 276 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0008057/0.5282, allocations: 312 kB / 0.709 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007278/0.5355, allocations: 2.971 MB / 0.7119 GB, free: 12.99 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0009898/0.5365, allocations: 0.6926 MB / 0.7125 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002328/0.5388, allocations: 1.118 MB / 0.7136 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009983/0.5488, allocations: 5.227 MB / 0.7187 GB, free: 5.93 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5488, allocations: 4 kB / 0.7187 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.202e-06/0.5488, allocations: 0 / 0.7187 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001246/0.5489, allocations: 0 / 0.7187 GB, free: 5.926 MB / 0.5762 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.008836/0.5577, allocations: 3.611 MB / 0.7223 GB, free: 2.246 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.5578, allocations: 16.03 kB / 0.7223 GB, free: 2.23 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001299/0.5591, allocations: 0.5335 MB / 0.7228 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00427/0.5634, allocations: 2.099 MB / 0.7248 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001338/0.5635, allocations: 148.5 kB / 0.725 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000421/0.5639, allocations: 207.8 kB / 0.7252 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00504/0.5689, allocations: 2.421 MB / 0.7275 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.693e-05/0.569, allocations: 3.938 kB / 0.7276 GB, free: 12.69 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002097/0.5692, allocations: 76 kB / 0.7276 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001031/0.5693, allocations: 82.69 kB / 0.7277 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004595/0.5739, allocations: 2.276 MB / 0.7299 GB, free: 10.25 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01347/0.5874, allocations: 6.527 MB / 0.7363 GB, free: 3.637 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003629/0.591, allocations: 1.739 MB / 0.738 GB, free: 1.887 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/0.5931, allocations: 0.9428 MB / 0.7389 GB, free: 0.9414 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006845/0.5999, allocations: 2.945 MB / 0.7418 GB, free: 13.97 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002165/0.6021, allocations: 1.048 MB / 0.7428 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=193): time 4.528e-06/0.6021, allocations: 0 / 0.7428 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=198): time 0.01465/0.6167, allocations: 6.109 MB / 0.7488 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.484e-05/0.6168, allocations: 102.9 kB / 0.7489 GB, free: 6.617 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002605/0.6194, allocations: 1.578 MB / 0.7504 GB, free: 5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.6197, allocations: 61.7 kB / 0.7505 GB, free: 4.934 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.6208, allocations: 1.081 MB / 0.7515 GB, free: 3.84 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008168/0.6216, allocations: 0.6815 MB / 0.7522 GB, free: 3.152 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006763/0.6223, allocations: 311.5 kB / 0.7525 GB, free: 2.844 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001549/0.6224, allocations: 305.1 kB / 0.7528 GB, free: 2.543 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.624, allocations: 0.7374 MB / 0.7535 GB, free: 1.793 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001838/0.6259, allocations: 0.9361 MB / 0.7544 GB, free: 0.793 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008123/0.634, allocations: 2.599 MB / 0.757 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.634, allocations: 2.562 kB / 0.757 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.006238/0.6402, allocations: 2.639 MB / 0.7595 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 7.37e-05/0.6403, allocations: 67.39 kB / 0.7596 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.6403, allocations: 4 kB / 0.7596 GB, free: 11.36 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00214/0.6425, allocations: 0.5248 MB / 0.7601 GB, free: 10.83 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.6441, allocations: 339.5 kB / 0.7604 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009505/0.6536, allocations: 6.13 MB / 0.7664 GB, free: 4.168 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001615/0.6552, allocations: 67.58 kB / 0.7665 GB, free: 4.105 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002196/0.6554, allocations: 75.97 kB / 0.7666 GB, free: 4.031 MB / 0.6231 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.001161/0.6566, allocations: 496.1 kB / 0.767 GB, free: 3.539 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008713/0.6574, allocations: 342.3 kB / 0.7674 GB, free: 3.203 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006634/0.6641, allocations: 3.115 MB / 0.7704 GB, free: 112 kB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-05/0.6641, allocations: 24 kB / 0.7704 GB, free: 88 kB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.6641, allocations: 8 kB / 0.7704 GB, free: 80 kB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.804e-05/0.6641, allocations: 15.89 kB / 0.7705 GB, free: 64 kB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009802/0.6739, allocations: 4.6 MB / 0.7749 GB, free: 11.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.674, allocations: 0 / 0.7749 GB, free: 11.39 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/0.6754, allocations: 315.8 kB / 0.7752 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002158/0.6775, allocations: 0.5498 MB / 0.7758 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002249/0.6778, allocations: 71.95 kB / 0.7759 GB, free: 10.46 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009124/0.6869, allocations: 6.124 MB / 0.7818 GB, free: 4.129 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.6869, allocations: 7.969 kB / 0.7818 GB, free: 4.121 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008132/0.695, allocations: 3.762 MB / 0.7855 GB, free: 324 kB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2091/0.9041, allocations: 433.4 kB / 0.7859 GB, free: 241.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009465/0.9051, allocations: 49.22 kB / 0.786 GB, free: 241.8 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001845/0.9069, allocations: 63.45 kB / 0.786 GB, free: 241.8 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006091/0.9075, allocations: 178.9 kB / 0.7862 GB, free: 241.8 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002752/0.9078, allocations: 74.16 kB / 0.7863 GB, free: 241.8 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001786/0.9096, allocations: 1.099 MB / 0.7874 GB, free: 241.6 MB / 0.6387 GB Notification: Performance of sort global known variables: time 9e-08/0.9096, allocations: 1.031 kB / 0.7874 GB, free: 241.6 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.00288/0.9125, allocations: 0.9534 MB / 0.7883 GB, free: 241.6 MB / 0.6387 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.001771/0.9142, allocations: 0.9648 MB / 0.7892 GB, free: 241.5 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.004263/0.9185, allocations: 2.379 MB / 0.7916 GB, free: 241.1 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/0.9185, allocations: 6.094 kB / 0.7916 GB, free: 241.1 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.00269/0.9212, allocations: 1.444 MB / 0.793 GB, free: 240.5 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004467/0.9256, allocations: 0.9965 MB / 0.7939 GB, free: 240.3 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009486/0.9351, allocations: 4.788 MB / 0.7986 GB, free: 238 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001469/0.9366, allocations: 1.101 MB / 0.7997 GB, free: 237.8 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001986/0.9386, allocations: 470.7 kB / 0.8001 GB, free: 237.7 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/0.9393, allocations: 224 kB / 0.8004 GB, free: 237.7 MB / 0.6387 GB Notification: Performance of SimCode: time 1.563e-06/0.9393, allocations: 0 / 0.8004 GB, free: 237.7 MB / 0.6387 GB Notification: Performance of Templates: time 0.07819/1.017, allocations: 53.72 MB / 0.8528 GB, free: 202.5 MB / 0.6387 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.605602975934744]