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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 106.9 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 195.3 kB / 16.91 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.285/1.285, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6611/0.6611, allocations: 91.18 MB / 381.9 MB, free: 7.543 MB / 302.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 79.88 kB / 460.5 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1258/0.1273, allocations: 67.67 MB / 0.5158 GB, free: 5.637 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.2291/0.3564, allocations: 39.84 MB / 0.5547 GB, free: 24.05 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008337/0.3648, allocations: 8.73 MB / 0.5632 GB, free: 18.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001292/0.3661, allocations: 43.28 kB / 0.5632 GB, free: 18.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.3674, allocations: 467.4 kB / 0.5637 GB, free: 18.07 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003393/0.3709, allocations: 1.192 MB / 0.5648 GB, free: 17.36 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002146/0.373, allocations: 0.8199 MB / 0.5657 GB, free: 16.92 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002551/0.3756, allocations: 1.969 MB / 0.5676 GB, free: 15.95 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004215/0.376, allocations: 253.8 kB / 0.5678 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002394/0.3784, allocations: 1.118 MB / 0.5689 GB, free: 15.34 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008851/0.3793, allocations: 0.7257 MB / 0.5696 GB, free: 15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001589/0.3795, allocations: 100.8 kB / 0.5697 GB, free: 15 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00226/0.3818, allocations: 0.8542 MB / 0.5705 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002351/0.382, allocations: 260.1 kB / 0.5708 GB, free: 14.59 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005423/0.3826, allocations: 0.6329 MB / 0.5714 GB, free: 14.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00185/0.3844, allocations: 1.317 MB / 0.5727 GB, free: 13.75 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3844, allocations: 1.719 kB / 0.5727 GB, free: 13.75 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3844, allocations: 0 / 0.5727 GB, free: 13.75 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.3845, allocations: 0 / 0.5727 GB, free: 13.75 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.002972/0.3874, allocations: 1.66 MB / 0.5743 GB, free: 12.68 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3875, allocations: 10.3 kB / 0.5743 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003715/0.3879, allocations: 147.1 kB / 0.5745 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3891, allocations: 0.7696 MB / 0.5752 GB, free: 12.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.888e-05/0.3892, allocations: 100.5 kB / 0.5753 GB, free: 12.04 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.3893, allocations: 89.2 kB / 0.5754 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001632/0.391, allocations: 0.9979 MB / 0.5764 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.391, allocations: 6.125 kB / 0.5764 GB, free: 11.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.107e-05/0.3911, allocations: 32.25 kB / 0.5764 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.3911, allocations: 20.62 kB / 0.5764 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001582/0.3927, allocations: 0.8849 MB / 0.5773 GB, free: 11.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005132/0.3978, allocations: 4.61 MB / 0.5818 GB, free: 7.637 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001896/0.3998, allocations: 1.008 MB / 0.5828 GB, free: 7.121 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007269/0.4005, allocations: 464.4 kB / 0.5832 GB, free: 6.926 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003253/0.4038, allocations: 2.985 MB / 0.5861 GB, free: 4.305 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.4038, allocations: 45.59 kB / 0.5862 GB, free: 4.258 MB / 446.1 MB Notification: Performance of pre-optimization done (n=99): time 3.487e-06/0.4038, allocations: 0 / 0.5862 GB, free: 4.258 MB / 446.1 MB Notification: Performance of matching and sorting (n=112): time 0.009361/0.4132, allocations: 4.253 MB / 0.5903 GB, free: 1.824 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.62e-05/0.4133, allocations: 93.11 kB / 0.5904 GB, free: 1.727 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009994/0.4143, allocations: 0.7525 MB / 0.5912 GB, free: 1.414 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001054/0.4144, allocations: 47.77 kB / 0.5912 GB, free: 1.367 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000245/0.4146, allocations: 481.8 kB / 0.5917 GB, free: 0.9844 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002351/0.4149, allocations: 390.5 kB / 0.592 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/0.4152, allocations: 187.1 kB / 0.5922 GB, free: 0.582 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.292e-05/0.4152, allocations: 344.1 kB / 0.5925 GB, free: 268 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/0.416, allocations: 381 kB / 0.5929 GB, free: 128 kB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008975/0.4169, allocations: 0.5437 MB / 0.5934 GB, free: 15.8 MB / 462.1 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.00192/0.4188, allocations: 1.057 MB / 0.5945 GB, free: 15.15 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.4189, allocations: 3.281 kB / 0.5945 GB, free: 15.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003314/0.4222, allocations: 1.459 MB / 0.5959 GB, free: 14.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.4222, allocations: 5.906 kB / 0.5959 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.151e-05/0.4222, allocations: 6.156 kB / 0.5959 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.4235, allocations: 345.5 kB / 0.5962 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008129/0.4243, allocations: 206.6 kB / 0.5964 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009562/0.4339, allocations: 12.6 MB / 0.6087 GB, free: 1.805 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.4353, allocations: 58.08 kB / 0.6088 GB, free: 1.773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002321/0.4355, allocations: 52.17 kB / 0.6088 GB, free: 1.754 MB / 462.1 MB 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: 18 * 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 (110): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0008422/0.4364, allocations: 247.6 kB / 0.6091 GB, free: 1.551 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005173/0.4369, allocations: 116.4 kB / 0.6092 GB, free: 1.488 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004046/0.441, allocations: 1.604 MB / 0.6108 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.441, allocations: 11.94 kB / 0.6108 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.969e-05/0.441, allocations: 6.031 kB / 0.6108 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.441, allocations: 7.969 kB / 0.6108 GB, free: 0.5156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005651/0.4467, allocations: 2.719 MB / 0.6134 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.43e-05/0.4467, allocations: 0 / 0.6134 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007752/0.4475, allocations: 175.8 kB / 0.6136 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.4487, allocations: 361.2 kB / 0.614 GB, free: 13.61 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.4488, allocations: 35.97 kB / 0.614 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009586/0.4584, allocations: 12.61 MB / 0.6263 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.4585, allocations: 0 / 0.6263 GB, free: 15.87 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0045/0.463, allocations: 2.096 MB / 0.6283 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004846/0.4635, allocations: 179.6 kB / 0.6285 GB, free: 13.53 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003258/0.4638, allocations: 25.59 kB / 0.6285 GB, free: 13.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/0.4649, allocations: 75.88 kB / 0.6286 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002516/0.4652, allocations: 92.81 kB / 0.6287 GB, free: 13.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/0.4653, allocations: 46.78 kB / 0.6287 GB, free: 13.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007996/0.4662, allocations: 0.5306 MB / 0.6293 GB, free: 12.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4662, allocations: 0 / 0.6293 GB, free: 12.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002123/0.4683, allocations: 479.8 kB / 0.6297 GB, free: 12.29 MB / 494.1 MB 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 (91): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001045/0.4693, allocations: 462.3 kB / 0.6302 GB, free: 11.85 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003834/0.4732, allocations: 2.102 MB / 0.6322 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.003e-06/0.4732, allocations: 4 kB / 0.6322 GB, free: 9.637 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002316/0.4755, allocations: 1.602 MB / 0.6338 GB, free: 7.926 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/0.4776, allocations: 354 kB / 0.6341 GB, free: 7.613 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005018/0.4826, allocations: 3.036 MB / 0.6371 GB, free: 4.582 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007463/0.4834, allocations: 1.083 MB / 0.6381 GB, free: 3.473 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.4838, allocations: 111.4 kB / 0.6383 GB, free: 3.363 MB / 494.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4838, allocations: 0 / 0.6383 GB, free: 3.363 MB / 494.1 MB Notification: Performance of Templates: time 0.05267/0.5365, allocations: 52.53 MB / 0.6896 GB, free: 15 MB / 0.545 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile (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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches