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.00639/0.00639, allocations: 101.7 kB / 15.88 MB, free: 6.328 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.001679/0.001679, allocations: 195.1 kB / 16.79 MB, free: 6.254 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.314/1.314, allocations: 222.9 MB / 240.5 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6155/0.6155, allocations: 89.51 MB / 380.1 MB, free: 11.27 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001579/0.001579, allocations: 78.75 kB / 458.2 MB, free: 23.92 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1063, allocations: 67.31 MB / 0.5132 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.03542/0.1418, allocations: 40.08 MB / 0.5523 GB, free: 4.719 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.1519, allocations: 8.797 MB / 0.5609 GB, free: 11.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001082/0.153, allocations: 15.94 kB / 0.561 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001355/0.1544, allocations: 461.5 kB / 0.5614 GB, free: 11.43 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003039/0.1575, allocations: 1.169 MB / 0.5625 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.1596, allocations: 0.7928 MB / 0.5633 GB, free: 9.457 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002384/0.162, allocations: 2.339 MB / 0.5656 GB, free: 7.109 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00035/0.1623, allocations: 237.1 kB / 0.5658 GB, free: 6.867 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.1642, allocations: 0.9842 MB / 0.5668 GB, free: 5.879 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007398/0.165, allocations: 0.7 MB / 0.5675 GB, free: 5.176 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001254/0.1651, allocations: 56 kB / 0.5675 GB, free: 5.121 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002035/0.1672, allocations: 0.8112 MB / 0.5683 GB, free: 4.309 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.1674, allocations: 219 kB / 0.5685 GB, free: 4.094 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005432/0.1679, allocations: 0.5634 MB / 0.5691 GB, free: 3.527 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001462/0.1694, allocations: 1.243 MB / 0.5703 GB, free: 2.281 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.1694, allocations: 0 / 0.5703 GB, free: 2.281 MB / 446.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.1694, allocations: 0 / 0.5703 GB, free: 2.281 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.495e-05/0.1695, allocations: 0 / 0.5703 GB, free: 2.281 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.002938/0.1724, allocations: 1.566 MB / 0.5718 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.1724, allocations: 8.031 kB / 0.5718 GB, free: 0.6523 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003579/0.1728, allocations: 127.5 kB / 0.5719 GB, free: 0.5273 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008767/0.1737, allocations: 0.642 MB / 0.5726 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-05/0.1738, allocations: 100.3 kB / 0.5727 GB, free: 15.74 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.1739, allocations: 96.02 kB / 0.5728 GB, free: 15.65 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001661/0.1756, allocations: 0.9917 MB / 0.5737 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1756, allocations: 0 / 0.5737 GB, free: 14.62 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.726e-05/0.1757, allocations: 40 kB / 0.5738 GB, free: 14.58 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.1758, allocations: 20 kB / 0.5738 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.1774, allocations: 0.8861 MB / 0.5746 GB, free: 13.67 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005561/0.183, allocations: 4.589 MB / 0.5791 GB, free: 8.691 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002012/0.185, allocations: 1.002 MB / 0.5801 GB, free: 7.652 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007564/0.1858, allocations: 453.9 kB / 0.5805 GB, free: 7.207 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003478/0.1893, allocations: 3.007 MB / 0.5835 GB, free: 3.84 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.1893, allocations: 46.95 kB / 0.5835 GB, free: 3.785 MB / 462.1 MB Notification: Performance of pre-optimization done (n=99): time 2.345e-06/0.1893, allocations: 0 / 0.5835 GB, free: 3.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=112): time 0.2098/0.3992, allocations: 4.199 MB / 0.5876 GB, free: 75.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.3993, allocations: 96.5 kB / 0.5877 GB, free: 75.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.4003, allocations: 0.6676 MB / 0.5884 GB, free: 75.12 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001708/0.4005, allocations: 50.14 kB / 0.5884 GB, free: 75.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002852/0.4008, allocations: 419.5 kB / 0.5888 GB, free: 75 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003227/0.4011, allocations: 391.4 kB / 0.5892 GB, free: 74.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003377/0.4015, allocations: 189.5 kB / 0.5894 GB, free: 74.78 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.464e-05/0.4015, allocations: 354.1 kB / 0.5897 GB, free: 74.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008975/0.4024, allocations: 383.4 kB / 0.5901 GB, free: 74.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001009/0.4035, allocations: 0.5468 MB / 0.5906 GB, free: 74 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.002033/0.4055, allocations: 1.06 MB / 0.5916 GB, free: 73.38 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.766e-06/0.4055, allocations: 1.969 kB / 0.5916 GB, free: 73.38 MB / 462.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003362/0.4089, allocations: 1.447 MB / 0.5931 GB, free: 72.75 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.4089, allocations: 11.31 kB / 0.5931 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.179e-05/0.409, allocations: 4.531 kB / 0.5931 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001242/0.4102, allocations: 355.2 kB / 0.5934 GB, free: 72.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008094/0.411, allocations: 201.1 kB / 0.5936 GB, free: 72.59 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006818/0.4179, allocations: 11.6 MB / 0.6049 GB, free: 61.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008867/0.4188, allocations: 58.94 kB / 0.605 GB, free: 61.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/0.4189, allocations: 47.97 kB / 0.605 GB, free: 61.34 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 (111): * Single equations (assignments): 102 * 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.0004765/0.4194, allocations: 246.2 kB / 0.6053 GB, free: 61.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002541/0.4197, allocations: 100.8 kB / 0.6054 GB, free: 61.09 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/0.4232, allocations: 1.597 MB / 0.6069 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/0.4232, allocations: 13.16 kB / 0.6069 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.302e-05/0.4232, allocations: 6.375 kB / 0.6069 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.4232, allocations: 9.047 kB / 0.6069 GB, free: 60.38 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005057/0.4283, allocations: 2.691 MB / 0.6096 GB, free: 59.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/0.4283, allocations: 0 / 0.6096 GB, free: 59.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007851/0.4291, allocations: 176.6 kB / 0.6097 GB, free: 59.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0012/0.4303, allocations: 365.8 kB / 0.6101 GB, free: 58.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.4305, allocations: 36.36 kB / 0.6101 GB, free: 58.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007424/0.4379, allocations: 11.6 MB / 0.6215 GB, free: 47.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.4379, allocations: 1.25 kB / 0.6215 GB, free: 47.64 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004256/0.4422, allocations: 2.085 MB / 0.6235 GB, free: 46.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002937/0.4425, allocations: 164.1 kB / 0.6236 GB, free: 46.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001912/0.4427, allocations: 26.59 kB / 0.6237 GB, free: 46.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008632/0.4436, allocations: 72.16 kB / 0.6237 GB, free: 46.44 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/0.4439, allocations: 108.3 kB / 0.6238 GB, free: 46.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.617e-05/0.444, allocations: 42.69 kB / 0.6239 GB, free: 46.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006606/0.4447, allocations: 484.5 kB / 0.6243 GB, free: 46.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.393e-06/0.4447, allocations: 2.344 kB / 0.6244 GB, free: 46.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001781/0.4465, allocations: 472.2 kB / 0.6248 GB, free: 46.14 MB / 462.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.000929/0.4474, allocations: 464.7 kB / 0.6252 GB, free: 45.97 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00369/0.4511, allocations: 2.067 MB / 0.6273 GB, free: 44.62 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.4511, allocations: 1.062 kB / 0.6273 GB, free: 44.62 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002123/0.4532, allocations: 1.598 MB / 0.6288 GB, free: 43.43 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.455, allocations: 326.1 kB / 0.6291 GB, free: 43.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004263/0.4593, allocations: 2.902 MB / 0.632 GB, free: 41.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005281/0.4598, allocations: 1.046 MB / 0.633 GB, free: 40.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003543/0.4602, allocations: 107.2 kB / 0.6331 GB, free: 40.78 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4602, allocations: 4 kB / 0.6331 GB, free: 40.77 MB / 462.1 MB Notification: Performance of Templates: time 0.03955/0.4997, allocations: 48.78 MB / 0.6807 GB, free: 12.93 MB / 478.1 MB 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