Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.0009645/0.0009645, allocations: 88.22 kB / 19.65 MB, free: 272 kB / 13.93 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.0009426/0.0009426, allocations: 177 kB / 23.03 MB, free: 1.535 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.9348/0.9348, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.6908/0.6908, allocations: 118.6 MB / 378.6 MB, free: 1.492 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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 483.6 MB, free: 8.199 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.874e-05/2.024e-05, allocations: 2.312 kB / 483.6 MB, free: 8.195 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.007133/0.007154, allocations: 10.43 MB / 494 MB, free: 1.133 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003131/0.01028, allocations: 3.102 MB / 497.1 MB, free: 14.99 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003967/0.01068, allocations: 65.91 kB / 497.2 MB, free: 14.95 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005421/0.01122, allocations: 259.1 kB / 497.5 MB, free: 14.8 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00149/0.01271, allocations: 1.03 MB / 498.5 MB, free: 14.12 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009532/0.01367, allocations: 0.6262 MB / 499.1 MB, free: 13.79 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001725/0.01539, allocations: 2.27 MB / 0.4896 GB, free: 12.63 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000242/0.01563, allocations: 151.8 kB / 0.4898 GB, free: 12.55 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001348/0.01698, allocations: 1.235 MB / 0.491 GB, free: 12.07 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006846/0.01767, allocations: 0.6143 MB / 0.4916 GB, free: 11.88 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001326/0.0178, allocations: 97.31 kB / 0.4917 GB, free: 11.84 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005532/0.01835, allocations: 337.8 kB / 0.492 GB, free: 11.55 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002271/0.01858, allocations: 273.3 kB / 0.4923 GB, free: 11.33 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004003/0.01898, allocations: 477.5 kB / 0.4927 GB, free: 10.91 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001308/0.02029, allocations: 1.319 MB / 0.494 GB, free: 9.809 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.02029, allocations: 0 / 0.494 GB, free: 9.809 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02029, allocations: 0 / 0.494 GB, free: 9.809 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.0203, allocations: 4 kB / 0.494 GB, free: 9.805 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.001918/0.02222, allocations: 1.761 MB / 0.4957 GB, free: 8.172 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.02226, allocations: 8.547 kB / 0.4957 GB, free: 8.164 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005669/0.02283, allocations: 317 kB / 0.496 GB, free: 7.875 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009912/0.02382, allocations: 0.8784 MB / 0.4969 GB, free: 7.074 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.881e-05/0.02392, allocations: 119.5 kB / 0.497 GB, free: 6.945 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/0.02403, allocations: 105.7 kB / 0.4971 GB, free: 6.844 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.02524, allocations: 1.174 MB / 0.4983 GB, free: 5.695 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.02525, allocations: 0 / 0.4983 GB, free: 5.695 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.451e-05/0.02532, allocations: 40 kB / 0.4983 GB, free: 5.656 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.02534, allocations: 24 kB / 0.4983 GB, free: 5.633 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007106/0.02605, allocations: 497.8 kB / 0.4988 GB, free: 5.234 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003291/0.02934, allocations: 3.744 MB / 0.5025 GB, free: 1.387 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.03039, allocations: 0.7569 MB / 0.5032 GB, free: 0.6094 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003834/0.03078, allocations: 280.1 kB / 0.5035 GB, free: 340 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001436/0.03221, allocations: 1.325 MB / 0.5048 GB, free: 14.98 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.03224, allocations: 49.83 kB / 0.5048 GB, free: 14.93 MB / 442.7 MB Notification: Performance of pre-optimization done (n=99): time 2.054e-06/0.03224, allocations: 4 kB / 0.5048 GB, free: 14.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.004598/0.03684, allocations: 3.077 MB / 0.5078 GB, free: 11.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.903e-05/0.03688, allocations: 90.11 kB / 0.5079 GB, free: 11.63 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006231/0.0375, allocations: 0.8173 MB / 0.5087 GB, free: 10.79 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.972e-05/0.03757, allocations: 45.7 kB / 0.5087 GB, free: 10.74 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002808/0.03785, allocations: 0.5623 MB / 0.5093 GB, free: 10.17 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.03806, allocations: 408.4 kB / 0.5097 GB, free: 9.766 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002687/0.03833, allocations: 204.5 kB / 0.5099 GB, free: 9.555 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.03847, allocations: 0.5121 MB / 0.5104 GB, free: 9.035 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003427/0.03881, allocations: 206.5 kB / 0.5106 GB, free: 8.836 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004411/0.03925, allocations: 475.1 kB / 0.511 GB, free: 8.277 MB / 442.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElement.deltaE_system = $START.conductionElement.deltaE_system (0.0 = $START.conductionElement.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.0009213/0.04017, allocations: 0.7649 MB / 0.5118 GB, free: 7.418 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.04018, allocations: 4 kB / 0.5118 GB, free: 7.414 MB / 442.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001635/0.04181, allocations: 1.185 MB / 0.5129 GB, free: 6.188 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.04183, allocations: 4 kB / 0.5129 GB, free: 6.184 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006486/0.04248, allocations: 0.4884 MB / 0.5134 GB, free: 5.684 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007561/0.04323, allocations: 353.1 kB / 0.5138 GB, free: 5.305 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004302/0.04366, allocations: 199.7 kB / 0.5139 GB, free: 5.109 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007008/0.05067, allocations: 15.07 MB / 0.5287 GB, free: 5.059 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003198/0.05099, allocations: 35.98 kB / 0.5287 GB, free: 5.023 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.11e-05/0.05105, allocations: 47.98 kB / 0.5287 GB, free: 4.977 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: conductionElement.deltaE_system = $START.conductionElement.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (115): * Single equations (assignments): 107 * 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%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,6,100.0%), (1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002468/0.0513, allocations: 216.3 kB / 0.5289 GB, free: 4.754 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001911/0.05149, allocations: 183.1 kB / 0.5291 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.05309, allocations: 1.25 MB / 0.5303 GB, free: 3.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.0531, allocations: 12 kB / 0.5304 GB, free: 3.258 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.0531, allocations: 7.984 kB / 0.5304 GB, free: 3.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.05311, allocations: 3.984 kB / 0.5304 GB, free: 3.246 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002705/0.05582, allocations: 2.098 MB / 0.5324 GB, free: 1.066 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0006611/0.05648, allocations: 0.5043 MB / 0.5329 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000387/0.05687, allocations: 167.8 kB / 0.5331 GB, free: 384 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007787/0.05764, allocations: 377 kB / 0.5334 GB, free: 15.97 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.442e-05/0.05772, allocations: 40.03 kB / 0.5335 GB, free: 15.93 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006837/0.06456, allocations: 15.05 MB / 0.5482 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.06456, allocations: 3.938 kB / 0.5482 GB, free: 15.9 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001831/0.06639, allocations: 1.61 MB / 0.5497 GB, free: 14.23 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002458/0.06664, allocations: 207 kB / 0.5499 GB, free: 14.02 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.942e-05/0.06672, allocations: 24 kB / 0.55 GB, free: 14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.06705, allocations: 43.8 kB / 0.55 GB, free: 13.96 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.06723, allocations: 96.91 kB / 0.5501 GB, free: 13.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.124e-05/0.06728, allocations: 47.97 kB / 0.5501 GB, free: 13.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004236/0.0677, allocations: 0.5178 MB / 0.5506 GB, free: 13.29 MB / 490.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0677, allocations: 0 / 0.5506 GB, free: 13.29 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008948/0.0686, allocations: 391.8 kB / 0.551 GB, free: 12.91 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (reservoir1.M,reservoir1.U_med,pump.m_flow,conductionElement.h,reservoir.M,reservoir.U_med,flowResistance1.inlet.m_flow,flowResistance2.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 (90): * Single equations (assignments): 82 * 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,6,100.0%), (1,4,100.0%), (1,1,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.0002876/0.06889, allocations: 196.7 kB / 0.5512 GB, free: 12.71 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.001929/0.07081, allocations: 2.144 MB / 0.5533 GB, free: 10.43 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.07082, allocations: 0 / 0.5533 GB, free: 10.43 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001146/0.07196, allocations: 1.831 MB / 0.5551 GB, free: 8.445 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00126/0.07322, allocations: 0.5259 MB / 0.5556 GB, free: 7.941 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00344/0.07666, allocations: 2.436 MB / 0.558 GB, free: 5.461 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002004/0.07686, allocations: 236.2 kB / 0.5582 GB, free: 5.207 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005417/0.0774, allocations: 213.2 kB / 0.5584 GB, free: 4.996 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001995/0.0776, allocations: 112.5 kB / 0.5585 GB, free: 4.887 MB / 490.7 MB Notification: Performance of SimCode: time 1.392e-06/0.07761, allocations: 0 / 0.5585 GB, free: 4.887 MB / 490.7 MB Notification: Performance of Templates: time 0.03154/0.1091, allocations: 26.56 MB / 0.5845 GB, free: 10.85 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.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.265026351902634]