Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.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.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001449/0.001448, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001742/0.001742, allocations: 195 kB / 16.26 MB, free: 6.621 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.396/1.396, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6844/0.6844, allocations: 91.18 MB / 381.3 MB, free: 9.551 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 79.66 kB / 459.8 MB, free: 23.27 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1292, allocations: 67.7 MB / 0.5151 GB, free: 10.53 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04089/0.1701, allocations: 41.63 MB / 0.5558 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008215/0.1784, allocations: 5.416 MB / 0.5611 GB, free: 11.31 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.1799, allocations: 47.69 kB / 0.5611 GB, free: 11.26 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001673/0.1816, allocations: 489.3 kB / 0.5616 GB, free: 10.78 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00397/0.1856, allocations: 1.232 MB / 0.5628 GB, free: 9.543 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002514/0.1882, allocations: 0.8093 MB / 0.5636 GB, free: 8.734 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002915/0.1911, allocations: 2.105 MB / 0.5656 GB, free: 6.621 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005545/0.1917, allocations: 277.1 kB / 0.5659 GB, free: 6.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002839/0.1945, allocations: 1.28 MB / 0.5671 GB, free: 5.055 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.1957, allocations: 0.7856 MB / 0.5679 GB, free: 4.266 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002793/0.196, allocations: 103.9 kB / 0.568 GB, free: 4.164 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002116/0.1981, allocations: 0.7373 MB / 0.5687 GB, free: 3.426 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003851/0.1985, allocations: 278.8 kB / 0.569 GB, free: 3.152 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009215/0.1994, allocations: 0.649 MB / 0.5696 GB, free: 2.5 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002866/0.2023, allocations: 1.807 MB / 0.5714 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.131e-06/0.2023, allocations: 7.984 kB / 0.5714 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2023, allocations: 0 / 0.5714 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.74e-05/0.2024, allocations: 0 / 0.5714 GB, free: 0.6797 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003493/0.2059, allocations: 1.643 MB / 0.573 GB, free: 14.98 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2059, allocations: 12.03 kB / 0.573 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004643/0.2064, allocations: 155.2 kB / 0.5732 GB, free: 14.82 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.2078, allocations: 0.7937 MB / 0.5739 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.154e-05/0.2079, allocations: 70.12 kB / 0.574 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.2081, allocations: 99.91 kB / 0.5741 GB, free: 13.82 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00195/0.21, allocations: 1.073 MB / 0.5752 GB, free: 12.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.609e-05/0.2101, allocations: 7.938 kB / 0.5752 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.369e-05/0.2102, allocations: 40 kB / 0.5752 GB, free: 12.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.94e-05/0.2102, allocations: 23.98 kB / 0.5752 GB, free: 12.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.212, allocations: 1.012 MB / 0.5762 GB, free: 11.63 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006049/0.2181, allocations: 4.758 MB / 0.5809 GB, free: 6.441 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001931/0.22, allocations: 0.9276 MB / 0.5818 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008703/0.2209, allocations: 0.4921 MB / 0.5822 GB, free: 5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004534/0.2255, allocations: 3.465 MB / 0.5856 GB, free: 1.117 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/0.2255, allocations: 47.06 kB / 0.5857 GB, free: 1.062 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.685e-06/0.2255, allocations: 0 / 0.5857 GB, free: 1.062 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.248/0.4735, allocations: 4.443 MB / 0.59 GB, free: 72.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.4736, allocations: 93.58 kB / 0.5901 GB, free: 72.24 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.4748, allocations: 0.7473 MB / 0.5908 GB, free: 71.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001443/0.475, allocations: 51.58 kB / 0.5909 GB, free: 71.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003311/0.4753, allocations: 479.1 kB / 0.5913 GB, free: 71.51 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003276/0.4757, allocations: 423.9 kB / 0.5917 GB, free: 71.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000367/0.476, allocations: 193.9 kB / 0.5919 GB, free: 71.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4761, allocations: 353.5 kB / 0.5923 GB, free: 70.76 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009578/0.4771, allocations: 413.1 kB / 0.5927 GB, free: 70.62 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001053/0.4782, allocations: 0.5758 MB / 0.5932 GB, free: 70.31 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00202/0.4802, allocations: 1.035 MB / 0.5942 GB, free: 69.77 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.4802, allocations: 1.188 kB / 0.5942 GB, free: 69.77 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00338/0.4836, allocations: 1.512 MB / 0.5957 GB, free: 69.12 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.276e-05/0.4837, allocations: 7.438 kB / 0.5957 GB, free: 69.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.4837, allocations: 5.812 kB / 0.5957 GB, free: 69.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.4847, allocations: 304.1 kB / 0.596 GB, free: 69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008815/0.4856, allocations: 243.7 kB / 0.5962 GB, free: 68.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006927/0.4926, allocations: 12.13 MB / 0.6081 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/0.4938, allocations: 70.22 kB / 0.6082 GB, free: 57.07 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.4939, allocations: 51.95 kB / 0.6082 GB, free: 57.06 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005005/0.4944, allocations: 255.5 kB / 0.6084 GB, free: 56.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002323/0.4946, allocations: 119 kB / 0.6086 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00382/0.4985, allocations: 1.867 MB / 0.6104 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.4985, allocations: 14.88 kB / 0.6104 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/0.4985, allocations: 2.906 kB / 0.6104 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.746e-05/0.4985, allocations: 9.844 kB / 0.6104 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005504/0.504, allocations: 2.895 MB / 0.6132 GB, free: 54.54 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.093e-06/0.5041, allocations: 2.219 kB / 0.6132 GB, free: 54.54 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009053/0.505, allocations: 216.5 kB / 0.6134 GB, free: 54.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.506, allocations: 321.7 kB / 0.6138 GB, free: 54.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001078/0.5062, allocations: 34.19 kB / 0.6138 GB, free: 54.38 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007285/0.5135, allocations: 12.15 MB / 0.6257 GB, free: 42.44 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.5135, allocations: 9.875 kB / 0.6257 GB, free: 42.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004882/0.5184, allocations: 2.157 MB / 0.6278 GB, free: 41.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004225/0.5188, allocations: 182.5 kB / 0.6279 GB, free: 41.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002052/0.519, allocations: 29.77 kB / 0.628 GB, free: 41.19 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009149/0.52, allocations: 80.88 kB / 0.6281 GB, free: 41.16 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003128/0.5203, allocations: 111.3 kB / 0.6282 GB, free: 41.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001197/0.5204, allocations: 48.28 kB / 0.6282 GB, free: 41.13 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008251/0.5213, allocations: 0.5556 MB / 0.6287 GB, free: 40.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5213, allocations: 0 / 0.6287 GB, free: 40.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001648/0.5229, allocations: 451.4 kB / 0.6292 GB, free: 40.81 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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,2,100.0%), (1,2,100.0%), (1,2,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.0006135/0.5235, allocations: 417.6 kB / 0.6296 GB, free: 40.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003704/0.5273, allocations: 2.135 MB / 0.6317 GB, free: 39.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/0.5273, allocations: 4.953 kB / 0.6317 GB, free: 39.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00226/0.5295, allocations: 1.596 MB / 0.6332 GB, free: 38.14 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001832/0.5314, allocations: 353.9 kB / 0.6336 GB, free: 38 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004645/0.5361, allocations: 3.116 MB / 0.6366 GB, free: 36.04 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005081/0.5366, allocations: 1.098 MB / 0.6377 GB, free: 35.17 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009587/0.5376, allocations: 238.3 kB / 0.6379 GB, free: 35.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000323/0.5379, allocations: 119.7 kB / 0.638 GB, free: 35.03 MB / 462.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5379, allocations: 3.938 kB / 0.638 GB, free: 35.02 MB / 462.1 MB Notification: Performance of Templates: time 0.03273/0.5706, allocations: 24.34 MB / 0.6618 GB, free: 14.21 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches