Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.002517/0.002517, allocations: 93.47 kB / 19.44 MB, free: 336 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.003134/0.003134, allocations: 169.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.572/1.572, allocations: 177.1 MB / 203.1 MB, free: 5.551 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.019/1.019, allocations: 118.6 MB / 378.2 MB, free: 1.473 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.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_dev_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_dev_ThermofluidStream.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.684e-06/1.684e-06, allocations: 0 / 482.9 MB, free: 8.266 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.593e-05/2.761e-05, allocations: 5.266 kB / 482.9 MB, free: 8.262 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.05133/0.05135, allocations: 42.94 MB / 0.5135 GB, free: 6 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01386/0.06522, allocations: 7.804 MB / 0.5211 GB, free: 14.17 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00167/0.06689, allocations: 63.44 kB / 0.5212 GB, free: 14.11 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.06865, allocations: 0.4962 MB / 0.5217 GB, free: 13.61 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004787/0.07344, allocations: 1.478 MB / 0.5231 GB, free: 12.12 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003257/0.0767, allocations: 0.9691 MB / 0.524 GB, free: 11.14 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.003667/0.08037, allocations: 2.295 MB / 0.5263 GB, free: 8.84 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004375/0.0808, allocations: 149.2 kB / 0.5264 GB, free: 8.684 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003685/0.08449, allocations: 1.577 MB / 0.528 GB, free: 7.102 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.08566, allocations: 0.6153 MB / 0.5286 GB, free: 6.484 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.08588, allocations: 99.94 kB / 0.5287 GB, free: 6.387 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002326/0.08821, allocations: 0.7564 MB / 0.5294 GB, free: 5.629 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003599/0.08857, allocations: 286.7 kB / 0.5297 GB, free: 5.348 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000763/0.08933, allocations: 482.8 kB / 0.5301 GB, free: 4.875 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003945/0.09327, allocations: 1.962 MB / 0.5321 GB, free: 2.906 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.09328, allocations: 0 / 0.5321 GB, free: 2.906 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.997e-06/0.09328, allocations: 4 kB / 0.5321 GB, free: 2.902 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.942e-05/0.0933, allocations: 0 / 0.5321 GB, free: 2.902 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.003852/0.09715, allocations: 1.887 MB / 0.5339 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.09719, allocations: 8.031 kB / 0.5339 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009885/0.09818, allocations: 307.6 kB / 0.5342 GB, free: 0.6641 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0019/0.1001, allocations: 0.9081 MB / 0.5351 GB, free: 15.71 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001642/0.1002, allocations: 122 kB / 0.5352 GB, free: 15.58 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000178/0.1004, allocations: 104.3 kB / 0.5353 GB, free: 15.48 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002173/0.1026, allocations: 1.358 MB / 0.5366 GB, free: 13.97 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.1026, allocations: 0 / 0.5366 GB, free: 13.97 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.893e-05/0.1027, allocations: 40 kB / 0.5367 GB, free: 13.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.505e-05/0.1027, allocations: 20 kB / 0.5367 GB, free: 13.91 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001842/0.1046, allocations: 0.7065 MB / 0.5374 GB, free: 13.21 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007215/0.1118, allocations: 4.111 MB / 0.5414 GB, free: 8.992 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.1143, allocations: 0.8762 MB / 0.5422 GB, free: 8.094 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009021/0.1152, allocations: 398.3 kB / 0.5426 GB, free: 7.703 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00436/0.1196, allocations: 1.508 MB / 0.5441 GB, free: 6.172 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.884e-05/0.1197, allocations: 53.83 kB / 0.5441 GB, free: 6.109 MB / 474.7 MB Notification: Performance of pre-optimization done (n=99): time 3.778e-06/0.1197, allocations: 0 / 0.5441 GB, free: 6.109 MB / 474.7 MB Notification: Performance of matching and sorting (n=112): time 0.01135/0.131, allocations: 3.797 MB / 0.5479 GB, free: 2.199 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.063e-05/0.1311, allocations: 90.11 kB / 0.5479 GB, free: 2.094 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.1325, allocations: 0.997 MB / 0.5489 GB, free: 1.074 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.747e-05/0.1326, allocations: 53.64 kB / 0.549 GB, free: 1.016 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005744/0.1332, allocations: 0.5936 MB / 0.5495 GB, free: 424 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004486/0.1336, allocations: 436.4 kB / 0.55 GB, free: 15.98 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/0.134, allocations: 224.5 kB / 0.5502 GB, free: 15.76 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000349/0.1344, allocations: 0.5394 MB / 0.5507 GB, free: 15.21 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008279/0.1352, allocations: 354.5 kB / 0.551 GB, free: 14.86 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.1366, allocations: 0.6359 MB / 0.5517 GB, free: 14.14 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.002172/0.1388, allocations: 1.098 MB / 0.5527 GB, free: 12.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.1388, allocations: 4 kB / 0.5527 GB, free: 12.94 MB / 490.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003808/0.1426, allocations: 1.524 MB / 0.5542 GB, free: 11.38 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.1427, allocations: 7.938 kB / 0.5542 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001609/0.1443, allocations: 0.6604 MB / 0.5549 GB, free: 10.69 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001796/0.1461, allocations: 429.1 kB / 0.5553 GB, free: 10.24 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008866/0.1469, allocations: 203.7 kB / 0.5555 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01554/0.1625, allocations: 15.99 MB / 0.5711 GB, free: 9.074 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009684/0.1635, allocations: 40.02 kB / 0.5711 GB, free: 9.035 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.1636, allocations: 43.98 kB / 0.5712 GB, free: 8.992 MB / 0.4949 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.0005812/0.1642, allocations: 300.3 kB / 0.5715 GB, free: 8.688 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003892/0.1645, allocations: 171.2 kB / 0.5716 GB, free: 8.52 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.1686, allocations: 1.619 MB / 0.5732 GB, free: 6.871 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.1686, allocations: 12 kB / 0.5732 GB, free: 6.859 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.1686, allocations: 4 kB / 0.5732 GB, free: 6.855 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.1687, allocations: 7.984 kB / 0.5732 GB, free: 6.848 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00564/0.1743, allocations: 2.645 MB / 0.5758 GB, free: 4.117 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001605/0.1759, allocations: 0.6761 MB / 0.5765 GB, free: 3.418 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008308/0.1767, allocations: 171.8 kB / 0.5766 GB, free: 3.25 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.1785, allocations: 449.2 kB / 0.5771 GB, free: 2.777 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.1786, allocations: 35.97 kB / 0.5771 GB, free: 2.742 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0156/0.1942, allocations: 15.99 MB / 0.5927 GB, free: 1.777 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.1942, allocations: 3.938 kB / 0.5927 GB, free: 1.773 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005119/0.1993, allocations: 2.165 MB / 0.5948 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000655/0.2, allocations: 211 kB / 0.595 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.2002, allocations: 24 kB / 0.5951 GB, free: 15.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007351/0.2009, allocations: 35.98 kB / 0.5951 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002797/0.2012, allocations: 100.9 kB / 0.5952 GB, free: 15.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.2013, allocations: 47.98 kB / 0.5952 GB, free: 15.14 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009812/0.2023, allocations: 0.6346 MB / 0.5958 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8e-08/0.2023, allocations: 0 / 0.5958 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001666/0.2039, allocations: 459.6 kB / 0.5963 GB, free: 14.04 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.0007786/0.2047, allocations: 409.9 kB / 0.5967 GB, free: 13.63 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004091/0.2088, allocations: 2.461 MB / 0.5991 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.359e-06/0.2088, allocations: 0 / 0.5991 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003201/0.212, allocations: 1.991 MB / 0.601 GB, free: 8.895 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.2147, allocations: 0.5303 MB / 0.6015 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005361/0.22, allocations: 2.561 MB / 0.604 GB, free: 5.773 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006561/0.2207, allocations: 0.5262 MB / 0.6046 GB, free: 5.211 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0009115/0.2216, allocations: 219.2 kB / 0.6048 GB, free: 5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.2219, allocations: 116.5 kB / 0.6049 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of SimCode: time 2.154e-06/0.2219, allocations: 0 / 0.6049 GB, free: 4.887 MB / 0.5261 GB Notification: Performance of Templates: time 0.05323/0.2751, allocations: 28.04 MB / 0.6323 GB, free: 9.352 MB / 0.5574 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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_dev_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.306709020980634]