Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001772/0.001772, allocations: 194.4 kB / 7.808 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.567/1.567, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001097/0.001097, allocations: 90.03 kB / 261.4 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.211/0.211, allocations: 43.49 MB / 352.8 MB, free: 2.047 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.226/0.437, allocations: 64.98 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3756/0.8126, allocations: 58.84 MB / 476.7 MB, free: 5.199 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.615/7.428, allocations: 2.764 GB / 3.23 GB, free: 13.43 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/7.428, allocations: 82.7 kB / 3.23 GB, free: 13.39 MB / 0.4948 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 2.286/9.714, allocations: 0.5517 GB / 3.782 GB, free: 28.18 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/9.714, allocations: 12 kB / 3.782 GB, free: 28.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/9.717, allocations: 342.5 kB / 3.782 GB, free: 27.83 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/9.718, allocations: 0.6806 MB / 3.783 GB, free: 27.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001699/9.718, allocations: 271.6 kB / 3.783 GB, free: 26.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/9.718, allocations: 51.98 kB / 3.783 GB, free: 26.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001542/9.72, allocations: 1.007 MB / 3.784 GB, free: 25.74 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/9.721, allocations: 1.182 MB / 3.785 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/9.721, allocations: 7.906 kB / 3.785 GB, free: 24.46 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.637e-05/9.721, allocations: 4 kB / 3.785 GB, free: 24.45 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.125e-05/9.722, allocations: 45.92 kB / 3.785 GB, free: 24.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07412/9.796, allocations: 36.1 MB / 3.821 GB, free: 440 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006926/9.796, allocations: 399.5 kB / 3.821 GB, free: 36 kB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.2686/10.07, allocations: 345 kB / 3.821 GB, free: 105.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000336/10.07, allocations: 402.5 kB / 3.822 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/10.07, allocations: 42.19 kB / 3.822 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=54): time 3.146e-06/10.07, allocations: 0 / 3.822 GB, free: 105.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=59): time 0.004979/10.07, allocations: 1.889 MB / 3.823 GB, free: 105 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.172e-05/10.07, allocations: 136.5 kB / 3.824 GB, free: 104.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008713/10.07, allocations: 0.5094 MB / 3.824 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001044/10.07, allocations: 40.23 kB / 3.824 GB, free: 104.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004504/10.07, allocations: 397.5 kB / 3.825 GB, free: 104.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/10.07, allocations: 194.6 kB / 3.825 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.093e-05/10.07, allocations: 3.062 kB / 3.825 GB, free: 104.3 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001695/10.07, allocations: 378.2 kB / 3.825 GB, free: 104 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006105/10.07, allocations: 382.7 kB / 3.825 GB, free: 104 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007471/10.07, allocations: 0.6046 MB / 3.826 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008017/10.07, allocations: 411.5 kB / 3.826 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/10.07, allocations: 3.781 kB / 3.826 GB, free: 103.8 MB / 0.5105 GB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002825/10.08, allocations: 1.297 MB / 3.828 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/10.08, allocations: 3.812 kB / 3.828 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.355e-05/10.08, allocations: 9.938 kB / 3.828 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003269/10.08, allocations: 86.44 kB / 3.828 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003986/10.08, allocations: 415.3 kB / 3.828 GB, free: 103.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005441/10.09, allocations: 6.237 MB / 3.834 GB, free: 98.12 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001481/10.09, allocations: 140.6 kB / 3.834 GB, free: 98.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001209/10.09, allocations: 42.62 kB / 3.834 GB, free: 98.11 MB / 0.5105 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.0003874/10.09, allocations: 144.7 kB / 3.835 GB, free: 98 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008371/10.09, allocations: 256.3 kB / 3.835 GB, free: 97.97 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002186/10.09, allocations: 1.655 MB / 3.836 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.607e-05/10.09, allocations: 15.48 kB / 3.836 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/10.09, allocations: 11.31 kB / 3.836 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/10.09, allocations: 0 / 3.836 GB, free: 97.82 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004464/10.1, allocations: 2.936 MB / 3.839 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/10.1, allocations: 3.094 kB / 3.839 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003818/10.1, allocations: 334.3 kB / 3.84 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000334/10.1, allocations: 101.3 kB / 3.84 GB, free: 97.42 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001096/10.1, allocations: 16.17 kB / 3.84 GB, free: 97.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00541/10.11, allocations: 6.214 MB / 3.846 GB, free: 91.87 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.634e-06/10.11, allocations: 7.406 kB / 3.846 GB, free: 91.87 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003356/10.11, allocations: 2.277 MB / 3.848 GB, free: 91.38 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003983/10.11, allocations: 3.322 MB / 3.851 GB, free: 90.52 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000369/10.11, allocations: 186.7 kB / 3.852 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/10.11, allocations: 24.66 kB / 3.852 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009116/10.12, allocations: 103.7 kB / 3.852 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002602/10.12, allocations: 129.5 kB / 3.852 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.326e-05/10.12, allocations: 28.81 kB / 3.852 GB, free: 90.38 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0005696/10.12, allocations: 451.2 kB / 3.852 GB, free: 90.27 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007474/10.12, allocations: 1.412 MB / 3.854 GB, free: 90.27 MB / 0.5105 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.01009/10.13, allocations: 2.096 MB / 3.856 GB, free: 90.12 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006666/10.14, allocations: 1.444 MB / 3.857 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.277e-05/10.14, allocations: 3.781 kB / 3.857 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005925/10.15, allocations: 1.198 MB / 3.858 GB, free: 90.11 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/10.15, allocations: 327.2 kB / 3.859 GB, free: 90.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003718/10.15, allocations: 1.783 MB / 3.86 GB, free: 89.68 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009911/10.15, allocations: 1.239 MB / 3.861 GB, free: 88.98 MB / 0.5105 GB Notification: Performance of SimCode: time 1.343e-06/10.15, allocations: 0 / 3.861 GB, free: 88.98 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-05 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Vessels_TestTankWithTopPorts.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Vessels.TestTankWithTopPorts.pipe 2>&1)