Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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.001054/0.001054, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001004/0.002057, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0006761/0.0006761, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009602/0.001636, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9543/0.9543, allocations: 177.2 MB / 189.7 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08424/1.039, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/package.mo): time 0.6573/0.6573, allocations: 118.7 MB / 362.9 MB, free: 1.027 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.05602/0.7133, allocations: 35.85 MB / 398.7 MB, free: 13.08 MB / 394.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.1/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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 400 MB, free: 11.79 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.56e-05, allocations: 5.406 kB / 400 MB, free: 11.78 MB / 394.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.3536/0.3536, allocations: 136.3 MB / 0.5238 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.005727/0.3593, allocations: 3.814 MB / 0.5275 GB, free: 7.68 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008888/0.3602, allocations: 99.06 kB / 0.5276 GB, free: 7.582 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0008596/0.3611, allocations: 0.5743 MB / 0.5282 GB, free: 7.004 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.001876/0.3629, allocations: 1.312 MB / 0.5294 GB, free: 5.684 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.00111/0.3641, allocations: 0.6522 MB / 0.5301 GB, free: 5.031 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.002465/0.3665, allocations: 2.911 MB / 0.5329 GB, free: 2.113 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003687/0.3669, allocations: 251.4 kB / 0.5332 GB, free: 1.84 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002224/0.3691, allocations: 1.767 MB / 0.5349 GB, free: 88 kB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001021/0.3701, allocations: 1.032 MB / 0.5359 GB, free: 15.05 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001393/0.3703, allocations: 108 kB / 0.536 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006323/0.3709, allocations: 347.5 kB / 0.5363 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.3711, allocations: 270.7 kB / 0.5366 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004008/0.3715, allocations: 494.9 kB / 0.5371 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.3728, allocations: 1.475 MB / 0.5385 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.649e-05/0.3728, allocations: 0 / 0.5385 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.304e-06/0.3728, allocations: 0 / 0.5385 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.53e-05/0.3729, allocations: 4 kB / 0.5385 GB, free: 12.37 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: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002329/0.3752, allocations: 2.504 MB / 0.541 GB, free: 9.812 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.205e-05/0.3752, allocations: 12.03 kB / 0.541 GB, free: 9.801 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003779/0.3756, allocations: 265.7 kB / 0.5412 GB, free: 9.543 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3768, allocations: 1.089 MB / 0.5423 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.404e-05/0.3768, allocations: 82.47 kB / 0.5424 GB, free: 8.324 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.612e-05/0.3769, allocations: 116.3 kB / 0.5425 GB, free: 8.211 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008435/0.3777, allocations: 0.854 MB / 0.5433 GB, free: 7.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.806e-05/0.3778, allocations: 3.938 kB / 0.5433 GB, free: 7.266 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.3778, allocations: 44 kB / 0.5434 GB, free: 7.223 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.3778, allocations: 28 kB / 0.5434 GB, free: 7.195 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004092/0.3782, allocations: 408.2 kB / 0.5438 GB, free: 6.797 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.3813, allocations: 2.945 MB / 0.5466 GB, free: 3.777 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005539/0.3818, allocations: 0.4884 MB / 0.5471 GB, free: 3.254 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001827/0.382, allocations: 198.3 kB / 0.5473 GB, free: 3.055 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0013/0.3833, allocations: 1.167 MB / 0.5485 GB, free: 1.871 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.3834, allocations: 60.39 kB / 0.5485 GB, free: 1.805 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=108): time 2.275e-06/0.3834, allocations: 0 / 0.5485 GB, free: 1.805 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108): time 0.001112/0.3845, allocations: 0.8123 MB / 0.5493 GB, free: 0.9766 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.916e-05/0.3845, allocations: 115.5 kB / 0.5494 GB, free: 0.8398 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.3851, allocations: 0.9697 MB / 0.5504 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.3851, allocations: 45.7 kB / 0.5504 GB, free: 15.8 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002029/0.3853, allocations: 461.8 kB / 0.5508 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001701/0.3855, allocations: 404.4 kB / 0.5512 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001547/0.3856, allocations: 190.8 kB / 0.5514 GB, free: 14.75 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.3857, allocations: 345.9 kB / 0.5517 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.3859, allocations: 106.6 kB / 0.5518 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.3861, allocations: 478.1 kB / 0.5523 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004194/0.3865, allocations: 486.2 kB / 0.5528 GB, free: 13.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3865, allocations: 4 kB / 0.5528 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.0009132/0.3875, allocations: 0.639 MB / 0.5534 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.771e-05/0.3875, allocations: 12.88 kB / 0.5534 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.3875, allocations: 0 / 0.5534 GB, free: 12.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.3877, allocations: 148.2 kB / 0.5535 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000408/0.3881, allocations: 239.7 kB / 0.5538 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.3905, allocations: 5.975 MB / 0.5596 GB, free: 5.746 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003799/0.3909, allocations: 91.52 kB / 0.5597 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.672e-05/0.3909, allocations: 31.98 kB / 0.5597 GB, free: 5.625 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.3911, allocations: 184.3 kB / 0.5599 GB, free: 5.434 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.3915, allocations: 123.9 kB / 0.56 GB, free: 5.312 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001388/0.3929, allocations: 1.328 MB / 0.5613 GB, free: 3.914 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3929, allocations: 8 kB / 0.5613 GB, free: 3.906 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3929, allocations: 8 kB / 0.5613 GB, free: 3.898 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.3929, allocations: 3.984 kB / 0.5613 GB, free: 3.895 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001258/0.3942, allocations: 1.35 MB / 0.5627 GB, free: 2.469 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.3942, allocations: 4 kB / 0.5627 GB, free: 2.465 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002531/0.3944, allocations: 139.8 kB / 0.5628 GB, free: 2.328 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002136/0.3947, allocations: 194.7 kB / 0.563 GB, free: 2.137 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002265/0.3949, allocations: 140.5 kB / 0.5631 GB, free: 1.984 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.3949, allocations: 23.98 kB / 0.5631 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002346/0.3973, allocations: 5.983 MB / 0.569 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3973, allocations: 4 kB / 0.569 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007512/0.398, allocations: 0.9523 MB / 0.5699 GB, free: 10.52 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.894e-05/0.3981, allocations: 31.89 kB / 0.5699 GB, free: 10.48 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3984, allocations: 12 kB / 0.57 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-05/0.3984, allocations: 75.75 kB / 0.57 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.594e-05/0.3985, allocations: 23.97 kB / 0.57 GB, free: 10.38 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003579/0.3988, allocations: 0.547 MB / 0.5706 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2e-08/0.3988, allocations: 0 / 0.5706 GB, free: 9.828 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0007883/0.3996, allocations: 415.3 kB / 0.571 GB, free: 9.422 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001176/0.4008, allocations: 0.5323 MB / 0.5715 GB, free: 9.168 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0008795/0.4017, allocations: 1.042 MB / 0.5725 GB, free: 8.066 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.529e-05/0.4017, allocations: 23.94 kB / 0.5725 GB, free: 8.043 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005389/0.4022, allocations: 0.8554 MB / 0.5734 GB, free: 7.121 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002583/0.4048, allocations: 3.733 MB / 0.577 GB, free: 2.684 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01569/0.4205, allocations: 2.518 MB / 0.5795 GB, free: 84 kB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.4207, allocations: 265.1 kB / 0.5797 GB, free: 15.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.000757/0.4215, allocations: 265.6 kB / 0.58 GB, free: 15.54 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000635/0.4221, allocations: 427 kB / 0.5804 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of SimCode: time 1.473e-06/0.4221, allocations: 0 / 0.5804 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of Templates: time 0.03022/0.4524, allocations: 24.86 MB / 0.6047 GB, free: 6.711 MB / 0.573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.0195550518110394]