Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") [: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 3.2.2+maint.om/package.mo): time 0.002471/0.002471, allocations: 181.8 kB / 7.455 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.296/1.296, allocations: 194.2 MB / 202.1 MB, free: 8.645 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001738/0.001738, allocations: 112.4 kB / 247.1 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1982/0.1982, allocations: 39.94 MB / 331.9 MB, free: 4.883 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 8.066e-06/8.096e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1198, allocations: 54.88 MB / 447.7 MB, free: 20.98 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.1/5.22, allocations: 2.596 GB / 3.033 GB, free: 150.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002081/5.22, allocations: 81.81 kB / 3.033 GB, free: 150.2 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.75/6.969, allocations: 0.5466 GB / 3.58 GB, free: 43.83 MB / 490.7 MB Notification: Performance of Transformations before backend: time 6.651e-05/6.97, allocations: 25.62 kB / 3.58 GB, free: 43.83 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.007586/6.977, allocations: 2.055 MB / 3.582 GB, free: 43.14 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/6.977, allocations: 11.75 kB / 3.582 GB, free: 43.14 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00241/6.98, allocations: 339.4 kB / 3.582 GB, free: 43.09 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/6.981, allocations: 0.7007 MB / 3.583 GB, free: 42.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/6.981, allocations: 270.8 kB / 3.583 GB, free: 42.57 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/6.981, allocations: 58.14 kB / 3.583 GB, free: 42.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001442/6.983, allocations: 1.002 MB / 3.584 GB, free: 42.57 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/6.984, allocations: 1.155 MB / 3.585 GB, free: 42.3 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.756e-05/6.984, allocations: 9.406 kB / 3.585 GB, free: 42.3 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.225e-05/6.984, allocations: 3.969 kB / 3.585 GB, free: 42.3 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.643e-05/6.984, allocations: 41.36 kB / 3.585 GB, free: 42.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04554/7.03, allocations: 27.32 MB / 3.612 GB, free: 25.2 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000596/7.031, allocations: 388.1 kB / 3.612 GB, free: 25.18 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004004/7.031, allocations: 335 kB / 3.613 GB, free: 25.17 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002514/7.031, allocations: 401.2 kB / 3.613 GB, free: 24.8 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/7.031, allocations: 45.98 kB / 3.613 GB, free: 24.75 MB / 490.7 MB Notification: Performance of pre-optimization done (n=54): time 2.385e-06/7.031, allocations: 3.062 kB / 3.613 GB, free: 24.75 MB / 490.7 MB Notification: Performance of matching and sorting (n=59): time 0.004249/7.035, allocations: 1.866 MB / 3.615 GB, free: 24.31 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/7.036, allocations: 143.3 kB / 3.615 GB, free: 24.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005487/7.036, allocations: 0.5242 MB / 3.615 GB, free: 24.03 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.22e-05/7.036, allocations: 40.3 kB / 3.616 GB, free: 24 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002221/7.036, allocations: 415.3 kB / 3.616 GB, free: 23.73 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001377/7.037, allocations: 195.9 kB / 3.616 GB, free: 23.61 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.84e-05/7.037, allocations: 0 / 3.616 GB, free: 23.61 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.932e-05/7.037, allocations: 383.1 kB / 3.616 GB, free: 23.3 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005258/7.037, allocations: 384.9 kB / 3.617 GB, free: 23.3 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/7.038, allocations: 0.653 MB / 3.617 GB, free: 22.98 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007199/7.039, allocations: 418.7 kB / 3.618 GB, free: 22.98 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/7.039, allocations: 6.25 kB / 3.618 GB, free: 22.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002563/7.041, allocations: 1.327 MB / 3.619 GB, free: 22.88 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/7.041, allocations: 10.97 kB / 3.619 GB, free: 22.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/7.041, allocations: 7.312 kB / 3.619 GB, free: 22.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003105/7.042, allocations: 98.75 kB / 3.619 GB, free: 22.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004014/7.046, allocations: 431.8 kB / 3.62 GB, free: 22.87 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005431/7.051, allocations: 6.237 MB / 3.626 GB, free: 17.32 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/7.052, allocations: 142.1 kB / 3.626 GB, free: 17.31 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.623e-05/7.052, allocations: 45.88 kB / 3.626 GB, free: 17.31 MB / 490.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: tank.Wb_flow:VARIABLE(unit = "W" ) "Work flow across boundaries or source term" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 21 (tank.heatTransfer.states[1].phase,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.ports_m_flow_out[2],tank.ports_m_flow_out[2],$PRE.tank.ports_m_flow_out[3],tank.ports_m_flow_out[3],$PRE.tank.ports_m_flow_out[4],tank.ports_m_flow_out[4],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],$PRE.tank.aboveLevel[2],tank.aboveLevel[2],$PRE.tank.aboveLevel[3],tank.aboveLevel[3],$PRE.tank.aboveLevel[4],tank.aboveLevel[4],massFlowRate[1].medium.phase,massFlowRate[2].medium.phase,Boundary_fixed.medium.phase,Boundary_fixed.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003054/7.053, allocations: 154 kB / 3.626 GB, free: 17.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007861/7.054, allocations: 259.7 kB / 3.626 GB, free: 17.16 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/7.056, allocations: 1.646 MB / 3.628 GB, free: 17.01 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/7.056, allocations: 17.52 kB / 3.628 GB, free: 17.01 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/7.056, allocations: 0 / 3.628 GB, free: 17.01 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/7.056, allocations: 6.984 kB / 3.628 GB, free: 17.01 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003632/7.059, allocations: 2.9 MB / 3.631 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/7.059, allocations: 3.5 kB / 3.631 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003809/7.063, allocations: 336.2 kB / 3.631 GB, free: 16.61 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002883/7.063, allocations: 96.73 kB / 3.631 GB, free: 16.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/7.064, allocations: 16.42 kB / 3.631 GB, free: 16.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005631/7.069, allocations: 6.21 MB / 3.637 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/7.069, allocations: 3.781 kB / 3.637 GB, free: 27.04 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002923/7.072, allocations: 2.25 MB / 3.64 GB, free: 26.55 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003133/7.072, allocations: 191.5 kB / 3.64 GB, free: 26.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/7.073, allocations: 25.42 kB / 3.64 GB, free: 26.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008981/7.074, allocations: 110.3 kB / 3.64 GB, free: 26.41 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/7.074, allocations: 127.7 kB / 3.64 GB, free: 26.41 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.333e-05/7.074, allocations: 33.41 kB / 3.64 GB, free: 26.41 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.0005088/7.074, allocations: 468.3 kB / 3.64 GB, free: 26.31 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00622/7.081, allocations: 1.241 MB / 3.642 GB, free: 26.15 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (tank.medium.h,tank.level) * Number of discrete variables: 17 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,tank.heatTransfer.states[1].phase,tank.ports_m_flow_out[1],tank.ports_m_flow_out[2],tank.ports_m_flow_out[3],tank.ports_m_flow_out[4],tank.aboveLevel[1],tank.aboveLevel[2],tank.aboveLevel[3],tank.aboveLevel[4],massFlowRate[2].medium.phase,massFlowRate[1].medium.phase) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],tank.aboveLevel[2],tank.ports_m_flow_out[2],tank.aboveLevel[3],tank.ports_m_flow_out[3],tank.aboveLevel[4],tank.ports_m_flow_out[4]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008054/7.089, allocations: 2.101 MB / 3.644 GB, free: 25.83 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006745/7.095, allocations: 1.459 MB / 3.645 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/7.095, allocations: 0 / 3.645 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005751/7.101, allocations: 1.192 MB / 3.646 GB, free: 25.82 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/7.103, allocations: 301.6 kB / 3.647 GB, free: 25.81 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003094/7.106, allocations: 1.811 MB / 3.648 GB, free: 25.39 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008947/7.107, allocations: 1.235 MB / 3.65 GB, free: 24.69 MB / 0.4948 GB Notification: Performance of SimCode: time 5.31e-07/7.107, allocations: 0 / 3.65 GB, free: 24.69 MB / 0.4948 GB Notification: Performance of Templates: time 0.05959/7.167, allocations: 44.71 MB / 3.693 GB, free: 22.23 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)