Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.002284/0.002284, allocations: 85.48 kB / 19.44 MB, free: 348 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.003271/0.003271, allocations: 177.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.621/1.621, allocations: 177.1 MB / 203.1 MB, free: 5.609 MB / 186.7 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.012/1.012, allocations: 118.6 MB / 378.2 MB, free: 1.496 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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.479e-05/2.627e-05, allocations: 6.312 kB / 482.9 MB, free: 8.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.05264/0.05267, allocations: 42.93 MB / 0.5135 GB, free: 6.023 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.06662, allocations: 7.804 MB / 0.5211 GB, free: 14.2 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/0.06807, allocations: 63.44 kB / 0.5212 GB, free: 14.13 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001803/0.06987, allocations: 0.4922 MB / 0.5217 GB, free: 13.64 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004639/0.07451, allocations: 1.478 MB / 0.5231 GB, free: 12.15 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00307/0.07758, allocations: 0.9691 MB / 0.524 GB, free: 11.18 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.003672/0.08125, allocations: 2.291 MB / 0.5263 GB, free: 8.875 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005011/0.08175, allocations: 157.2 kB / 0.5264 GB, free: 8.711 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004118/0.08587, allocations: 1.573 MB / 0.528 GB, free: 7.133 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00149/0.08736, allocations: 0.6231 MB / 0.5286 GB, free: 6.508 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.08758, allocations: 100 kB / 0.5287 GB, free: 6.41 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.08983, allocations: 0.7486 MB / 0.5294 GB, free: 5.66 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003735/0.09021, allocations: 282.7 kB / 0.5297 GB, free: 5.383 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007447/0.09095, allocations: 482.7 kB / 0.5301 GB, free: 4.91 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003572/0.09452, allocations: 1.974 MB / 0.5321 GB, free: 2.93 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.09453, allocations: 4 kB / 0.5321 GB, free: 2.926 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.09453, allocations: 0 / 0.5321 GB, free: 2.926 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.09455, allocations: 0 / 0.5321 GB, free: 2.926 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.003887/0.09844, allocations: 1.884 MB / 0.5339 GB, free: 1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.09847, allocations: 8.031 kB / 0.5339 GB, free: 0.9922 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.09948, allocations: 307.6 kB / 0.5342 GB, free: 0.6914 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.1014, allocations: 0.9127 MB / 0.5351 GB, free: 15.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004347/0.1018, allocations: 118 kB / 0.5352 GB, free: 15.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001793/0.102, allocations: 100.3 kB / 0.5353 GB, free: 15.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.1042, allocations: 1.358 MB / 0.5366 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.1042, allocations: 0 / 0.5366 GB, free: 14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.951e-05/0.1043, allocations: 40 kB / 0.5367 GB, free: 13.96 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.26e-05/0.1043, allocations: 20 kB / 0.5367 GB, free: 13.94 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001672/0.106, allocations: 0.7143 MB / 0.5374 GB, free: 13.23 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006847/0.1129, allocations: 4.111 MB / 0.5414 GB, free: 9.012 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/0.1154, allocations: 0.874 MB / 0.5423 GB, free: 8.117 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000811/0.1162, allocations: 389.5 kB / 0.5426 GB, free: 7.73 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003205/0.1194, allocations: 1.508 MB / 0.5441 GB, free: 6.199 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.152e-05/0.1195, allocations: 49.89 kB / 0.5441 GB, free: 6.141 MB / 474.7 MB Notification: Performance of pre-optimization done (n=99): time 2.755e-06/0.1195, allocations: 0 / 0.5441 GB, free: 6.141 MB / 474.7 MB Notification: Performance of matching and sorting (n=112): time 0.01071/0.1302, allocations: 3.801 MB / 0.5479 GB, free: 2.227 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.1303, allocations: 90.11 kB / 0.5479 GB, free: 2.121 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.1317, allocations: 0.9931 MB / 0.5489 GB, free: 1.105 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.733e-05/0.1318, allocations: 49.7 kB / 0.549 GB, free: 1.051 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007998/0.1326, allocations: 0.6014 MB / 0.5496 GB, free: 452 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004498/0.133, allocations: 432.5 kB / 0.55 GB, free: 16 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004135/0.1335, allocations: 224.6 kB / 0.5502 GB, free: 15.79 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003469/0.1338, allocations: 0.5472 MB / 0.5507 GB, free: 15.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008395/0.1346, allocations: 354.5 kB / 0.551 GB, free: 14.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/0.1358, allocations: 0.6281 MB / 0.5517 GB, free: 14.17 MB / 490.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElement.deltaE_system = $START.conductionElement.deltaE_system (0.0 = $START.conductionElement.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.002221/0.138, allocations: 1.105 MB / 0.5527 GB, free: 12.97 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.138, allocations: 0 / 0.5527 GB, free: 12.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003767/0.1418, allocations: 1.528 MB / 0.5542 GB, free: 11.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.1418, allocations: 7.938 kB / 0.5542 GB, free: 11.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001644/0.1435, allocations: 0.6683 MB / 0.5549 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.1452, allocations: 433.1 kB / 0.5553 GB, free: 10.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000881/0.1461, allocations: 203.7 kB / 0.5555 GB, free: 10.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01589/0.162, allocations: 15.98 MB / 0.5711 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009434/0.1629, allocations: 35.98 kB / 0.5711 GB, free: 9.059 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.163, allocations: 47.98 kB / 0.5712 GB, free: 9.012 MB / 0.4948 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: conductionElement.deltaE_system = $START.conductionElement.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (115): * Single equations (assignments): 107 * 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%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,6,100.0%), (1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005974/0.1636, allocations: 303.2 kB / 0.5715 GB, free: 8.707 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003982/0.164, allocations: 167.2 kB / 0.5716 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00428/0.1683, allocations: 1.616 MB / 0.5732 GB, free: 6.895 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.1683, allocations: 12 kB / 0.5732 GB, free: 6.883 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.1683, allocations: 4 kB / 0.5732 GB, free: 6.879 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.612e-05/0.1684, allocations: 3.984 kB / 0.5732 GB, free: 6.875 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005771/0.1741, allocations: 2.645 MB / 0.5758 GB, free: 4.145 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001611/0.1757, allocations: 0.6761 MB / 0.5765 GB, free: 3.445 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008283/0.1766, allocations: 171.8 kB / 0.5766 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/0.1786, allocations: 449.3 kB / 0.5771 GB, free: 2.805 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/0.1787, allocations: 47.84 kB / 0.5771 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01566/0.1944, allocations: 15.98 MB / 0.5927 GB, free: 1.797 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.1944, allocations: 3.984 kB / 0.5927 GB, free: 1.793 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004822/0.1992, allocations: 2.161 MB / 0.5948 GB, free: 15.57 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006113/0.1998, allocations: 219 kB / 0.595 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.2, allocations: 24 kB / 0.5951 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007325/0.2007, allocations: 35.98 kB / 0.5951 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002718/0.201, allocations: 108.8 kB / 0.5952 GB, free: 15.19 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/0.2011, allocations: 39.98 kB / 0.5952 GB, free: 15.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000968/0.202, allocations: 0.6346 MB / 0.5959 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/0.202, allocations: 0 / 0.5959 GB, free: 14.51 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00163/0.2037, allocations: 455.6 kB / 0.5963 GB, free: 14.06 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (reservoir1.M,reservoir1.U_med,pump.m_flow,conductionElement.h,reservoir.M,reservoir.U_med,flowResistance1.inlet.m_flow,flowResistance2.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 (92): * Single equations (assignments): 84 * 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,6,100.0%), (1,4,100.0%), (1,1,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.0007641/0.2044, allocations: 419.7 kB / 0.5967 GB, free: 13.65 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004327/0.2088, allocations: 2.46 MB / 0.5991 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2088, allocations: 0.5 kB / 0.5991 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003025/0.2118, allocations: 1.991 MB / 0.601 GB, free: 8.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002687/0.2145, allocations: 0.5266 MB / 0.6016 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005434/0.2199, allocations: 2.55 MB / 0.604 GB, free: 5.789 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006683/0.2206, allocations: 0.5262 MB / 0.6046 GB, free: 5.227 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008896/0.2215, allocations: 221 kB / 0.6048 GB, free: 5.008 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005541/0.222, allocations: 116.5 kB / 0.6049 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of SimCode: time 1.363e-06/0.222, allocations: 0 / 0.6049 GB, free: 4.895 MB / 0.5261 GB Notification: Performance of Templates: time 0.05418/0.2762, allocations: 28.04 MB / 0.6323 GB, free: 9.363 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.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.543635769980028]