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.001089/0.001089, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 199.6 kB / 16.8 MB, free: 6.828 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.286/1.286, allocations: 222.9 MB / 240.5 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6193/0.6193, allocations: 89.52 MB / 380.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 77.5 kB / 458.2 MB, free: 23.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09595, allocations: 67.31 MB / 0.5132 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03834/0.1343, allocations: 41.86 MB / 0.5541 GB, free: 2.902 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007073/0.1414, allocations: 5.407 MB / 0.5594 GB, free: 13.47 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009554/0.1424, allocations: 15.94 kB / 0.5594 GB, free: 13.46 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.1437, allocations: 477.4 kB / 0.5598 GB, free: 12.99 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00279/0.1465, allocations: 1.197 MB / 0.561 GB, free: 11.79 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0019/0.1484, allocations: 0.7898 MB / 0.5618 GB, free: 11 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002352/0.1508, allocations: 2.573 MB / 0.5643 GB, free: 8.414 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003697/0.1512, allocations: 256.5 kB / 0.5645 GB, free: 8.152 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.1533, allocations: 1.136 MB / 0.5657 GB, free: 7.012 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008207/0.1541, allocations: 0.7428 MB / 0.5664 GB, free: 6.266 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001388/0.1543, allocations: 60 kB / 0.5664 GB, free: 6.207 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.1561, allocations: 0.6982 MB / 0.5671 GB, free: 5.508 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002366/0.1563, allocations: 222.9 kB / 0.5673 GB, free: 5.289 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000596/0.1569, allocations: 0.583 MB / 0.5679 GB, free: 4.703 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001437/0.1584, allocations: 1.236 MB / 0.5691 GB, free: 3.465 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.1584, allocations: 11.88 kB / 0.5691 GB, free: 3.453 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1584, allocations: 0 / 0.5691 GB, free: 3.453 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.1584, allocations: 0 / 0.5691 GB, free: 3.453 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.002869/0.1613, allocations: 1.523 MB / 0.5706 GB, free: 1.879 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1613, allocations: 11.97 kB / 0.5706 GB, free: 1.867 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000356/0.1617, allocations: 135.5 kB / 0.5707 GB, free: 1.734 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008764/0.1626, allocations: 0.6453 MB / 0.5714 GB, free: 1.047 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.868e-05/0.1626, allocations: 70.38 kB / 0.5714 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001429/0.1628, allocations: 96.38 kB / 0.5715 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.1646, allocations: 1.074 MB / 0.5726 GB, free: 15.78 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1646, allocations: 3.938 kB / 0.5726 GB, free: 15.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.09e-05/0.1647, allocations: 44 kB / 0.5726 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.1647, allocations: 20 kB / 0.5726 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.1665, allocations: 1.012 MB / 0.5736 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005395/0.1719, allocations: 4.723 MB / 0.5782 GB, free: 9.543 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001767/0.1737, allocations: 0.9391 MB / 0.5792 GB, free: 8.578 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008187/0.1745, allocations: 500 kB / 0.5796 GB, free: 8.086 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004102/0.1786, allocations: 3.473 MB / 0.583 GB, free: 4.199 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.1787, allocations: 51.06 kB / 0.5831 GB, free: 4.141 MB / 462.1 MB Notification: Performance of pre-optimization done (n=108): time 2.445e-06/0.1787, allocations: 0 / 0.5831 GB, free: 4.141 MB / 462.1 MB Notification: Performance of matching and sorting (n=122): time 0.2006/0.3793, allocations: 4.371 MB / 0.5874 GB, free: 75.35 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.3794, allocations: 97.95 kB / 0.5874 GB, free: 75.26 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000969/0.3804, allocations: 0.6369 MB / 0.5881 GB, free: 75.13 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001724/0.3806, allocations: 48.11 kB / 0.5881 GB, free: 75.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002599/0.3809, allocations: 420.1 kB / 0.5885 GB, free: 75.02 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/0.3812, allocations: 422.2 kB / 0.5889 GB, free: 74.82 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003629/0.3816, allocations: 198.1 kB / 0.5891 GB, free: 74.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.62e-05/0.3817, allocations: 349.7 kB / 0.5894 GB, free: 74.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009472/0.3826, allocations: 412.4 kB / 0.5898 GB, free: 74.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00106/0.3837, allocations: 0.5643 MB / 0.5904 GB, free: 74.04 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001982/0.3857, allocations: 1.046 MB / 0.5914 GB, free: 73.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.3857, allocations: 1.562 kB / 0.5914 GB, free: 73.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003246/0.389, allocations: 1.49 MB / 0.5929 GB, free: 72.88 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.389, allocations: 7.625 kB / 0.5929 GB, free: 72.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.389, allocations: 2.969 kB / 0.5929 GB, free: 72.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3901, allocations: 311.7 kB / 0.5932 GB, free: 72.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009209/0.391, allocations: 235.8 kB / 0.5934 GB, free: 72.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/0.397, allocations: 11.22 MB / 0.6044 GB, free: 61.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/0.3979, allocations: 78.14 kB / 0.6044 GB, free: 61.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.203e-05/0.398, allocations: 50.08 kB / 0.6045 GB, free: 61.68 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.0003836/0.3984, allocations: 248.3 kB / 0.6047 GB, free: 61.48 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.3986, allocations: 104.4 kB / 0.6048 GB, free: 61.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003462/0.402, allocations: 1.852 MB / 0.6066 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.4021, allocations: 13.38 kB / 0.6066 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/0.4021, allocations: 5.125 kB / 0.6066 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4021, allocations: 5.906 kB / 0.6066 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004706/0.4068, allocations: 2.855 MB / 0.6094 GB, free: 59.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.4069, allocations: 2.625 kB / 0.6094 GB, free: 59.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008927/0.4077, allocations: 208.2 kB / 0.6096 GB, free: 59.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.4088, allocations: 323 kB / 0.6099 GB, free: 59.06 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.99e-05/0.4089, allocations: 36.89 kB / 0.61 GB, free: 59.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006156/0.415, allocations: 11.24 MB / 0.621 GB, free: 48.02 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4151, allocations: 2.469 kB / 0.621 GB, free: 48.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004042/0.4191, allocations: 2.159 MB / 0.6231 GB, free: 46.97 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002217/0.4193, allocations: 168.3 kB / 0.6232 GB, free: 46.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/0.4195, allocations: 33.69 kB / 0.6233 GB, free: 46.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007937/0.4203, allocations: 73.89 kB / 0.6233 GB, free: 46.77 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002658/0.4206, allocations: 110.9 kB / 0.6234 GB, free: 46.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.872e-05/0.4207, allocations: 44.69 kB / 0.6235 GB, free: 46.74 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0006054/0.4213, allocations: 495.8 kB / 0.6239 GB, free: 46.53 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.4213, allocations: 0 / 0.6239 GB, free: 46.53 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00145/0.4227, allocations: 449.1 kB / 0.6244 GB, free: 46.46 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.0006428/0.4234, allocations: 417.2 kB / 0.6248 GB, free: 46.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003422/0.4268, allocations: 2.083 MB / 0.6268 GB, free: 44.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.4269, allocations: 1.281 kB / 0.6268 GB, free: 44.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002137/0.429, allocations: 1.593 MB / 0.6284 GB, free: 43.83 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.4307, allocations: 324.5 kB / 0.6287 GB, free: 43.72 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/0.4351, allocations: 2.979 MB / 0.6316 GB, free: 41.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004281/0.4355, allocations: 1.052 MB / 0.6326 GB, free: 41.16 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000389/0.4359, allocations: 114.3 kB / 0.6327 GB, free: 41.14 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4359, allocations: 1.375 kB / 0.6327 GB, free: 41.14 MB / 462.1 MB Notification: Performance of Templates: time 0.03739/0.4733, allocations: 50.47 MB / 0.682 GB, free: 11.52 MB / 478.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches