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.001173/0.001173, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.009808/0.009808, allocations: 174.5 kB / 16.27 MB, free: 6.648 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.443/1.443, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7185/0.7185, allocations: 91.33 MB / 382.7 MB, free: 9.664 MB / 318.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003508/0.0003508, allocations: 9.781 kB / 462.7 MB, free: 23.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1346, allocations: 69.21 MB / 0.5195 GB, free: 9.121 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.04091/0.1755, allocations: 39.39 MB / 0.5579 GB, free: 1.594 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.1882, allocations: 8.745 MB / 0.5665 GB, free: 8.828 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001361/0.1895, allocations: 39.69 kB / 0.5665 GB, free: 8.789 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.1911, allocations: 453.5 kB / 0.5669 GB, free: 8.344 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003551/0.1946, allocations: 1.193 MB / 0.5681 GB, free: 7.145 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002335/0.197, allocations: 0.7978 MB / 0.5689 GB, free: 6.348 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002873/0.1999, allocations: 2.417 MB / 0.5712 GB, free: 3.918 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004704/0.2004, allocations: 233.4 kB / 0.5715 GB, free: 3.676 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002257/0.2026, allocations: 1.007 MB / 0.5724 GB, free: 2.664 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001081/0.2037, allocations: 0.6842 MB / 0.5731 GB, free: 1.977 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000256/0.204, allocations: 48 kB / 0.5732 GB, free: 1.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002248/0.2062, allocations: 0.7917 MB / 0.5739 GB, free: 1.137 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003387/0.2066, allocations: 214.8 kB / 0.5741 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008286/0.2074, allocations: 0.5961 MB / 0.5747 GB, free: 328 kB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2649/0.4724, allocations: 1.675 MB / 0.5764 GB, free: 10.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.4724, allocations: 2.844 kB / 0.5764 GB, free: 10.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.4724, allocations: 0.7812 kB / 0.5764 GB, free: 10.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.903e-05/0.4725, allocations: 0 / 0.5764 GB, free: 10.16 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.003776/0.4763, allocations: 1.439 MB / 0.5778 GB, free: 9.438 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.4763, allocations: 9.094 kB / 0.5778 GB, free: 9.438 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004484/0.4768, allocations: 151.1 kB / 0.5779 GB, free: 9.371 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001235/0.478, allocations: 0.7693 MB / 0.5787 GB, free: 9.031 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.4782, allocations: 96.86 kB / 0.5788 GB, free: 8.992 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000166/0.4784, allocations: 89.98 kB / 0.5788 GB, free: 8.992 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001736/0.4801, allocations: 1.001 MB / 0.5798 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.4801, allocations: 3 kB / 0.5798 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.089e-05/0.4802, allocations: 39.25 kB / 0.5799 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/0.4803, allocations: 21 kB / 0.5799 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/0.4819, allocations: 0.9041 MB / 0.5808 GB, free: 8.859 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006276/0.4882, allocations: 4.639 MB / 0.5853 GB, free: 22.13 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.4903, allocations: 1.013 MB / 0.5863 GB, free: 21.98 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007456/0.491, allocations: 474.6 kB / 0.5867 GB, free: 21.96 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003938/0.495, allocations: 3 MB / 0.5897 GB, free: 19.82 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.495, allocations: 43.88 kB / 0.5897 GB, free: 19.78 MB / 462.1 MB Notification: Performance of pre-optimization done (n=99): time 2.745e-06/0.495, allocations: 0 / 0.5897 GB, free: 19.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=112): time 0.009937/0.505, allocations: 4.332 MB / 0.5939 GB, free: 18.33 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.892e-05/0.5051, allocations: 88.73 kB / 0.594 GB, free: 18.23 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001291/0.5064, allocations: 0.7538 MB / 0.5948 GB, free: 18.1 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.5065, allocations: 50.39 kB / 0.5948 GB, free: 18.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004152/0.5069, allocations: 468.2 kB / 0.5953 GB, free: 17.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000346/0.5073, allocations: 391.7 kB / 0.5956 GB, free: 17.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001823/0.5075, allocations: 95.02 kB / 0.5957 GB, free: 17.62 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001918/0.5077, allocations: 350.2 kB / 0.5961 GB, free: 17.31 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009941/0.5087, allocations: 391.5 kB / 0.5964 GB, free: 17.31 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.5097, allocations: 0.5611 MB / 0.597 GB, free: 17.15 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.001847/0.5116, allocations: 1.083 MB / 0.598 GB, free: 16.89 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.5116, allocations: 5.719 kB / 0.598 GB, free: 16.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003283/0.5149, allocations: 1.478 MB / 0.5995 GB, free: 16.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.5149, allocations: 9.781 kB / 0.5995 GB, free: 16.68 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.086e-05/0.515, allocations: 7.406 kB / 0.5995 GB, free: 16.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.5162, allocations: 357.5 kB / 0.5998 GB, free: 16.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008403/0.5171, allocations: 197 kB / 0.6 GB, free: 16.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01002/0.5271, allocations: 11.62 MB / 0.6114 GB, free: 6.398 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.5284, allocations: 68.69 kB / 0.6114 GB, free: 6.391 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003102/0.5288, allocations: 47.11 kB / 0.6115 GB, free: 6.391 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 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 (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.000963/0.5297, allocations: 255 kB / 0.6117 GB, free: 6.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004522/0.5302, allocations: 113.9 kB / 0.6118 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004348/0.5346, allocations: 1.633 MB / 0.6134 GB, free: 5.992 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.5346, allocations: 15.97 kB / 0.6134 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.799e-05/0.5346, allocations: 4.344 kB / 0.6134 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.5346, allocations: 8.703 kB / 0.6135 GB, free: 5.988 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006114/0.5408, allocations: 2.749 MB / 0.6161 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.5408, allocations: 2.75 kB / 0.6161 GB, free: 5.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.5416, allocations: 185.1 kB / 0.6163 GB, free: 5.328 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001228/0.5429, allocations: 359.6 kB / 0.6167 GB, free: 5.191 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001076/0.543, allocations: 44.02 kB / 0.6167 GB, free: 5.168 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009707/0.5527, allocations: 11.63 MB / 0.6281 GB, free: 9.957 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.5527, allocations: 0 / 0.6281 GB, free: 9.957 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004584/0.5573, allocations: 2.132 MB / 0.6301 GB, free: 8.93 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005014/0.5578, allocations: 183.2 kB / 0.6303 GB, free: 8.766 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003092/0.5582, allocations: 29.41 kB / 0.6303 GB, free: 8.746 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.5593, allocations: 76.44 kB / 0.6304 GB, free: 8.73 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002603/0.5595, allocations: 105.9 kB / 0.6305 GB, free: 8.707 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.5597, allocations: 42.88 kB / 0.6306 GB, free: 8.699 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008859/0.5606, allocations: 0.5294 MB / 0.6311 GB, free: 8.461 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.5606, allocations: 0 / 0.6311 GB, free: 8.461 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002229/0.5628, allocations: 472.5 kB / 0.6315 GB, free: 8.367 MB / 478.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.001047/0.5639, allocations: 473.6 kB / 0.632 GB, free: 8.152 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003592/0.5675, allocations: 2.093 MB / 0.634 GB, free: 6.824 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.5675, allocations: 4 kB / 0.634 GB, free: 6.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00246/0.57, allocations: 1.614 MB / 0.6356 GB, free: 5.645 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002218/0.5722, allocations: 326.4 kB / 0.6359 GB, free: 5.543 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00509/0.5773, allocations: 3.184 MB / 0.639 GB, free: 3.648 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006869/0.578, allocations: 1.083 MB / 0.6401 GB, free: 2.918 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0009136/0.5789, allocations: 200.1 kB / 0.6403 GB, free: 2.844 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.5792, allocations: 102.7 kB / 0.6404 GB, free: 2.824 MB / 478.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5792, allocations: 0 / 0.6404 GB, free: 2.824 MB / 478.1 MB Notification: Performance of Templates: time 0.03858/0.6178, allocations: 22.8 MB / 0.6626 GB, free: 1.074 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches