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.001633/0.001633, allocations: 102 kB / 16.27 MB, free: 5.965 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.002057/0.002057, allocations: 192 kB / 17.2 MB, free: 5.59 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.359/1.359, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6986/0.6986, allocations: 91.18 MB / 382.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00204/0.002041, allocations: 71.89 kB / 461 MB, free: 9.039 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.129, allocations: 67.69 MB / 0.5163 GB, free: 5.273 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.2583/0.3873, allocations: 41.1 MB / 0.5564 GB, free: 23.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007157/0.3945, allocations: 5.321 MB / 0.5616 GB, free: 20.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001514/0.396, allocations: 39.47 kB / 0.5616 GB, free: 20.14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001744/0.3978, allocations: 0.5397 MB / 0.5622 GB, free: 19.83 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004079/0.402, allocations: 1.342 MB / 0.5635 GB, free: 19 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0027/0.4047, allocations: 0.8722 MB / 0.5643 GB, free: 18.54 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.4081, allocations: 2.118 MB / 0.5664 GB, free: 17.5 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000724/0.4088, allocations: 273.3 kB / 0.5667 GB, free: 17.41 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003425/0.4123, allocations: 1.295 MB / 0.5679 GB, free: 16.8 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001756/0.414, allocations: 0.7708 MB / 0.5687 GB, free: 16.44 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005001/0.4146, allocations: 100 kB / 0.5688 GB, free: 16.44 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003152/0.4177, allocations: 0.7449 MB / 0.5695 GB, free: 16.22 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005473/0.4183, allocations: 268.4 kB / 0.5698 GB, free: 16.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001697/0.42, allocations: 0.6499 MB / 0.5704 GB, free: 15.66 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00483/0.4248, allocations: 1.801 MB / 0.5722 GB, free: 14.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/0.4249, allocations: 0 / 0.5722 GB, free: 14.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4249, allocations: 0 / 0.5722 GB, free: 14.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 8.145e-05/0.425, allocations: 1.859 kB / 0.5722 GB, free: 14.94 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.005208/0.4302, allocations: 1.65 MB / 0.5738 GB, free: 13.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.4302, allocations: 10.31 kB / 0.5738 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007752/0.431, allocations: 148.7 kB / 0.5739 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.4331, allocations: 0.798 MB / 0.5747 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.455e-05/0.4331, allocations: 75.52 kB / 0.5748 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002604/0.4334, allocations: 103.1 kB / 0.5749 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002392/0.4358, allocations: 1.072 MB / 0.5759 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.4359, allocations: 1.375 kB / 0.5759 GB, free: 12.74 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001116/0.436, allocations: 45.62 kB / 0.576 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.436, allocations: 26.64 kB / 0.576 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002006/0.438, allocations: 1.006 MB / 0.577 GB, free: 12.35 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006748/0.4448, allocations: 4.773 MB / 0.5816 GB, free: 8.621 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00195/0.4467, allocations: 0.9346 MB / 0.5825 GB, free: 8.195 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009333/0.4477, allocations: 0.4933 MB / 0.583 GB, free: 7.988 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004732/0.4524, allocations: 3.47 MB / 0.5864 GB, free: 4.961 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.4525, allocations: 50.12 kB / 0.5865 GB, free: 4.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 2.905e-06/0.4525, allocations: 0 / 0.5865 GB, free: 4.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=122): time 0.01075/0.4633, allocations: 4.436 MB / 0.5908 GB, free: 2.496 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.4633, allocations: 94.81 kB / 0.5909 GB, free: 2.398 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.4644, allocations: 0.7482 MB / 0.5916 GB, free: 2.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.814e-05/0.4645, allocations: 47.69 kB / 0.5917 GB, free: 2.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.4648, allocations: 482.1 kB / 0.5921 GB, free: 1.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.465, allocations: 426.3 kB / 0.5925 GB, free: 1.254 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002999/0.4654, allocations: 194.2 kB / 0.5927 GB, free: 1.141 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.076e-05/0.4654, allocations: 352.1 kB / 0.593 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008479/0.4663, allocations: 416.8 kB / 0.5934 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009332/0.4672, allocations: 0.5643 MB / 0.594 GB, free: 228 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001969/0.4692, allocations: 1.049 MB / 0.595 GB, free: 15.59 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.4692, allocations: 1.562 kB / 0.595 GB, free: 15.59 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003367/0.4726, allocations: 1.501 MB / 0.5965 GB, free: 14.77 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.4726, allocations: 7.125 kB / 0.5965 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4727, allocations: 3.469 kB / 0.5965 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.4737, allocations: 304.7 kB / 0.5968 GB, free: 14.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009053/0.4746, allocations: 234.7 kB / 0.597 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008841/0.4835, allocations: 12.14 MB / 0.6089 GB, free: 2.281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.4847, allocations: 49.23 kB / 0.6089 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/0.4848, allocations: 49.23 kB / 0.609 GB, free: 2.238 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.0005736/0.4854, allocations: 265 kB / 0.6092 GB, free: 2.02 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.4857, allocations: 114.1 kB / 0.6093 GB, free: 1.961 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003854/0.4895, allocations: 1.871 MB / 0.6111 GB, free: 0.75 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-05/0.4895, allocations: 15.98 kB / 0.6112 GB, free: 0.7344 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.4896, allocations: 7.938 kB / 0.6112 GB, free: 0.7266 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.467e-05/0.4896, allocations: 7.984 kB / 0.6112 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005095/0.4947, allocations: 2.887 MB / 0.614 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.4947, allocations: 0 / 0.614 GB, free: 13.75 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008929/0.4956, allocations: 211.7 kB / 0.6142 GB, free: 13.54 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001026/0.4966, allocations: 316.4 kB / 0.6145 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.437e-05/0.4968, allocations: 39.97 kB / 0.6145 GB, free: 13.17 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009624/0.5064, allocations: 12.17 MB / 0.6264 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5064, allocations: 0 / 0.6264 GB, free: 15.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004677/0.5111, allocations: 2.173 MB / 0.6285 GB, free: 13.67 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.5116, allocations: 183.6 kB / 0.6287 GB, free: 13.47 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.5118, allocations: 28 kB / 0.6287 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007765/0.5125, allocations: 59.88 kB / 0.6288 GB, free: 13.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/0.5128, allocations: 104.8 kB / 0.6289 GB, free: 13.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001014/0.5129, allocations: 51.97 kB / 0.6289 GB, free: 13.23 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007655/0.5137, allocations: 0.559 MB / 0.6295 GB, free: 12.66 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5137, allocations: 0 / 0.6295 GB, free: 12.66 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001632/0.5153, allocations: 439.9 kB / 0.6299 GB, free: 12.23 MB / 494.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.0007206/0.5161, allocations: 418.4 kB / 0.6303 GB, free: 11.83 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004136/0.5202, allocations: 2.133 MB / 0.6324 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5202, allocations: 0 / 0.6324 GB, free: 9.605 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00253/0.5228, allocations: 1.601 MB / 0.634 GB, free: 7.902 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002144/0.5249, allocations: 354.4 kB / 0.6343 GB, free: 7.594 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00557/0.5305, allocations: 2.705 MB / 0.6369 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000841/0.5314, allocations: 1.096 MB / 0.638 GB, free: 3.758 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004089/0.5318, allocations: 127.4 kB / 0.6381 GB, free: 3.637 MB / 494.1 MB Notification: Performance of SimCode: time 7.42e-07/0.5318, allocations: 0 / 0.6381 GB, free: 3.637 MB / 494.1 MB Notification: Performance of Templates: time 0.05766/0.5895, allocations: 55.29 MB / 0.6921 GB, free: 12.5 MB / 0.545 GB 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches