Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.005918/0.005918, allocations: 178.9 kB / 7.451 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.757/1.757, allocations: 170.6 MB / 178.4 MB, free: 15.41 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001967/0.001967, allocations: 119.8 kB / 217.7 MB, free: 8.176 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2382/0.2382, allocations: 37.98 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.237e-05/1.239e-05, allocations: 1.125 kB / 349.5 MB, free: 37.06 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1558/0.1558, allocations: 48.71 MB / 398.2 MB, free: 5.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.649/6.805, allocations: 2.485 GB / 2.874 GB, free: 28.37 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/6.805, allocations: 78.2 kB / 2.874 GB, free: 28.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.296/9.101, allocations: 0.5329 GB / 3.407 GB, free: 38.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.815e-05/9.102, allocations: 21.31 kB / 3.407 GB, free: 38.41 MB / 442.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.00785/9.109, allocations: 2.023 MB / 3.409 GB, free: 37.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/9.109, allocations: 7.125 kB / 3.409 GB, free: 37.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002421/9.112, allocations: 335 kB / 3.409 GB, free: 37.59 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/9.113, allocations: 0.6935 MB / 3.41 GB, free: 37.32 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/9.113, allocations: 275.3 kB / 3.41 GB, free: 37.07 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001209/9.114, allocations: 51.66 kB / 3.41 GB, free: 37.07 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00159/9.115, allocations: 1.009 MB / 3.411 GB, free: 37.06 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001572/9.117, allocations: 1.156 MB / 3.412 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.698e-05/9.117, allocations: 3.281 kB / 3.412 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.351e-05/9.117, allocations: 3.344 kB / 3.412 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-05/9.117, allocations: 35.69 kB / 3.412 GB, free: 36.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04966/9.167, allocations: 27.19 MB / 3.439 GB, free: 19.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000683/9.167, allocations: 394.8 kB / 3.439 GB, free: 19.65 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004321/9.168, allocations: 344 kB / 3.44 GB, free: 19.64 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002973/9.168, allocations: 395.7 kB / 3.44 GB, free: 19.27 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/9.168, allocations: 41.72 kB / 3.44 GB, free: 19.23 MB / 442.7 MB Notification: Performance of pre-optimization done (n=54): time 3.046e-06/9.168, allocations: 0 / 3.44 GB, free: 19.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=59): time 0.004608/9.173, allocations: 1.868 MB / 3.442 GB, free: 18.78 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/9.173, allocations: 139.6 kB / 3.442 GB, free: 18.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006773/9.174, allocations: 0.5302 MB / 3.443 GB, free: 18.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.107e-05/9.174, allocations: 35.92 kB / 3.443 GB, free: 18.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000296/9.174, allocations: 410.3 kB / 3.443 GB, free: 18.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/9.174, allocations: 199.2 kB / 3.443 GB, free: 18.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.916e-05/9.174, allocations: 0.5625 kB / 3.443 GB, free: 18.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/9.174, allocations: 388.1 kB / 3.444 GB, free: 17.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005219/9.175, allocations: 387.5 kB / 3.444 GB, free: 17.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000727/9.176, allocations: 0.6462 MB / 3.445 GB, free: 17.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007679/9.176, allocations: 431 kB / 3.445 GB, free: 17.44 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.105e-06/9.176, allocations: 0 / 3.445 GB, free: 17.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002778/9.179, allocations: 1.327 MB / 3.446 GB, free: 17.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/9.179, allocations: 11.09 kB / 3.446 GB, free: 17.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/9.179, allocations: 10.44 kB / 3.446 GB, free: 17.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00033/9.179, allocations: 92.56 kB / 3.446 GB, free: 17.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004152/9.184, allocations: 428.7 kB / 3.447 GB, free: 17.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006137/9.19, allocations: 6.238 MB / 3.453 GB, free: 27.77 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/9.191, allocations: 146.9 kB / 3.453 GB, free: 27.77 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/9.191, allocations: 48.59 kB / 3.453 GB, free: 27.77 MB / 458.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.0003801/9.192, allocations: 147.1 kB / 3.453 GB, free: 27.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008007/9.193, allocations: 262.4 kB / 3.453 GB, free: 27.62 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002269/9.195, allocations: 1.643 MB / 3.455 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.817e-05/9.195, allocations: 14.92 kB / 3.455 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/9.195, allocations: 0.8125 kB / 3.455 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/9.195, allocations: 4.641 kB / 3.455 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004624/9.2, allocations: 2.903 MB / 3.458 GB, free: 27.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/9.2, allocations: 7.406 kB / 3.458 GB, free: 27.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003862/9.204, allocations: 327.5 kB / 3.458 GB, free: 27.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003184/9.204, allocations: 99.7 kB / 3.458 GB, free: 27.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/9.204, allocations: 16.5 kB / 3.458 GB, free: 27.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007331/9.211, allocations: 6.227 MB / 3.464 GB, free: 21.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/9.211, allocations: 3.75 kB / 3.464 GB, free: 21.5 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003498/9.215, allocations: 2.252 MB / 3.467 GB, free: 21.02 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004156/9.215, allocations: 190.4 kB / 3.467 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001712/9.215, allocations: 23.33 kB / 3.467 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008736/9.216, allocations: 106.1 kB / 3.467 GB, free: 20.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002921/9.217, allocations: 126.4 kB / 3.467 GB, free: 20.87 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.638e-05/9.217, allocations: 31.97 kB / 3.467 GB, free: 20.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0007275/9.217, allocations: 466.1 kB / 3.468 GB, free: 20.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008105/9.226, allocations: 1.236 MB / 3.469 GB, free: 20.61 MB / 458.7 MB 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.009172/9.235, allocations: 2.103 MB / 3.471 GB, free: 20.28 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006769/9.242, allocations: 1.447 MB / 3.472 GB, free: 20.27 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/9.242, allocations: 0 / 3.472 GB, free: 20.27 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005868/9.247, allocations: 1.197 MB / 3.473 GB, free: 20.26 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001902/9.249, allocations: 310 kB / 3.474 GB, free: 20.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/9.253, allocations: 1.798 MB / 3.475 GB, free: 19.83 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/9.254, allocations: 1.234 MB / 3.477 GB, free: 19.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.433e-06/9.254, allocations: 6.281 kB / 3.477 GB, free: 19.12 MB / 458.7 MB Notification: Performance of Templates: time 0.07015/9.324, allocations: 44.45 MB / 3.52 GB, free: 16.02 MB / 458.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)