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.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.002348/0.002348, allocations: 92.7 kB / 19.44 MB, free: 320 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.00287/0.00287, allocations: 161.3 kB / 22.75 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.613/1.613, allocations: 177.1 MB / 203.1 MB, free: 5.203 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 1.055/1.055, allocations: 118.6 MB / 378.2 MB, free: 1.426 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_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 1.532e-06/1.532e-06, allocations: 0 / 482.9 MB, free: 8.332 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.383e-05/2.537e-05, allocations: 6.141 kB / 482.9 MB, free: 8.328 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.Switch): time 0.5709/0.5709, allocations: 206.3 MB / 0.673 GB, free: 9.875 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.02524/0.5961, allocations: 19.94 MB / 0.6925 GB, free: 9.727 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003285/0.5994, allocations: 135.8 kB / 0.6926 GB, free: 9.727 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.004646/0.6041, allocations: 1.513 MB / 0.6941 GB, free: 9.664 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.008593/0.6127, allocations: 2.969 MB / 0.697 GB, free: 9.09 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.006539/0.6192, allocations: 2.049 MB / 0.699 GB, free: 8.891 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.006955/0.6262, allocations: 4.699 MB / 0.7036 GB, free: 7.551 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.6281, allocations: 0.6832 MB / 0.7042 GB, free: 23.37 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0062/0.6343, allocations: 2.59 MB / 0.7068 GB, free: 23.11 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003671/0.638, allocations: 1.91 MB / 0.7086 GB, free: 22.94 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.639, allocations: 315.5 kB / 0.7089 GB, free: 22.94 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008106/0.6471, allocations: 2.978 MB / 0.7119 GB, free: 22.75 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.6484, allocations: 0.6935 MB / 0.7125 GB, free: 22.61 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.002903/0.6513, allocations: 1.116 MB / 0.7136 GB, free: 22.48 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.6632, allocations: 5.236 MB / 0.7187 GB, free: 21.96 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.6632, allocations: 1 kB / 0.7187 GB, free: 21.96 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.744e-06/0.6632, allocations: 0 / 0.7187 GB, free: 21.96 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0001508/0.6634, allocations: 0 / 0.7187 GB, free: 21.96 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.009253/0.6726, allocations: 3.611 MB / 0.7223 GB, free: 20.32 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.6727, allocations: 11.41 kB / 0.7223 GB, free: 20.32 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001273/0.6739, allocations: 0.5305 MB / 0.7228 GB, free: 20.12 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0042/0.6781, allocations: 2.093 MB / 0.7248 GB, free: 19.57 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.6782, allocations: 157.1 kB / 0.725 GB, free: 19.56 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004696/0.6787, allocations: 215.4 kB / 0.7252 GB, free: 19.55 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004888/0.6836, allocations: 2.409 MB / 0.7275 GB, free: 18.64 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.796e-05/0.6836, allocations: 6.625 kB / 0.7275 GB, free: 18.64 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002055/0.6839, allocations: 80.25 kB / 0.7276 GB, free: 18.58 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.669e-05/0.6839, allocations: 74.67 kB / 0.7277 GB, free: 18.58 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004329/0.6883, allocations: 2.28 MB / 0.7299 GB, free: 17.53 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.7028, allocations: 6.526 MB / 0.7363 GB, free: 12.96 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003938/0.7067, allocations: 1.735 MB / 0.738 GB, free: 11.98 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002226/0.7089, allocations: 0.9482 MB / 0.7389 GB, free: 11.5 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008/0.7169, allocations: 2.949 MB / 0.7418 GB, free: 9.438 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002575/0.7195, allocations: 1.048 MB / 0.7428 GB, free: 8.797 MB / 0.573 GB Notification: Performance of pre-optimization done (n=193): time 6.523e-06/0.7195, allocations: 6.781 kB / 0.7428 GB, free: 8.793 MB / 0.573 GB Notification: Performance of matching and sorting (n=198): time 0.0166/0.7361, allocations: 6.103 MB / 0.7488 GB, free: 5.297 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.7362, allocations: 104.8 kB / 0.7489 GB, free: 5.195 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/0.7388, allocations: 1.583 MB / 0.7504 GB, free: 4.32 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.000447/0.7393, allocations: 65.97 kB / 0.7505 GB, free: 4.258 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.7405, allocations: 1.061 MB / 0.7515 GB, free: 3.316 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001035/0.7415, allocations: 0.6852 MB / 0.7522 GB, free: 2.719 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006502/0.7422, allocations: 313.5 kB / 0.7525 GB, free: 2.539 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001977/0.7424, allocations: 301.1 kB / 0.7528 GB, free: 2.242 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.744, allocations: 0.7398 MB / 0.7535 GB, free: 1.82 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.7459, allocations: 0.932 MB / 0.7544 GB, free: 1.215 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007967/0.7539, allocations: 2.601 MB / 0.757 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.7539, allocations: 0 / 0.757 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.007188/0.7611, allocations: 2.654 MB / 0.7595 GB, free: 12.82 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.387e-05/0.7611, allocations: 62.22 kB / 0.7596 GB, free: 12.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.707e-05/0.7612, allocations: 4 kB / 0.7596 GB, free: 12.75 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/0.7634, allocations: 0.529 MB / 0.7601 GB, free: 12.22 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.7651, allocations: 334.6 kB / 0.7604 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01045/0.7756, allocations: 6.132 MB / 0.7664 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001897/0.7775, allocations: 63.95 kB / 0.7665 GB, free: 5.543 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004279/0.7779, allocations: 80.08 kB / 0.7666 GB, free: 5.465 MB / 0.5886 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.00145/0.7794, allocations: 497.2 kB / 0.767 GB, free: 4.988 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/0.7805, allocations: 341.3 kB / 0.7674 GB, free: 4.656 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007835/0.7883, allocations: 3.124 MB / 0.7704 GB, free: 1.566 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.863e-05/0.7883, allocations: 20 kB / 0.7704 GB, free: 1.547 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.981e-05/0.7884, allocations: 8 kB / 0.7704 GB, free: 1.539 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.524e-05/0.7884, allocations: 11.91 kB / 0.7705 GB, free: 1.527 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/0.8007, allocations: 4.613 MB / 0.775 GB, free: 12.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.8007, allocations: 8.031 kB / 0.775 GB, free: 12.92 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/0.8021, allocations: 307.4 kB / 0.7753 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002157/0.8042, allocations: 0.5461 MB / 0.7758 GB, free: 12.09 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002014/0.8044, allocations: 71.95 kB / 0.7759 GB, free: 12.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009892/0.8143, allocations: 6.135 MB / 0.7819 GB, free: 5.703 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.8143, allocations: 4 kB / 0.7819 GB, free: 5.699 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008277/0.8226, allocations: 3.753 MB / 0.7855 GB, free: 1.934 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00138/0.824, allocations: 446.1 kB / 0.786 GB, free: 1.496 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004233/0.8244, allocations: 44 kB / 0.786 GB, free: 1.453 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/0.8255, allocations: 59.95 kB / 0.7861 GB, free: 1.395 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004628/0.826, allocations: 184.8 kB / 0.7862 GB, free: 1.215 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004611/0.8265, allocations: 71.95 kB / 0.7863 GB, free: 1.145 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001935/0.8284, allocations: 1.102 MB / 0.7874 GB, free: 24 kB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.8284, allocations: 3.938 kB / 0.7874 GB, free: 20 kB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003023/0.8314, allocations: 0.9632 MB / 0.7883 GB, free: 15.09 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.001809/0.8332, allocations: 0.9733 MB / 0.7893 GB, free: 14.17 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.004984/0.8382, allocations: 2.364 MB / 0.7916 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.8382, allocations: 0 / 0.7916 GB, free: 11.77 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003111/0.8413, allocations: 1.453 MB / 0.793 GB, free: 10.33 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005072/0.8464, allocations: 0.9862 MB / 0.794 GB, free: 9.367 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01086/0.8573, allocations: 4.781 MB / 0.7986 GB, free: 4.523 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0015/0.8588, allocations: 1.11 MB / 0.7997 GB, free: 3.375 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.002035/0.8608, allocations: 470.6 kB / 0.8002 GB, free: 2.938 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006391/0.8614, allocations: 216.4 kB / 0.8004 GB, free: 2.727 MB / 0.6198 GB Notification: Performance of SimCode: time 1.183e-06/0.8614, allocations: 3.938 kB / 0.8004 GB, free: 2.723 MB / 0.6198 GB Notification: Performance of Templates: time 0.09803/0.9595, allocations: 53.79 MB / 0.8529 GB, free: 13.93 MB / 0.6823 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.825106202973984]