Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009682/0.0009682, allocations: 179.1 kB / 8.517 MB, free: 1.855 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.255/1.255, allocations: 221.4 MB / 230.3 MB, free: 7.719 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.0009681/0.000968, allocations: 92.61 kB / 281.2 MB, free: 5.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1867/0.1867, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2349/0.4216, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.5417, allocations: 61.91 MB / 0.4942 GB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.081/5.623, allocations: 2.77 GB / 3.264 GB, free: 4.055 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002035/5.623, allocations: 87.78 kB / 3.264 GB, free: 3.973 MB / 0.5105 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.867/7.49, allocations: 0.5576 GB / 3.822 GB, free: 52.29 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/7.49, allocations: 9.25 kB / 3.822 GB, free: 52.28 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00286/7.493, allocations: 340.1 kB / 3.822 GB, free: 52.02 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001733/7.495, allocations: 0.6813 MB / 3.823 GB, free: 51.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/7.495, allocations: 274.5 kB / 3.823 GB, free: 51.09 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/7.495, allocations: 48 kB / 3.823 GB, free: 51.04 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001782/7.497, allocations: 1.008 MB / 3.824 GB, free: 50.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/7.499, allocations: 1.186 MB / 3.825 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.877e-05/7.499, allocations: 7.766 kB / 3.825 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001245/7.499, allocations: 4 kB / 3.825 GB, free: 48.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.051e-05/7.499, allocations: 45.89 kB / 3.825 GB, free: 48.72 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06575/7.565, allocations: 36.12 MB / 3.86 GB, free: 8.734 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/7.566, allocations: 394.4 kB / 3.861 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004341/7.566, allocations: 345.9 kB / 3.861 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002423/7.566, allocations: 410.9 kB / 3.862 GB, free: 7.535 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/7.566, allocations: 39 kB / 3.862 GB, free: 7.484 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=54): time 2.034e-06/7.566, allocations: 0 / 3.862 GB, free: 7.484 MB / 0.5261 GB Notification: Performance of matching and sorting (n=59): time 0.004544/7.571, allocations: 1.89 MB / 3.863 GB, free: 5.543 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/7.571, allocations: 134.7 kB / 3.864 GB, free: 5.383 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005656/7.572, allocations: 0.5098 MB / 3.864 GB, free: 4.863 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 9.683e-05/7.572, allocations: 41.62 kB / 3.864 GB, free: 4.816 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/7.572, allocations: 401.6 kB / 3.864 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/7.572, allocations: 193.3 kB / 3.865 GB, free: 4.227 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/7.572, allocations: 0 / 3.865 GB, free: 4.227 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.559e-05/7.572, allocations: 374.8 kB / 3.865 GB, free: 3.852 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005541/7.573, allocations: 389.8 kB / 3.865 GB, free: 3.473 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005699/7.574, allocations: 0.6045 MB / 3.866 GB, free: 2.773 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007258/7.574, allocations: 402.9 kB / 3.866 GB, free: 2.379 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/7.574, allocations: 7.938 kB / 3.866 GB, free: 2.371 MB / 0.5261 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002615/7.577, allocations: 1.296 MB / 3.868 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/7.577, allocations: 4 kB / 3.868 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/7.577, allocations: 8 kB / 3.868 GB, free: 1.051 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/7.577, allocations: 88.8 kB / 3.868 GB, free: 0.9609 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004105/7.581, allocations: 419 kB / 3.868 GB, free: 0.5547 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/7.588, allocations: 6.236 MB / 3.874 GB, free: 9.852 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/7.589, allocations: 144.3 kB / 3.874 GB, free: 9.711 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/7.589, allocations: 40.05 kB / 3.874 GB, free: 9.672 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.0003153/7.59, allocations: 149.9 kB / 3.875 GB, free: 9.52 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008403/7.59, allocations: 254.9 kB / 3.875 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/7.593, allocations: 1.659 MB / 3.876 GB, free: 7.586 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.606e-05/7.593, allocations: 15.98 kB / 3.876 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.385e-06/7.593, allocations: 0 / 3.876 GB, free: 7.57 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/7.593, allocations: 7.891 kB / 3.876 GB, free: 7.562 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/7.597, allocations: 2.929 MB / 3.879 GB, free: 4.566 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.105e-06/7.597, allocations: 8.062 kB / 3.879 GB, free: 4.559 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003916/7.601, allocations: 331.4 kB / 3.88 GB, free: 4.234 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003123/7.601, allocations: 100.7 kB / 3.88 GB, free: 4.133 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.109e-05/7.602, allocations: 15.98 kB / 3.88 GB, free: 4.117 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2429/7.844, allocations: 6.216 MB / 3.886 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.152e-06/7.845, allocations: 2.656 kB / 3.886 GB, free: 119.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003068/7.848, allocations: 2.272 MB / 3.888 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003723/7.851, allocations: 3.324 MB / 3.891 GB, free: 118.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/7.852, allocations: 189.8 kB / 3.891 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/7.852, allocations: 14.69 kB / 3.891 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008458/7.853, allocations: 111 kB / 3.892 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/7.853, allocations: 129.1 kB / 3.892 GB, free: 118 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.393e-05/7.853, allocations: 31.81 kB / 3.892 GB, free: 118 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.000483/7.854, allocations: 455.7 kB / 3.892 GB, free: 117.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006676/7.86, allocations: 1.409 MB / 3.894 GB, free: 117.9 MB / 0.5417 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.008662/7.869, allocations: 2.09 MB / 3.896 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006396/7.875, allocations: 1.442 MB / 3.897 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/7.875, allocations: 0 / 3.897 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006096/7.881, allocations: 1.206 MB / 3.898 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/7.884, allocations: 311.1 kB / 3.898 GB, free: 117.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/7.887, allocations: 1.798 MB / 3.9 GB, free: 117.4 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007509/7.888, allocations: 1.237 MB / 3.901 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of SimCode: time 5.61e-07/7.888, allocations: 0 / 3.901 GB, free: 116.7 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)