Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) [: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 trunk/package.mo): time 0.001432/0.001432, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009731/0.0009731, allocations: 90.27 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1871/0.1871, allocations: 45.15 MB / 383.4 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.242/0.4291, allocations: 69.36 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.5306, allocations: 63.24 MB / 0.5039 GB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.616/5.146, allocations: 2.771 GB / 3.275 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/5.147, allocations: 89.48 kB / 3.275 GB, free: 118.5 MB / 0.5261 GB 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 1.605/6.752, allocations: 0.5577 GB / 3.832 GB, free: 55.48 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/6.752, allocations: 10.31 kB / 3.832 GB, free: 55.48 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002561/6.755, allocations: 337.6 kB / 3.833 GB, free: 55.43 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00133/6.756, allocations: 0.6829 MB / 3.833 GB, free: 55.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001633/6.756, allocations: 280.2 kB / 3.834 GB, free: 54.93 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002167/6.756, allocations: 50.19 kB / 3.834 GB, free: 54.93 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001547/6.758, allocations: 1.013 MB / 3.835 GB, free: 54.93 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/6.759, allocations: 1.179 MB / 3.836 GB, free: 54.65 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/6.759, allocations: 7.25 kB / 3.836 GB, free: 54.65 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/6.76, allocations: 3.781 kB / 3.836 GB, free: 54.65 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.849e-05/6.76, allocations: 45.62 kB / 3.836 GB, free: 54.65 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06556/6.825, allocations: 38.98 MB / 3.874 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006061/6.826, allocations: 396.4 kB / 3.874 GB, free: 29.82 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004378/6.826, allocations: 342.6 kB / 3.875 GB, free: 29.81 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002431/6.827, allocations: 402.1 kB / 3.875 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.524e-05/6.827, allocations: 42.56 kB / 3.875 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=54): time 2.214e-06/6.827, allocations: 0 / 3.875 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=59): time 0.004333/6.831, allocations: 1.886 MB / 3.877 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/6.831, allocations: 134.7 kB / 3.877 GB, free: 28.8 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005504/6.832, allocations: 0.5234 MB / 3.878 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 8.019e-05/6.832, allocations: 29.67 kB / 3.878 GB, free: 28.64 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002129/6.832, allocations: 399.2 kB / 3.878 GB, free: 28.38 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/6.832, allocations: 191.1 kB / 3.878 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.021e-05/6.832, allocations: 3.188 kB / 3.878 GB, free: 28.27 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.136e-05/6.832, allocations: 382.2 kB / 3.879 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005402/6.833, allocations: 386.4 kB / 3.879 GB, free: 27.95 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005916/6.833, allocations: 0.5974 MB / 3.88 GB, free: 27.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007398/6.834, allocations: 414.2 kB / 3.88 GB, free: 27.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/6.834, allocations: 0 / 3.88 GB, free: 27.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002625/6.837, allocations: 1.298 MB / 3.881 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/6.837, allocations: 3.875 kB / 3.881 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/6.837, allocations: 7.938 kB / 3.881 GB, free: 27.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003003/6.837, allocations: 90.48 kB / 3.881 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00415/6.841, allocations: 414 kB / 3.882 GB, free: 27.59 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004999/6.846, allocations: 6.234 MB / 3.888 GB, free: 22.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/6.847, allocations: 145.5 kB / 3.888 GB, free: 22.03 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/6.847, allocations: 47.14 kB / 3.888 GB, free: 22.03 MB / 0.5417 GB 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: 28 * 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 (103): * Single equations (assignments): 98 * 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.000255/6.848, allocations: 142.9 kB / 3.888 GB, free: 21.91 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007965/6.849, allocations: 252.7 kB / 3.888 GB, free: 21.88 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/6.851, allocations: 1.656 MB / 3.89 GB, free: 21.74 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/6.851, allocations: 13.77 kB / 3.89 GB, free: 21.74 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/6.851, allocations: 7.156 kB / 3.89 GB, free: 21.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/6.851, allocations: 3.703 kB / 3.89 GB, free: 21.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003665/6.854, allocations: 2.932 MB / 3.893 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/6.854, allocations: 0 / 3.893 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003933/6.858, allocations: 331.1 kB / 3.893 GB, free: 21.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003008/6.859, allocations: 106.5 kB / 3.893 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.75e-05/6.859, allocations: 12.95 kB / 3.893 GB, free: 21.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00598/6.865, allocations: 6.214 MB / 3.899 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/6.865, allocations: 3.125 kB / 3.899 GB, free: 31.77 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003029/6.868, allocations: 2.275 MB / 3.902 GB, free: 31.29 MB / 0.5573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003881/6.872, allocations: 3.319 MB / 3.905 GB, free: 30.43 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/6.872, allocations: 188.4 kB / 3.905 GB, free: 30.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002136/6.872, allocations: 26.45 kB / 3.905 GB, free: 30.29 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000968/6.873, allocations: 101.2 kB / 3.905 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002579/6.873, allocations: 129.5 kB / 3.905 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.371e-05/6.873, allocations: 35.14 kB / 3.905 GB, free: 30.28 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005526/6.874, allocations: 454.3 kB / 3.906 GB, free: 30.18 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005753/6.88, allocations: 1.429 MB / 3.907 GB, free: 30.01 MB / 0.5573 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.007606/6.887, allocations: 2.112 MB / 3.909 GB, free: 29.64 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.006443/6.894, allocations: 1.44 MB / 3.911 GB, free: 29.62 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/6.894, allocations: 4.062 kB / 3.911 GB, free: 29.62 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005749/6.9, allocations: 1.199 MB / 3.912 GB, free: 29.61 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/6.902, allocations: 324.5 kB / 3.912 GB, free: 29.59 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/6.905, allocations: 1.786 MB / 3.914 GB, free: 29.1 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/6.906, allocations: 1.237 MB / 3.915 GB, free: 28.38 MB / 0.5573 GB Notification: Performance of SimCode: time 8.12e-07/6.906, allocations: 2.062 kB / 3.915 GB, free: 28.38 MB / 0.5573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)