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.001981/0.001981, allocations: 111.4 kB / 16.37 MB, free: 6 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.002076/0.002076, allocations: 197.6 kB / 17.31 MB, free: 5.613 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.481/1.481, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7807/0.7807, allocations: 89.49 MB / 380.7 MB, free: 8.699 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 75.88 kB / 459.7 MB, free: 10.59 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1239, allocations: 67.31 MB / 0.5146 GB, free: 7.199 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.2233/0.3473, allocations: 39.21 MB / 0.5529 GB, free: 26.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008577/0.3559, allocations: 8.635 MB / 0.5613 GB, free: 21.68 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008271/0.3567, allocations: 17.78 kB / 0.5614 GB, free: 21.67 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.358, allocations: 0.5022 MB / 0.5619 GB, free: 21.38 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003178/0.3613, allocations: 1.273 MB / 0.5631 GB, free: 20.59 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002173/0.3635, allocations: 0.8983 MB / 0.564 GB, free: 20.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002328/0.3658, allocations: 1.89 MB / 0.5658 GB, free: 19.2 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003995/0.3662, allocations: 247.5 kB / 0.5661 GB, free: 19.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002523/0.3688, allocations: 1.083 MB / 0.5671 GB, free: 18.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009198/0.3697, allocations: 0.7083 MB / 0.5678 GB, free: 18.28 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001785/0.3699, allocations: 96.16 kB / 0.5679 GB, free: 18.28 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002526/0.3724, allocations: 0.8552 MB / 0.5687 GB, free: 18.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002384/0.3727, allocations: 251.9 kB / 0.569 GB, free: 17.87 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005351/0.3732, allocations: 0.6001 MB / 0.5696 GB, free: 17.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002479/0.3757, allocations: 1.72 MB / 0.5712 GB, free: 16.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.3757, allocations: 4 kB / 0.5712 GB, free: 16.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3757, allocations: 1.281 kB / 0.5712 GB, free: 16.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.375e-05/0.3757, allocations: 0 / 0.5712 GB, free: 16.84 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.002869/0.3786, allocations: 1.557 MB / 0.5728 GB, free: 15.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.528e-05/0.3787, allocations: 13.88 kB / 0.5728 GB, free: 15.83 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003536/0.379, allocations: 130.4 kB / 0.5729 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009359/0.38, allocations: 0.6401 MB / 0.5735 GB, free: 15.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.929e-05/0.3801, allocations: 98.41 kB / 0.5736 GB, free: 15.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001283/0.3802, allocations: 91.14 kB / 0.5737 GB, free: 15.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.3818, allocations: 0.9971 MB / 0.5747 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.104e-05/0.3818, allocations: 0 / 0.5747 GB, free: 14.77 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.076e-05/0.3819, allocations: 39.69 kB / 0.5747 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.3819, allocations: 22.08 kB / 0.5747 GB, free: 14.74 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001562/0.3835, allocations: 0.8941 MB / 0.5756 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00522/0.3887, allocations: 4.575 MB / 0.5801 GB, free: 10.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001866/0.3906, allocations: 1.012 MB / 0.5811 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007813/0.3914, allocations: 457.7 kB / 0.5815 GB, free: 10.16 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003108/0.3945, allocations: 2.994 MB / 0.5844 GB, free: 7.527 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.423e-05/0.3946, allocations: 50.91 kB / 0.5845 GB, free: 7.477 MB / 446.1 MB Notification: Performance of pre-optimization done (n=99): time 2.254e-06/0.3946, allocations: 0 / 0.5845 GB, free: 7.477 MB / 446.1 MB Notification: Performance of matching and sorting (n=112): time 0.008737/0.4033, allocations: 4.208 MB / 0.5886 GB, free: 5.078 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.133e-05/0.4034, allocations: 93.61 kB / 0.5887 GB, free: 4.977 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007906/0.4042, allocations: 0.6673 MB / 0.5893 GB, free: 4.688 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.233e-05/0.4042, allocations: 51.81 kB / 0.5894 GB, free: 4.637 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002155/0.4045, allocations: 420.7 kB / 0.5898 GB, free: 4.305 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.4047, allocations: 392.8 kB / 0.5902 GB, free: 3.996 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002756/0.4049, allocations: 192.4 kB / 0.5903 GB, free: 3.898 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.909e-05/0.405, allocations: 344.9 kB / 0.5907 GB, free: 3.578 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007568/0.4058, allocations: 382 kB / 0.591 GB, free: 3.438 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008422/0.4066, allocations: 0.5508 MB / 0.5916 GB, free: 3.117 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.001684/0.4083, allocations: 1.062 MB / 0.5926 GB, free: 2.465 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.4083, allocations: 1.188 kB / 0.5926 GB, free: 2.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=137) (initialization): time 0.002904/0.4112, allocations: 1.451 MB / 0.594 GB, free: 1.816 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.4113, allocations: 6.859 kB / 0.594 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.757e-05/0.4113, allocations: 5.188 kB / 0.594 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.4124, allocations: 349 kB / 0.5944 GB, free: 1.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000764/0.4132, allocations: 199.4 kB / 0.5946 GB, free: 1.652 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008922/0.4221, allocations: 12.59 MB / 0.6069 GB, free: 5.137 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008089/0.4229, allocations: 43.59 kB / 0.6069 GB, free: 5.109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000101/0.423, allocations: 52.14 kB / 0.6069 GB, free: 5.09 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.000458/0.4235, allocations: 244.5 kB / 0.6072 GB, free: 4.887 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/0.4237, allocations: 103.7 kB / 0.6073 GB, free: 4.832 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003411/0.4271, allocations: 1.593 MB / 0.6088 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.662e-05/0.4272, allocations: 12.45 kB / 0.6088 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.4272, allocations: 5.406 kB / 0.6089 GB, free: 3.867 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.357e-05/0.4272, allocations: 6.953 kB / 0.6089 GB, free: 3.863 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004702/0.4319, allocations: 2.693 MB / 0.6115 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.628e-06/0.4319, allocations: 0 / 0.6115 GB, free: 1.754 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007723/0.4327, allocations: 175.8 kB / 0.6117 GB, free: 1.582 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.4338, allocations: 358 kB / 0.612 GB, free: 1.211 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.347e-05/0.4339, allocations: 35.97 kB / 0.612 GB, free: 1.176 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009206/0.4431, allocations: 12.61 MB / 0.6243 GB, free: 3.473 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4432, allocations: 3.938 kB / 0.6244 GB, free: 3.469 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00401/0.4472, allocations: 2.079 MB / 0.6264 GB, free: 1.344 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002567/0.4474, allocations: 171.7 kB / 0.6265 GB, free: 1.156 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/0.4476, allocations: 24 kB / 0.6266 GB, free: 1.133 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007053/0.4483, allocations: 51.95 kB / 0.6266 GB, free: 1.082 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.4485, allocations: 104.8 kB / 0.6267 GB, free: 0.9805 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.996e-05/0.4486, allocations: 39.97 kB / 0.6268 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00057/0.4492, allocations: 487 kB / 0.6272 GB, free: 484 kB / 478.1 MB Notification: Performance of sort global known variables: time 1.342e-06/0.4492, allocations: 0 / 0.6272 GB, free: 484 kB / 478.1 MB Notification: Performance of remove unused functions: time 0.001618/0.4508, allocations: 467.8 kB / 0.6277 GB, free: 16 kB / 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.0007312/0.4516, allocations: 471.1 kB / 0.6281 GB, free: 15.57 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.003175/0.4547, allocations: 2.073 MB / 0.6301 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.4548, allocations: 3.938 kB / 0.6301 GB, free: 13.38 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.457, allocations: 1.594 MB / 0.6317 GB, free: 11.68 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.4584, allocations: 347.7 kB / 0.632 GB, free: 11.38 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003866/0.4623, allocations: 2.434 MB / 0.6344 GB, free: 8.953 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.4629, allocations: 1.051 MB / 0.6354 GB, free: 7.871 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006365/0.4635, allocations: 184 kB / 0.6356 GB, free: 7.723 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.4638, allocations: 91.41 kB / 0.6357 GB, free: 7.633 MB / 494.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4638, allocations: 0 / 0.6357 GB, free: 7.633 MB / 494.1 MB Notification: Performance of Templates: time 0.03348/0.4973, allocations: 23.66 MB / 0.6588 GB, free: 312 kB / 0.4981 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 -s gbode -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