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.0009741/0.0009741, allocations: 88.77 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 183.2 kB / 16.92 MB, free: 6.652 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.3/1.3, allocations: 223.3 MB / 241 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6208/0.6208, allocations: 89.64 MB / 381.7 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.0003751/0.0003753, allocations: 15.75 kB / 461.3 MB, free: 24.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1327, allocations: 68.83 MB / 0.5177 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.03889/0.1716, allocations: 39.18 MB / 0.556 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01059/0.1823, allocations: 8.688 MB / 0.5644 GB, free: 11.28 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00105/0.1834, allocations: 15.94 kB / 0.5645 GB, free: 11.27 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1847, allocations: 457.5 kB / 0.5649 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003476/0.1882, allocations: 1.162 MB / 0.566 GB, free: 9.648 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.1905, allocations: 0.8017 MB / 0.5668 GB, free: 8.848 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002753/0.1933, allocations: 2.339 MB / 0.5691 GB, free: 6.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.1937, allocations: 229.1 kB / 0.5693 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002115/0.1959, allocations: 0.9686 MB / 0.5703 GB, free: 5.293 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001034/0.1969, allocations: 0.6688 MB / 0.5709 GB, free: 4.621 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000239/0.1972, allocations: 48 kB / 0.571 GB, free: 4.574 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002153/0.1993, allocations: 0.7917 MB / 0.5717 GB, free: 3.781 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002813/0.1996, allocations: 211 kB / 0.5719 GB, free: 3.574 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007381/0.2004, allocations: 0.5651 MB / 0.5725 GB, free: 3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.2022, allocations: 1.216 MB / 0.5737 GB, free: 1.781 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2022, allocations: 0 / 0.5737 GB, free: 1.781 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2022, allocations: 3.938 kB / 0.5737 GB, free: 1.777 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.254e-05/0.2022, allocations: 0 / 0.5737 GB, free: 1.777 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.002961/0.2052, allocations: 1.367 MB / 0.575 GB, free: 364 kB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2053, allocations: 12.03 kB / 0.575 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004113/0.2057, allocations: 127.5 kB / 0.5751 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2239/0.4296, allocations: 0.6326 MB / 0.5758 GB, free: 59.73 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001451/0.4298, allocations: 93.48 kB / 0.5759 GB, free: 59.7 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002223/0.43, allocations: 95.92 kB / 0.5759 GB, free: 59.7 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002179/0.4322, allocations: 1.002 MB / 0.5769 GB, free: 59.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.983e-05/0.4322, allocations: 6.25 kB / 0.5769 GB, free: 59.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00012/0.4324, allocations: 37.81 kB / 0.577 GB, free: 59.55 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.861e-05/0.4324, allocations: 25.12 kB / 0.577 GB, free: 59.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002121/0.4345, allocations: 0.9029 MB / 0.5779 GB, free: 59.53 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005832/0.4404, allocations: 4.62 MB / 0.5824 GB, free: 56.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001915/0.4423, allocations: 1.012 MB / 0.5834 GB, free: 55.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008126/0.4431, allocations: 471.2 kB / 0.5838 GB, free: 55.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00329/0.4464, allocations: 2.998 MB / 0.5868 GB, free: 52.86 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.4465, allocations: 48.03 kB / 0.5868 GB, free: 52.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=99): time 2.875e-06/0.4465, allocations: 1.969 kB / 0.5868 GB, free: 52.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=112): time 0.009405/0.4559, allocations: 4.294 MB / 0.591 GB, free: 50.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.1e-05/0.456, allocations: 89.34 kB / 0.5911 GB, free: 50.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008578/0.4569, allocations: 0.6684 MB / 0.5917 GB, free: 50.07 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.07e-05/0.4569, allocations: 51.27 kB / 0.5918 GB, free: 50.03 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002558/0.4572, allocations: 430.5 kB / 0.5922 GB, free: 49.69 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002721/0.4575, allocations: 385.7 kB / 0.5926 GB, free: 49.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.4576, allocations: 91.88 kB / 0.5926 GB, free: 49.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.931e-05/0.4577, allocations: 348.9 kB / 0.593 GB, free: 49.02 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008454/0.4586, allocations: 399.2 kB / 0.5934 GB, free: 48.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009182/0.4595, allocations: 0.5563 MB / 0.5939 GB, free: 48.57 MB / 446.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.001956/0.4615, allocations: 1.086 MB / 0.595 GB, free: 47.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.619e-06/0.4615, allocations: 0 / 0.595 GB, free: 47.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.003189/0.4647, allocations: 1.482 MB / 0.5964 GB, free: 47.28 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.4647, allocations: 7.5 kB / 0.5964 GB, free: 47.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.4648, allocations: 5.938 kB / 0.5964 GB, free: 47.28 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001226/0.466, allocations: 359.8 kB / 0.5968 GB, free: 47.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008061/0.4668, allocations: 201.5 kB / 0.597 GB, free: 47.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007346/0.4742, allocations: 11.63 MB / 0.6083 GB, free: 35.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008911/0.4751, allocations: 66.03 kB / 0.6084 GB, free: 35.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.4752, allocations: 46.28 kB / 0.6084 GB, free: 35.82 MB / 446.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0004615/0.4757, allocations: 244.4 kB / 0.6087 GB, free: 35.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000234/0.4759, allocations: 103.8 kB / 0.6088 GB, free: 35.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00394/0.4799, allocations: 1.625 MB / 0.6103 GB, free: 34.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.4799, allocations: 14.72 kB / 0.6104 GB, free: 34.82 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.4799, allocations: 4.812 kB / 0.6104 GB, free: 34.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.4799, allocations: 8.531 kB / 0.6104 GB, free: 34.82 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00467/0.4846, allocations: 2.716 MB / 0.613 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.4846, allocations: 2.469 kB / 0.613 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007509/0.4854, allocations: 192.2 kB / 0.6132 GB, free: 33.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001151/0.4866, allocations: 357.4 kB / 0.6135 GB, free: 32.88 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.862e-05/0.4867, allocations: 38.78 kB / 0.6136 GB, free: 32.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007062/0.4937, allocations: 11.63 MB / 0.6249 GB, free: 21.23 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.4938, allocations: 1.656 kB / 0.6249 GB, free: 21.23 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004304/0.4981, allocations: 2.123 MB / 0.627 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003037/0.4984, allocations: 175.5 kB / 0.6272 GB, free: 19.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.4986, allocations: 23.81 kB / 0.6272 GB, free: 19.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008647/0.4995, allocations: 87.22 kB / 0.6273 GB, free: 19.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.4997, allocations: 87.67 kB / 0.6274 GB, free: 19.72 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.422e-05/0.4998, allocations: 46.72 kB / 0.6274 GB, free: 19.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005209/0.5003, allocations: 480.9 kB / 0.6279 GB, free: 19.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5003, allocations: 0 / 0.6279 GB, free: 19.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001735/0.5021, allocations: 476.7 kB / 0.6283 GB, free: 19.35 MB / 446.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.0007629/0.5028, allocations: 485.8 kB / 0.6288 GB, free: 19.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002947/0.5058, allocations: 2.093 MB / 0.6308 GB, free: 17.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.5058, allocations: 3.938 kB / 0.6308 GB, free: 17.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.5077, allocations: 1.61 MB / 0.6324 GB, free: 16.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/0.5094, allocations: 339 kB / 0.6327 GB, free: 16.12 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003775/0.5132, allocations: 3.084 MB / 0.6358 GB, free: 13.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/0.5137, allocations: 1.044 MB / 0.6368 GB, free: 12.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.514, allocations: 111.3 kB / 0.6369 GB, free: 12.26 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.514, allocations: 0 / 0.6369 GB, free: 12.26 MB / 446.1 MB Notification: Performance of Templates: time 0.04575/0.5597, allocations: 48.68 MB / 0.6844 GB, free: 11.56 MB / 494.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