Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001044/0.001044, allocations: 80.81 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001221/0.001221, allocations: 173 kB / 23.36 MB, free: 1.133 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 0.9902/0.9902, allocations: 177.1 MB / 203.8 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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 0.7419/0.7419, allocations: 118.6 MB / 378.9 MB, free: 1.367 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.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 430.9 MB, free: 13.31 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.744e-05/2.902e-05, allocations: 2.312 kB / 430.9 MB, free: 13.31 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3413/0.3413, allocations: 135.4 MB / 0.553 GB, free: 3.836 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.006268/0.3476, allocations: 3.767 MB / 0.5567 GB, free: 72 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007235/0.3483, allocations: 67.38 kB / 0.5568 GB, free: 4 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0007707/0.3491, allocations: 357.2 kB / 0.5571 GB, free: 15.65 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002122/0.3512, allocations: 1.242 MB / 0.5583 GB, free: 14.4 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0014/0.3526, allocations: 0.6856 MB / 0.559 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.002673/0.3553, allocations: 2.788 MB / 0.5617 GB, free: 10.92 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004703/0.3557, allocations: 310.7 kB / 0.562 GB, free: 10.58 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.3575, allocations: 1.438 MB / 0.5634 GB, free: 9.137 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001476/0.3589, allocations: 1.251 MB / 0.5646 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001891/0.3591, allocations: 148 kB / 0.5648 GB, free: 7.738 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008998/0.36, allocations: 0.5267 MB / 0.5653 GB, free: 7.211 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002712/0.3603, allocations: 390.5 kB / 0.5657 GB, free: 6.828 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0005523/0.3609, allocations: 0.6038 MB / 0.5662 GB, free: 6.227 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001652/0.3625, allocations: 1.651 MB / 0.5679 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3625, allocations: 0 / 0.5679 GB, free: 4.57 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.193e-06/0.3625, allocations: 4 kB / 0.5679 GB, free: 4.566 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.49e-05/0.3625, allocations: 0 / 0.5679 GB, free: 4.566 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.002516/0.365, allocations: 1.887 MB / 0.5697 GB, free: 2.641 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.3651, allocations: 12.03 kB / 0.5697 GB, free: 2.629 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003872/0.3655, allocations: 256.4 kB / 0.57 GB, free: 2.379 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001185/0.3666, allocations: 0.8288 MB / 0.5708 GB, free: 1.508 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.463e-05/0.3667, allocations: 90.78 kB / 0.5709 GB, free: 1.418 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.3669, allocations: 124.3 kB / 0.571 GB, free: 1.297 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001194/0.368, allocations: 0.9313 MB / 0.5719 GB, free: 328 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.348e-05/0.3681, allocations: 0 / 0.5719 GB, free: 328 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.533e-05/0.3681, allocations: 51.94 kB / 0.5719 GB, free: 276 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.3682, allocations: 28 kB / 0.572 GB, free: 248 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008541/0.369, allocations: 0.4956 MB / 0.5724 GB, free: 15.73 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.3727, allocations: 2.527 MB / 0.5749 GB, free: 13.17 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001056/0.3738, allocations: 0.7467 MB / 0.5756 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003822/0.3742, allocations: 260.7 kB / 0.5759 GB, free: 12.16 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002366/0.3766, allocations: 1.41 MB / 0.5773 GB, free: 10.73 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005433/0.3771, allocations: 424.6 kB / 0.5777 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=128): time 2.384e-06/0.3771, allocations: 0 / 0.5777 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of matching and sorting (n=129): time 0.002294/0.3794, allocations: 1.76 MB / 0.5794 GB, free: 8.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.3794, allocations: 64.72 kB / 0.5794 GB, free: 8.441 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.3798, allocations: 0.6287 MB / 0.5801 GB, free: 7.801 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.031e-05/0.3799, allocations: 45.7 kB / 0.5801 GB, free: 7.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.38, allocations: 423.3 kB / 0.5805 GB, free: 7.332 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002228/0.3803, allocations: 463.8 kB / 0.581 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002023/0.3805, allocations: 194.8 kB / 0.5811 GB, free: 6.68 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.134e-05/0.3806, allocations: 357.7 kB / 0.5815 GB, free: 6.324 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/0.3808, allocations: 187.1 kB / 0.5817 GB, free: 6.133 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002694/0.3811, allocations: 303 kB / 0.5819 GB, free: 5.812 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005869/0.3817, allocations: 0.5772 MB / 0.5825 GB, free: 5.207 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.3817, allocations: 0 / 0.5825 GB, free: 5.207 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.000906/0.3826, allocations: 0.7796 MB / 0.5833 GB, free: 4.402 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.097e-05/0.3826, allocations: 37.7 kB / 0.5833 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.3826, allocations: 0 / 0.5833 GB, free: 4.359 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002829/0.3829, allocations: 120.7 kB / 0.5834 GB, free: 4.238 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004802/0.3834, allocations: 239.7 kB / 0.5837 GB, free: 4.004 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.385, allocations: 1.907 MB / 0.5855 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.3853, allocations: 35.98 kB / 0.5855 GB, free: 1.977 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.738e-05/0.3853, allocations: 38.56 kB / 0.5856 GB, free: 1.941 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002044/0.3855, allocations: 172.5 kB / 0.5857 GB, free: 1.762 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001783/0.3857, allocations: 131.8 kB / 0.5859 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001467/0.3872, allocations: 1.387 MB / 0.5872 GB, free: 304 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.3872, allocations: 12 kB / 0.5872 GB, free: 292 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.3872, allocations: 4 kB / 0.5872 GB, free: 288 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.3872, allocations: 7.922 kB / 0.5873 GB, free: 280 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.389, allocations: 1.625 MB / 0.5888 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.389, allocations: 3.984 kB / 0.5888 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.3895, allocations: 235.7 kB / 0.5891 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002459/0.3897, allocations: 122 kB / 0.5892 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/0.3898, allocations: 32.73 kB / 0.5892 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.391, allocations: 1.787 MB / 0.591 GB, free: 12.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.391, allocations: 3.938 kB / 0.591 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001222/0.3922, allocations: 1.165 MB / 0.5921 GB, free: 11.13 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.3925, allocations: 191.1 kB / 0.5923 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.3925, allocations: 31.31 kB / 0.5923 GB, free: 10.92 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002422/0.3928, allocations: 31.98 kB / 0.5923 GB, free: 10.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.3929, allocations: 101.1 kB / 0.5924 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.946e-05/0.393, allocations: 31.98 kB / 0.5925 GB, free: 10.76 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002251/0.3932, allocations: 328.6 kB / 0.5928 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7e-08/0.3932, allocations: 3.938 kB / 0.5928 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006522/0.3938, allocations: 455.5 kB / 0.5932 GB, free: 9.973 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000325/0.3942, allocations: 243.8 kB / 0.5935 GB, free: 9.727 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009339/0.3951, allocations: 0.8982 MB / 0.5943 GB, free: 8.793 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.183e-06/0.3951, allocations: 12 kB / 0.5943 GB, free: 8.781 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005622/0.3957, allocations: 0.5719 MB / 0.5949 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001107/0.3968, allocations: 0.5122 MB / 0.5954 GB, free: 7.715 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002946/0.3997, allocations: 2.349 MB / 0.5977 GB, free: 5.312 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001838/0.3999, allocations: 257.8 kB / 0.5979 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005803/0.4005, allocations: 284.5 kB / 0.5982 GB, free: 4.754 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007257/0.4012, allocations: 415.1 kB / 0.5986 GB, free: 4.34 MB / 0.5417 GB Notification: Performance of SimCode: time 1.413e-06/0.4012, allocations: 0 / 0.5986 GB, free: 4.34 MB / 0.5417 GB Notification: Performance of Templates: time 0.02853/0.4297, allocations: 26.66 MB / 0.6246 GB, free: 10.15 MB / 0.573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.539510511793196]