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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007703/0.0007703, allocations: 81.17 kB / 19.87 MB, free: 4.621 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008884/0.0008884, allocations: 169 kB / 23.27 MB, free: 1.223 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9448/0.9448, allocations: 177.1 MB / 203.7 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6793/0.6793, allocations: 118.6 MB / 378.9 MB, free: 1.391 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 484.1 MB, free: 8.102 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.033e-05/1.156e-05, allocations: 2.312 kB / 484.1 MB, free: 8.098 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.007133/0.007145, allocations: 10.82 MB / 494.9 MB, free: 0.6914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003546/0.01069, allocations: 2.476 MB / 497.4 MB, free: 14.95 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006518/0.01134, allocations: 65.97 kB / 497.4 MB, free: 14.91 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005502/0.01189, allocations: 271.7 kB / 497.7 MB, free: 14.76 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00165/0.01354, allocations: 1.076 MB / 498.8 MB, free: 14.04 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.01468, allocations: 0.559 MB / 499.3 MB, free: 13.74 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002142/0.01682, allocations: 2.403 MB / 0.49 GB, free: 12.51 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.01711, allocations: 169.5 kB / 0.4901 GB, free: 12.42 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001778/0.01889, allocations: 1.296 MB / 0.4914 GB, free: 11.91 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007881/0.01968, allocations: 0.6637 MB / 0.492 GB, free: 11.7 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001613/0.01984, allocations: 100.9 kB / 0.4921 GB, free: 11.64 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005393/0.02038, allocations: 264.5 kB / 0.4924 GB, free: 11.41 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002031/0.02058, allocations: 276.2 kB / 0.4927 GB, free: 11.18 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000394/0.02097, allocations: 0.4891 MB / 0.4931 GB, free: 10.73 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.02213, allocations: 1.257 MB / 0.4944 GB, free: 9.676 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.02213, allocations: 0 / 0.4944 GB, free: 9.676 MB / 426.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.02213, allocations: 4 kB / 0.4944 GB, free: 9.672 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.043e-05/0.02215, allocations: 0 / 0.4944 GB, free: 9.672 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.001793/0.02394, allocations: 1.735 MB / 0.4961 GB, free: 8.062 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.02397, allocations: 8.781 kB / 0.4961 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004517/0.02442, allocations: 313.8 kB / 0.4964 GB, free: 7.758 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000925/0.02535, allocations: 0.8791 MB / 0.4972 GB, free: 6.977 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.296e-05/0.02539, allocations: 74.38 kB / 0.4973 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.02549, allocations: 105.3 kB / 0.4974 GB, free: 6.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001031/0.02653, allocations: 1.011 MB / 0.4984 GB, free: 5.848 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.02654, allocations: 0.8438 kB / 0.4984 GB, free: 5.848 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.0266, allocations: 43.94 kB / 0.4984 GB, free: 5.805 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.02661, allocations: 20 kB / 0.4984 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004839/0.0271, allocations: 410.9 kB / 0.4988 GB, free: 5.465 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002694/0.02979, allocations: 3.346 MB / 0.5021 GB, free: 2.031 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007853/0.03058, allocations: 0.7348 MB / 0.5028 GB, free: 1.277 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000229/0.03081, allocations: 245.9 kB / 0.5031 GB, free: 1.031 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001345/0.03215, allocations: 1.393 MB / 0.5044 GB, free: 15.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.642e-05/0.03218, allocations: 50.05 kB / 0.5045 GB, free: 15.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.184e-06/0.03218, allocations: 0 / 0.5045 GB, free: 15.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.003819/0.036, allocations: 2.624 MB / 0.507 GB, free: 12.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.03603, allocations: 94.27 kB / 0.5071 GB, free: 12.74 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004641/0.0365, allocations: 0.735 MB / 0.5078 GB, free: 11.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.427e-05/0.03655, allocations: 45.7 kB / 0.5079 GB, free: 11.93 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.0368, allocations: 0.5663 MB / 0.5084 GB, free: 11.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000202/0.03701, allocations: 444.1 kB / 0.5089 GB, free: 10.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001949/0.0372, allocations: 216.5 kB / 0.5091 GB, free: 10.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.03733, allocations: 0.5159 MB / 0.5096 GB, free: 10.18 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001924/0.03752, allocations: 158.4 kB / 0.5097 GB, free: 10.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003071/0.03783, allocations: 425.3 kB / 0.5101 GB, free: 9.516 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006123/0.03844, allocations: 0.6836 MB / 0.5108 GB, free: 8.746 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.03844, allocations: 0 / 0.5108 GB, free: 8.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001338/0.03978, allocations: 1.055 MB / 0.5118 GB, free: 7.645 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.0398, allocations: 4 kB / 0.5118 GB, free: 7.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.0398, allocations: 11.94 kB / 0.5118 GB, free: 7.629 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000602/0.04041, allocations: 313.6 kB / 0.5121 GB, free: 7.289 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.04083, allocations: 223.7 kB / 0.5123 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005742/0.04657, allocations: 14.42 MB / 0.5264 GB, free: 7.738 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002963/0.04687, allocations: 35.98 kB / 0.5265 GB, free: 7.703 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-05/0.04693, allocations: 43.98 kB / 0.5265 GB, free: 7.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * 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.000221/0.04715, allocations: 228.3 kB / 0.5267 GB, free: 7.426 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/0.04732, allocations: 175.1 kB / 0.5269 GB, free: 7.254 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001488/0.04881, allocations: 1.378 MB / 0.5282 GB, free: 5.797 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.04881, allocations: 8 kB / 0.5282 GB, free: 5.789 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.04882, allocations: 4 kB / 0.5282 GB, free: 5.785 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.04883, allocations: 7.984 kB / 0.5283 GB, free: 5.777 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.05093, allocations: 2.005 MB / 0.5302 GB, free: 3.676 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.05093, allocations: 4 kB / 0.5302 GB, free: 3.672 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003961/0.05133, allocations: 183.8 kB / 0.5304 GB, free: 3.492 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005964/0.05193, allocations: 329.3 kB / 0.5307 GB, free: 3.137 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.321e-05/0.05198, allocations: 35.98 kB / 0.5307 GB, free: 3.102 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005438/0.05742, allocations: 14.43 MB / 0.5448 GB, free: 3.758 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.05742, allocations: 0 / 0.5448 GB, free: 3.758 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.05881, allocations: 1.46 MB / 0.5463 GB, free: 2.23 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002389/0.05905, allocations: 203.1 kB / 0.5464 GB, free: 2.031 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.822e-05/0.05913, allocations: 27.98 kB / 0.5465 GB, free: 2.004 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/0.05943, allocations: 35.98 kB / 0.5465 GB, free: 1.969 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.05957, allocations: 108.9 kB / 0.5466 GB, free: 1.863 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-05/0.05962, allocations: 35.98 kB / 0.5466 GB, free: 1.828 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000451/0.06007, allocations: 484.8 kB / 0.5471 GB, free: 1.344 MB / 474.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06007, allocations: 0 / 0.5471 GB, free: 1.344 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0007628/0.06083, allocations: 371.9 kB / 0.5475 GB, free: 0.9805 MB / 474.7 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 (97): * Single equations (assignments): 89 * 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.0002143/0.06105, allocations: 171.1 kB / 0.5476 GB, free: 0.8047 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.0624, allocations: 2.025 MB / 0.5496 GB, free: 14.64 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.0624, allocations: 3.984 kB / 0.5496 GB, free: 14.64 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009865/0.06339, allocations: 1.792 MB / 0.5514 GB, free: 12.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.06455, allocations: 492.9 kB / 0.5518 GB, free: 12.22 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.06753, allocations: 2.421 MB / 0.5542 GB, free: 9.746 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001568/0.06769, allocations: 232.1 kB / 0.5544 GB, free: 9.496 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004326/0.06812, allocations: 221.3 kB / 0.5546 GB, free: 9.277 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006735/0.06879, allocations: 493.8 kB / 0.5551 GB, free: 8.793 MB / 490.7 MB Notification: Performance of SimCode: time 7.51e-07/0.0688, allocations: 0 / 0.5551 GB, free: 8.793 MB / 490.7 MB Notification: Performance of Templates: time 0.02805/0.09685, allocations: 26.46 MB / 0.5809 GB, free: 14.83 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.199605883099139]