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.004857/0.004857, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001047/0.001047, allocations: 195 kB / 16.67 MB, free: 5.977 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8464/0.8464, allocations: 91.19 MB / 381.7 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 75.89 kB / 0.5168 GB, free: 4.113 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3746/0.3761, allocations: 67.68 MB / 0.5829 GB, free: 13.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.03262/0.4088, allocations: 39.36 MB / 0.6214 GB, free: 6.641 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.4194, allocations: 8.662 MB / 0.6298 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.4208, allocations: 35.81 kB / 0.6299 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.4224, allocations: 0.5277 MB / 0.6304 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003913/0.4264, allocations: 1.305 MB / 0.6317 GB, free: 12.07 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.4289, allocations: 0.8851 MB / 0.6325 GB, free: 11.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002665/0.4316, allocations: 1.965 MB / 0.6344 GB, free: 9.207 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004338/0.432, allocations: 260 kB / 0.6347 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002611/0.4347, allocations: 1.117 MB / 0.6358 GB, free: 7.824 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000911/0.4356, allocations: 0.735 MB / 0.6365 GB, free: 7.086 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001653/0.4358, allocations: 96 kB / 0.6366 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002368/0.4381, allocations: 0.8465 MB / 0.6374 GB, free: 6.145 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002582/0.4384, allocations: 262.8 kB / 0.6377 GB, free: 5.887 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006327/0.439, allocations: 0.6178 MB / 0.6383 GB, free: 5.266 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003251/0.4423, allocations: 1.831 MB / 0.6401 GB, free: 3.434 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.575e-06/0.4423, allocations: 8 kB / 0.6401 GB, free: 3.426 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4423, allocations: 3.938 kB / 0.6401 GB, free: 3.422 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.4424, allocations: 0 / 0.6401 GB, free: 3.422 MB / 494.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.002943/0.4453, allocations: 1.688 MB / 0.6417 GB, free: 1.68 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.4454, allocations: 8.031 kB / 0.6417 GB, free: 1.672 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003705/0.4457, allocations: 156 kB / 0.6419 GB, free: 1.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001334/0.4471, allocations: 0.8246 MB / 0.6427 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/0.4472, allocations: 95.69 kB / 0.6428 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001435/0.4474, allocations: 95.95 kB / 0.6429 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001916/0.4493, allocations: 0.9918 MB / 0.6438 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.562e-05/0.4493, allocations: 3.938 kB / 0.6438 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.159e-05/0.4494, allocations: 36 kB / 0.6439 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.349e-05/0.4495, allocations: 28 kB / 0.6439 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.4511, allocations: 0.8822 MB / 0.6448 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006386/0.4575, allocations: 4.617 MB / 0.6493 GB, free: 9.469 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/0.4596, allocations: 1.011 MB / 0.6503 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000784/0.4604, allocations: 476.1 kB / 0.6507 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0039/0.4643, allocations: 2.987 MB / 0.6536 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.462e-05/0.4644, allocations: 50.94 kB / 0.6537 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=99): time 2.615e-06/0.4644, allocations: 0 / 0.6537 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of matching and sorting (n=112): time 0.009426/0.4738, allocations: 4.279 MB / 0.6579 GB, free: 56 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/0.4739, allocations: 98.03 kB / 0.658 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001017/0.475, allocations: 0.7556 MB / 0.6587 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.248e-05/0.475, allocations: 45.7 kB / 0.6587 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004233/0.4755, allocations: 477.2 kB / 0.6592 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.4758, allocations: 412.4 kB / 0.6596 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002896/0.4761, allocations: 182.9 kB / 0.6598 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.4762, allocations: 341.9 kB / 0.6601 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007661/0.477, allocations: 390.4 kB / 0.6605 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000891/0.4779, allocations: 0.5366 MB / 0.661 GB, free: 12.75 MB / 0.5137 GB 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.001909/0.4798, allocations: 1.061 MB / 0.662 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.398e-06/0.4798, allocations: 8 kB / 0.662 GB, free: 11.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003172/0.483, allocations: 1.458 MB / 0.6634 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.4831, allocations: 8 kB / 0.6635 GB, free: 10.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/0.4831, allocations: 4 kB / 0.6635 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001207/0.4843, allocations: 355 kB / 0.6638 GB, free: 9.723 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007577/0.4851, allocations: 191.7 kB / 0.664 GB, free: 9.535 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009917/0.495, allocations: 12.6 MB / 0.6763 GB, free: 11.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008738/0.4959, allocations: 43.97 kB / 0.6763 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.8e-05/0.496, allocations: 43.98 kB / 0.6764 GB, free: 11.74 MB / 0.5294 GB 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.0005554/0.4966, allocations: 256.1 kB / 0.6766 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003635/0.4969, allocations: 115.2 kB / 0.6767 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003527/0.5005, allocations: 1.609 MB / 0.6783 GB, free: 9.723 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5005, allocations: 12 kB / 0.6783 GB, free: 9.711 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.5005, allocations: 4 kB / 0.6783 GB, free: 9.707 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.526e-05/0.5005, allocations: 11.97 kB / 0.6783 GB, free: 9.695 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004961/0.5055, allocations: 2.719 MB / 0.681 GB, free: 6.887 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.5055, allocations: 4 kB / 0.681 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000746/0.5063, allocations: 179.8 kB / 0.6811 GB, free: 6.707 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/0.5074, allocations: 354.5 kB / 0.6815 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/0.5076, allocations: 39.97 kB / 0.6815 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/0.5176, allocations: 12.61 MB / 0.6938 GB, free: 8.578 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5177, allocations: 0 / 0.6938 GB, free: 8.578 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005008/0.5227, allocations: 2.095 MB / 0.6959 GB, free: 6.438 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004962/0.5232, allocations: 184.3 kB / 0.6961 GB, free: 6.238 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003163/0.5235, allocations: 24 kB / 0.6961 GB, free: 6.215 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009488/0.5245, allocations: 55.89 kB / 0.6961 GB, free: 6.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002828/0.5248, allocations: 92.88 kB / 0.6962 GB, free: 6.066 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001351/0.5249, allocations: 47.97 kB / 0.6963 GB, free: 6.02 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000938/0.5259, allocations: 0.5305 MB / 0.6968 GB, free: 5.477 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5259, allocations: 0 / 0.6968 GB, free: 5.477 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002089/0.528, allocations: 479.2 kB / 0.6972 GB, free: 5.008 MB / 0.545 GB 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.0009987/0.529, allocations: 476.5 kB / 0.6977 GB, free: 4.535 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003826/0.5328, allocations: 2.071 MB / 0.6997 GB, free: 2.355 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.5329, allocations: 4 kB / 0.6997 GB, free: 2.352 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002508/0.5354, allocations: 1.602 MB / 0.7013 GB, free: 0.6328 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001861/0.5373, allocations: 355.4 kB / 0.7016 GB, free: 300 kB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005161/0.5424, allocations: 2.575 MB / 0.7041 GB, free: 13.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008153/0.5433, allocations: 1.087 MB / 0.7052 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000848/0.5441, allocations: 204.4 kB / 0.7054 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002882/0.5444, allocations: 107.3 kB / 0.7055 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of SimCode: time 7.62e-07/0.5444, allocations: 0 / 0.7055 GB, free: 12.26 MB / 0.5606 GB Notification: Performance of Templates: time 0.04326/0.5877, allocations: 24.09 MB / 0.729 GB, free: 4.355 MB / 0.5762 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches