Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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.002448/0.002448, allocations: 85.48 kB / 19.44 MB, free: 344 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.002932/0.002932, allocations: 173.2 kB / 22.76 MB, free: 1.664 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.602/1.602, allocations: 177.1 MB / 203.1 MB, free: 5.641 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.093/1.093, allocations: 118.6 MB / 378.2 MB, free: 1.469 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.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 482.9 MB, free: 8.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.181e-05/3.36e-05, allocations: 3.688 kB / 482.9 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05449/0.05453, allocations: 44.84 MB / 0.5154 GB, free: 4.109 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.009121/0.06365, allocations: 4.297 MB / 0.5195 GB, free: 15.8 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.06533, allocations: 59.44 kB / 0.5196 GB, free: 15.74 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.0671, allocations: 0.5194 MB / 0.5201 GB, free: 15.22 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004758/0.07185, allocations: 1.517 MB / 0.5216 GB, free: 13.69 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003068/0.07492, allocations: 0.9458 MB / 0.5225 GB, free: 12.74 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.004183/0.0791, allocations: 2.417 MB / 0.5249 GB, free: 10.32 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005949/0.0797, allocations: 169.5 kB / 0.525 GB, free: 10.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004765/0.08447, allocations: 1.76 MB / 0.5268 GB, free: 8.371 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.08593, allocations: 0.6698 MB / 0.5274 GB, free: 7.699 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002436/0.08617, allocations: 100 kB / 0.5275 GB, free: 7.602 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002167/0.08834, allocations: 0.6823 MB / 0.5282 GB, free: 6.918 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003736/0.08871, allocations: 286.7 kB / 0.5284 GB, free: 6.637 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008176/0.08953, allocations: 498.8 kB / 0.5289 GB, free: 6.148 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004175/0.0937, allocations: 1.962 MB / 0.5308 GB, free: 4.18 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.09371, allocations: 0 / 0.5308 GB, free: 4.18 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.09371, allocations: 0 / 0.5308 GB, free: 4.18 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.305e-05/0.09374, allocations: 0 / 0.5308 GB, free: 4.18 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.003947/0.09769, allocations: 1.86 MB / 0.5327 GB, free: 2.277 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.09773, allocations: 8.031 kB / 0.5327 GB, free: 2.27 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009076/0.09864, allocations: 307.4 kB / 0.533 GB, free: 1.969 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.1005, allocations: 0.9077 MB / 0.5338 GB, free: 1.023 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.921e-05/0.1006, allocations: 70.38 kB / 0.5339 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001862/0.1008, allocations: 104.3 kB / 0.534 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002165/0.103, allocations: 1.263 MB / 0.5352 GB, free: 15.48 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.103, allocations: 4.188 kB / 0.5352 GB, free: 15.47 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.992e-05/0.1031, allocations: 39.94 kB / 0.5353 GB, free: 15.43 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.786e-05/0.1031, allocations: 24 kB / 0.5353 GB, free: 15.41 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001674/0.1048, allocations: 0.7467 MB / 0.536 GB, free: 14.66 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006861/0.1117, allocations: 3.85 MB / 0.5398 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.1137, allocations: 0.8696 MB / 0.5406 GB, free: 9.836 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008465/0.1145, allocations: 424 kB / 0.541 GB, free: 9.418 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003452/0.118, allocations: 1.512 MB / 0.5425 GB, free: 7.883 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.17e-05/0.118, allocations: 54.03 kB / 0.5426 GB, free: 7.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=108): time 3.496e-06/0.118, allocations: 0 / 0.5426 GB, free: 7.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=122): time 0.01126/0.1293, allocations: 3.978 MB / 0.5465 GB, free: 3.734 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/0.1294, allocations: 90.27 kB / 0.5465 GB, free: 3.629 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001353/0.1307, allocations: 0.9307 MB / 0.5475 GB, free: 2.672 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001003/0.1308, allocations: 49.7 kB / 0.5475 GB, free: 2.617 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005639/0.1314, allocations: 0.5782 MB / 0.5481 GB, free: 2.031 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/0.1319, allocations: 480.1 kB / 0.5485 GB, free: 1.559 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004115/0.1323, allocations: 228.6 kB / 0.5487 GB, free: 1.328 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003488/0.1327, allocations: 0.5551 MB / 0.5493 GB, free: 0.7656 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008516/0.1335, allocations: 366.5 kB / 0.5496 GB, free: 416 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.1347, allocations: 0.6406 MB / 0.5503 GB, free: 15.68 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002326/0.137, allocations: 1.137 MB / 0.5514 GB, free: 14.45 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.712e-06/0.137, allocations: 3.938 kB / 0.5514 GB, free: 14.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003536/0.1406, allocations: 1.524 MB / 0.5529 GB, free: 12.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.599e-05/0.1406, allocations: 8 kB / 0.5529 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.1406, allocations: 4 kB / 0.5529 GB, free: 12.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001565/0.1422, allocations: 381.7 kB / 0.5532 GB, free: 12.46 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009637/0.1431, allocations: 227.7 kB / 0.5535 GB, free: 12.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01519/0.1583, allocations: 15.43 MB / 0.5685 GB, free: 11.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009413/0.1593, allocations: 35.98 kB / 0.5686 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001297/0.1594, allocations: 51.98 kB / 0.5686 GB, free: 11.74 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (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.0005948/0.16, allocations: 304.4 kB / 0.5689 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003669/0.1603, allocations: 159.2 kB / 0.569 GB, free: 11.28 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004304/0.1646, allocations: 1.9 MB / 0.5709 GB, free: 9.336 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.1647, allocations: 15.94 kB / 0.5709 GB, free: 9.32 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.1647, allocations: 11.94 kB / 0.5709 GB, free: 9.309 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.1647, allocations: 11.91 kB / 0.5709 GB, free: 9.297 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006069/0.1708, allocations: 2.7 MB / 0.5736 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.1708, allocations: 0 / 0.5736 GB, free: 6.508 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000889/0.1717, allocations: 191.9 kB / 0.5738 GB, free: 6.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001599/0.1733, allocations: 401 kB / 0.5741 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/0.1734, allocations: 39.97 kB / 0.5742 GB, free: 5.855 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/0.1879, allocations: 15.43 MB / 0.5892 GB, free: 5.445 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.572e-06/0.1879, allocations: 7.938 kB / 0.5893 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004809/0.1927, allocations: 2.176 MB / 0.5914 GB, free: 3.191 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006285/0.1934, allocations: 215.1 kB / 0.5916 GB, free: 2.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.1935, allocations: 24 kB / 0.5916 GB, free: 2.957 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007088/0.1943, allocations: 43.97 kB / 0.5916 GB, free: 2.914 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.1946, allocations: 116.8 kB / 0.5918 GB, free: 2.801 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.904e-05/0.1947, allocations: 39.92 kB / 0.5918 GB, free: 2.762 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009336/0.1956, allocations: 0.6259 MB / 0.5924 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.1e-08/0.1956, allocations: 0 / 0.5924 GB, free: 2.125 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001516/0.1971, allocations: 423.7 kB / 0.5928 GB, free: 1.711 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.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 (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006782/0.1978, allocations: 382.1 kB / 0.5932 GB, free: 1.336 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.00416/0.2019, allocations: 2.459 MB / 0.5956 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.2019, allocations: 0 / 0.5956 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00303/0.205, allocations: 1.999 MB / 0.5975 GB, free: 12.59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/0.2075, allocations: 0.495 MB / 0.598 GB, free: 12.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/0.2131, allocations: 2.596 MB / 0.6005 GB, free: 9.445 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006549/0.2138, allocations: 0.5188 MB / 0.6011 GB, free: 8.895 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008914/0.2147, allocations: 239.9 kB / 0.6013 GB, free: 8.672 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.215, allocations: 112.5 kB / 0.6014 GB, free: 8.562 MB / 0.5261 GB Notification: Performance of SimCode: time 1.012e-06/0.215, allocations: 4 kB / 0.6014 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of Templates: time 0.05141/0.2664, allocations: 27.21 MB / 0.628 GB, free: 13.86 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.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: 7.474919508909807]