Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001144/0.001144, allocations: 86.05 kB / 19.87 MB, free: 4.617 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.00127/0.00127, allocations: 170 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.938/0.938, allocations: 177.2 MB / 203.7 MB, free: 5.512 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6344/0.6344, allocations: 118.6 MB / 378.9 MB, free: 1.371 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 484.1 MB, free: 8.133 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.338e-05/1.511e-05, allocations: 2.312 kB / 484.1 MB, free: 8.129 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.007147/0.007162, allocations: 10.83 MB / 494.9 MB, free: 0.7109 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.0111, allocations: 2.478 MB / 497.4 MB, free: 14.96 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000803/0.0119, allocations: 66.09 kB / 497.4 MB, free: 14.93 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006334/0.01253, allocations: 281.2 kB / 497.7 MB, free: 14.77 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001953/0.01448, allocations: 1.064 MB / 498.8 MB, free: 14.07 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001186/0.01567, allocations: 0.559 MB / 499.3 MB, free: 13.77 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.00266/0.01833, allocations: 2.392 MB / 0.49 GB, free: 12.55 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003303/0.01866, allocations: 174.7 kB / 0.4901 GB, free: 12.45 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.02069, allocations: 1.294 MB / 0.4914 GB, free: 11.95 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009178/0.02161, allocations: 0.6675 MB / 0.492 GB, free: 11.73 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001594/0.02177, allocations: 99.56 kB / 0.4921 GB, free: 11.65 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005882/0.02236, allocations: 264.4 kB / 0.4924 GB, free: 11.41 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.02256, allocations: 280.4 kB / 0.4927 GB, free: 11.18 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004094/0.02297, allocations: 0.4889 MB / 0.4931 GB, free: 10.73 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00115/0.02412, allocations: 1.261 MB / 0.4944 GB, free: 9.672 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.954e-06/0.02412, allocations: 0 / 0.4944 GB, free: 9.672 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.02412, allocations: 0.5625 kB / 0.4944 GB, free: 9.672 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.02413, 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.002166/0.0263, allocations: 1.735 MB / 0.4961 GB, free: 8.062 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.02633, allocations: 8.031 kB / 0.4961 GB, free: 8.055 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004286/0.02676, allocations: 310.1 kB / 0.4964 GB, free: 7.762 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009208/0.02768, allocations: 0.8825 MB / 0.4972 GB, free: 6.977 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.188e-05/0.02772, allocations: 74.38 kB / 0.4973 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.02782, allocations: 105.6 kB / 0.4974 GB, free: 6.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008718/0.0287, allocations: 1.008 MB / 0.4984 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.02871, allocations: 4.188 kB / 0.4984 GB, free: 5.848 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.157e-05/0.02876, allocations: 39.94 kB / 0.4984 GB, free: 5.809 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.65e-05/0.02878, allocations: 24 kB / 0.4984 GB, free: 5.785 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.02927, allocations: 407 kB / 0.4988 GB, free: 5.461 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00267/0.03194, allocations: 3.346 MB / 0.5021 GB, free: 2.027 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.03299, allocations: 0.7336 MB / 0.5028 GB, free: 1.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002392/0.03323, allocations: 248.5 kB / 0.5031 GB, free: 1.023 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00134/0.03457, allocations: 1.393 MB / 0.5044 GB, free: 15.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.0346, allocations: 46.05 kB / 0.5045 GB, free: 15.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.154e-06/0.0346, allocations: 0 / 0.5045 GB, free: 15.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.003707/0.03831, allocations: 2.632 MB / 0.507 GB, free: 12.84 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.03834, allocations: 90.27 kB / 0.5071 GB, free: 12.73 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004786/0.03882, allocations: 0.7389 MB / 0.5078 GB, free: 11.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.508e-05/0.03888, allocations: 49.7 kB / 0.5079 GB, free: 11.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002656/0.03914, allocations: 0.5546 MB / 0.5084 GB, free: 11.35 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/0.03937, allocations: 448.1 kB / 0.5089 GB, free: 10.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/0.03957, allocations: 212.5 kB / 0.5091 GB, free: 10.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004182/0.03999, allocations: 0.5198 MB / 0.5096 GB, free: 10.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.04019, allocations: 166.5 kB / 0.5097 GB, free: 10.01 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003114/0.0405, allocations: 415.4 kB / 0.5101 GB, free: 9.508 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/0.04108, allocations: 0.6719 MB / 0.5108 GB, free: 8.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.04109, allocations: 4 kB / 0.5108 GB, free: 8.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001166/0.04225, allocations: 1.055 MB / 0.5118 GB, free: 7.645 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.04227, allocations: 11.94 kB / 0.5118 GB, free: 7.633 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.04228, allocations: 4.531 kB / 0.5118 GB, free: 7.629 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005749/0.04285, allocations: 317.1 kB / 0.5121 GB, free: 7.285 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004201/0.04327, allocations: 219.7 kB / 0.5123 GB, free: 7.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006135/0.04941, allocations: 14.43 MB / 0.5264 GB, free: 7.734 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.04974, allocations: 43.98 kB / 0.5265 GB, free: 7.691 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.21e-05/0.0498, allocations: 39.98 kB / 0.5265 GB, free: 7.652 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.0002612/0.05006, allocations: 231.2 kB / 0.5267 GB, free: 7.418 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001669/0.05023, allocations: 167.1 kB / 0.5269 GB, free: 7.254 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.05172, allocations: 1.385 MB / 0.5282 GB, free: 5.785 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.05173, allocations: 12 kB / 0.5283 GB, free: 5.773 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.05174, allocations: 4 kB / 0.5283 GB, free: 5.77 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.05174, allocations: 7.969 kB / 0.5283 GB, free: 5.762 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.05378, allocations: 1.994 MB / 0.5302 GB, free: 3.672 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.05378, allocations: 0 / 0.5302 GB, free: 3.672 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006432/0.05442, allocations: 187.9 kB / 0.5304 GB, free: 3.488 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005681/0.05499, allocations: 333 kB / 0.5307 GB, free: 3.129 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.757e-05/0.05504, allocations: 35.97 kB / 0.5307 GB, free: 3.094 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005647/0.06069, allocations: 14.43 MB / 0.5448 GB, free: 3.746 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.06069, allocations: 0 / 0.5448 GB, free: 3.746 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.0621, allocations: 1.46 MB / 0.5463 GB, free: 2.219 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002409/0.06234, allocations: 199.1 kB / 0.5464 GB, free: 2.023 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.368e-05/0.06243, allocations: 31.98 kB / 0.5465 GB, free: 1.992 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003044/0.06273, allocations: 39.98 kB / 0.5465 GB, free: 1.953 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.06286, allocations: 112.9 kB / 0.5466 GB, free: 1.844 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.06291, allocations: 31.98 kB / 0.5467 GB, free: 1.812 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003031/0.06321, allocations: 484.8 kB / 0.5471 GB, free: 1.328 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.06321, allocations: 0 / 0.5471 GB, free: 1.328 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008012/0.06401, allocations: 367.9 kB / 0.5475 GB, free: 0.9688 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.0002256/0.06424, allocations: 165.3 kB / 0.5476 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.06562, allocations: 2.037 MB / 0.5496 GB, free: 14.62 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.06563, allocations: 0 / 0.5496 GB, free: 14.62 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001387/0.06701, allocations: 1.788 MB / 0.5514 GB, free: 12.69 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001193/0.06821, allocations: 495.3 kB / 0.5518 GB, free: 12.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/0.07114, allocations: 2.425 MB / 0.5542 GB, free: 9.727 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.07131, allocations: 240 kB / 0.5544 GB, free: 9.469 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0004373/0.07174, allocations: 209.3 kB / 0.5546 GB, free: 9.262 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006694/0.07241, allocations: 493.8 kB / 0.5551 GB, free: 8.777 MB / 490.7 MB Notification: Performance of SimCode: time 7.81e-07/0.07241, allocations: 4 kB / 0.5551 GB, free: 8.773 MB / 490.7 MB Notification: Performance of Templates: time 0.02856/0.101, allocations: 26.46 MB / 0.5809 GB, free: 14.82 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.123823803383857]