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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 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) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003772/0.003772, allocations: 179.8 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.4 MB / 229.3 MB, free: 3.055 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009595/0.0009595, allocations: 97.14 kB / 280.1 MB, free: 1.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.01216/0.01216, allocations: 1.572 MB / 332.5 MB, free: 12.86 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.6209/0.6209, allocations: 90.04 MB / 473.7 MB, free: 7.238 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.604e-06/7.624e-06, allocations: 0 / 0.5369 GB, free: 14.3 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1732, allocations: 69.35 MB / 0.6046 GB, free: 8.844 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.27/1.443, allocations: 456.6 MB / 1.05 GB, free: 9.371 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004174/1.443, allocations: 84 kB / 1.051 GB, free: 9.328 MB / 0.6042 GB Notification: Performance of FrontEnd: time 0.7654/2.209, allocations: 177.1 MB / 1.224 GB, free: 88.45 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 0.000135/2.209, allocations: 31.98 kB / 1.224 GB, free: 88.41 MB / 0.6042 GB 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.004982/2.214, allocations: 1.461 MB / 1.225 GB, free: 86.91 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/2.214, allocations: 12.03 kB / 1.225 GB, free: 86.89 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007845/2.215, allocations: 130.6 kB / 1.225 GB, free: 86.77 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001656/2.217, allocations: 0.5958 MB / 1.226 GB, free: 86.13 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.933e-05/2.217, allocations: 28 kB / 1.226 GB, free: 86.1 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002545/2.217, allocations: 59.94 kB / 1.226 GB, free: 86.04 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001828/2.219, allocations: 0.9137 MB / 1.227 GB, free: 85.13 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001791/2.221, allocations: 0.8989 MB / 1.228 GB, free: 84.21 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.052e-05/2.221, allocations: 7.938 kB / 1.228 GB, free: 84.2 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001069/2.221, allocations: 0 / 1.228 GB, free: 84.2 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.26e-05/2.221, allocations: 24 kB / 1.228 GB, free: 84.18 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007167/2.228, allocations: 5.047 MB / 1.233 GB, free: 78.65 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/2.229, allocations: 0.76 MB / 1.233 GB, free: 77.88 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000652/2.23, allocations: 487.4 kB / 1.234 GB, free: 77.4 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004123/2.234, allocations: 3.161 MB / 1.237 GB, free: 73.91 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/2.234, allocations: 47.59 kB / 1.237 GB, free: 73.86 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=115): time 2.825e-06/2.234, allocations: 0 / 1.237 GB, free: 73.86 MB / 0.6042 GB Notification: Performance of matching and sorting (n=129): time 0.01075/2.245, allocations: 3.819 MB / 1.241 GB, free: 69.91 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/2.245, allocations: 94.2 kB / 1.241 GB, free: 69.8 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005355/2.245, allocations: 402.5 kB / 1.241 GB, free: 69.39 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.542e-05/2.246, allocations: 29.7 kB / 1.241 GB, free: 69.36 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/2.246, allocations: 296.8 kB / 1.241 GB, free: 69.06 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/2.246, allocations: 433.5 kB / 1.242 GB, free: 68.63 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/2.246, allocations: 0 / 1.242 GB, free: 68.63 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001586/2.246, allocations: 398.6 kB / 1.242 GB, free: 68.23 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005478/2.247, allocations: 370.6 kB / 1.243 GB, free: 67.88 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006155/2.247, allocations: 0.5043 MB / 1.243 GB, free: 67.33 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001822/2.249, allocations: 0.6134 MB / 1.244 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.644e-06/2.249, allocations: 0 / 1.244 GB, free: 66.71 MB / 0.6042 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003557/2.253, allocations: 1.508 MB / 1.245 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/2.253, allocations: 8 kB / 1.245 GB, free: 65.17 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/2.253, allocations: 4 kB / 1.245 GB, free: 65.16 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009771/2.254, allocations: 287 kB / 1.245 GB, free: 64.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/2.255, allocations: 255.6 kB / 1.246 GB, free: 64.61 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007067/2.262, allocations: 10.67 MB / 1.256 GB, free: 53.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/2.263, allocations: 75.83 kB / 1.256 GB, free: 52.96 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001958/2.263, allocations: 51.97 kB / 1.256 GB, free: 52.91 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000322/2.264, allocations: 128.6 kB / 1.256 GB, free: 52.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/2.264, allocations: 90.88 kB / 1.256 GB, free: 52.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004624/2.268, allocations: 1.791 MB / 1.258 GB, free: 50.88 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/2.269, allocations: 16 kB / 1.258 GB, free: 50.87 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/2.269, allocations: 4 kB / 1.258 GB, free: 50.86 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/2.269, allocations: 11.83 kB / 1.258 GB, free: 50.85 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005934/2.274, allocations: 2.899 MB / 1.261 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-05/2.275, allocations: 4 kB / 1.261 GB, free: 47.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/2.276, allocations: 259.8 kB / 1.261 GB, free: 47.6 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009454/2.277, allocations: 298.5 kB / 1.262 GB, free: 47.29 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001227/2.277, allocations: 27.97 kB / 1.262 GB, free: 47.26 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006851/2.284, allocations: 10.66 MB / 1.272 GB, free: 35.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/2.284, allocations: 0 / 1.272 GB, free: 35.68 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005034/2.289, allocations: 2.342 MB / 1.274 GB, free: 33.25 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004047/2.289, allocations: 163.9 kB / 1.274 GB, free: 33.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002561/2.289, allocations: 11.94 kB / 1.274 GB, free: 33.06 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001116/2.29, allocations: 87.83 kB / 1.274 GB, free: 32.98 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002037/2.291, allocations: 85.02 kB / 1.275 GB, free: 32.89 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/2.291, allocations: 55.95 kB / 1.275 GB, free: 32.84 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.0004276/2.291, allocations: 303 kB / 1.275 GB, free: 32.54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002403/2.294, allocations: 439.8 kB / 1.275 GB, free: 32.11 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,boundary_rear.fore.m_flow,boundary_fore.rear.m_flow,reservoir2.M,reservoir2.U_med,source1.outlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(2,100.0%) 5,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001077/2.295, allocations: 413.8 kB / 1.276 GB, free: 31.7 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003142/2.298, allocations: 1.939 MB / 1.278 GB, free: 29.68 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/2.298, allocations: 3.938 kB / 1.278 GB, free: 29.68 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002116/2.3, allocations: 1.512 MB / 1.279 GB, free: 28.08 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/2.302, allocations: 212.9 kB / 1.279 GB, free: 27.88 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004732/2.306, allocations: 1.879 MB / 1.281 GB, free: 25.95 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001365/2.308, allocations: 1.189 MB / 1.282 GB, free: 24.73 MB / 0.6042 GB Notification: Performance of SimCode: time 2.074e-06/2.308, allocations: 0 / 1.282 GB, free: 24.73 MB / 0.6042 GB Notification: Performance of Templates: time 0.03589/2.344, allocations: 21.29 MB / 1.303 GB, free: 3.617 MB / 0.6042 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)