Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",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.001014/0.001014, allocations: 182.8 kB / 8.477 MB, free: 1.859 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.083/1.083, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.000924/0.0009242, allocations: 90.12 kB / 262.1 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0867/0.08766, allocations: 52.99 MB / 315.1 MB, free: 8.562 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.2698, allocations: 47.55 MB / 362.6 MB, free: 45.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08312/0.353, allocations: 86.42 MB / 449.1 MB, free: 15.45 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001983/0.3532, allocations: 90.27 kB / 449.1 MB, free: 15.36 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.1743/0.5275, allocations: 61.55 MB / 0.4987 GB, free: 1.395 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.5275, allocations: 8 kB / 0.4987 GB, free: 1.387 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1076/0.6352, allocations: 1.829 MB / 0.5005 GB, free: 139.3 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/0.6454, allocations: 4.814 MB / 0.5052 GB, free: 139 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.519e-05/0.6455, allocations: 72.59 kB / 0.5053 GB, free: 139 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004362/0.6459, allocations: 142 kB / 0.5054 GB, free: 139 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004895/0.6508, allocations: 4.193 MB / 0.5095 GB, free: 139 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005978/0.6568, allocations: 6.447 MB / 0.5158 GB, free: 136.8 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-05/0.6569, allocations: 48.97 kB / 0.5159 GB, free: 136.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003014/0.6572, allocations: 24.94 kB / 0.5159 GB, free: 136.8 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008297/0.6581, allocations: 0.7888 MB / 0.5166 GB, free: 136.8 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02411/0.6822, allocations: 33.48 MB / 0.5493 GB, free: 113 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002203/0.6844, allocations: 2.268 MB / 0.5516 GB, free: 111.7 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001297/0.6858, allocations: 1.337 MB / 0.5529 GB, free: 111.2 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009125/0.6867, allocations: 0.6331 MB / 0.5535 GB, free: 110.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.929e-05/0.6867, allocations: 56.23 kB / 0.5535 GB, free: 110.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 3.927e-06/0.6867, allocations: 0 / 0.5535 GB, free: 110.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=136): time 0.05141/0.7381, allocations: 22.84 MB / 0.5758 GB, free: 98.47 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.7382, allocations: 174.7 kB / 0.576 GB, free: 98.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002435/0.7407, allocations: 2.348 MB / 0.5783 GB, free: 96.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000126/0.7408, allocations: 29.64 kB / 0.5783 GB, free: 96.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007558/0.7415, allocations: 1.993 MB / 0.5803 GB, free: 94.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004279/0.742, allocations: 0.5577 MB / 0.5808 GB, free: 93.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.7422, allocations: 3.75 kB / 0.5808 GB, free: 93.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.7424, allocations: 0.5161 MB / 0.5813 GB, free: 93.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002253/0.7447, allocations: 2.086 MB / 0.5834 GB, free: 91.54 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003093/0.7478, allocations: 5.077 MB / 0.5883 GB, free: 85.28 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/0.7621, allocations: 6.995 MB / 0.5952 GB, free: 79.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-05/0.7621, allocations: 32 kB / 0.5952 GB, free: 79.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.02589/0.788, allocations: 11.91 MB / 0.6068 GB, free: 68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.7881, allocations: 7.75 kB / 0.6068 GB, free: 67.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01968/0.8077, allocations: 7.743 MB / 0.6144 GB, free: 60.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008443/0.8162, allocations: 2.047 MB / 0.6164 GB, free: 58.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003476/0.8197, allocations: 1.142 MB / 0.6175 GB, free: 57.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006004/0.8257, allocations: 7.649 MB / 0.625 GB, free: 48.92 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004162/0.8299, allocations: 351.4 kB / 0.6253 GB, free: 48.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003904/0.8303, allocations: 323.9 kB / 0.6256 GB, free: 48.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 490 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 584 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005244/0.8308, allocations: 363.9 kB / 0.626 GB, free: 47.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/0.8312, allocations: 244.8 kB / 0.6262 GB, free: 47.66 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005882/0.8318, allocations: 349.4 kB / 0.6265 GB, free: 47.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01963/0.8515, allocations: 7.61 MB / 0.634 GB, free: 39.67 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.204e-05/0.8515, allocations: 8 kB / 0.634 GB, free: 39.66 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.315e-05/0.8515, allocations: 7.922 kB / 0.634 GB, free: 39.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006421/0.8579, allocations: 4.644 MB / 0.6385 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.8579, allocations: 0 / 0.6385 GB, free: 34.98 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.8592, allocations: 227.6 kB / 0.6387 GB, free: 34.76 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008004/0.8672, allocations: 2.059 MB / 0.6407 GB, free: 32.67 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001644/0.8674, allocations: 31.95 kB / 0.6408 GB, free: 32.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007172/0.8745, allocations: 8.413 MB / 0.649 GB, free: 23.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00114/0.8757, allocations: 2.72 MB / 0.6516 GB, free: 20.82 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02272/0.8984, allocations: 10.86 MB / 0.6623 GB, free: 9.891 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1295/1.028, allocations: 13.35 MB / 0.6753 GB, free: 124.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004387/1.028, allocations: 313.6 kB / 0.6756 GB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/1.029, allocations: 17.98 kB / 0.6756 GB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001742/1.031, allocations: 133.9 kB / 0.6757 GB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/1.031, allocations: 66.34 kB / 0.6758 GB, free: 124.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/1.031, allocations: 50.77 kB / 0.6758 GB, free: 124.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001811/1.033, allocations: 1.571 MB / 0.6774 GB, free: 124.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004261/1.037, allocations: 0.8487 MB / 0.6782 GB, free: 124.2 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET140302678088088.x[3],$STATESET140302678088088.x[2],$STATESET140302678088088.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET140302678088087.x[3],$STATESET140302678088087.x[2],$STATESET140302678088087.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004492/1.038, allocations: 166.3 kB / 0.6784 GB, free: 124.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008511/1.046, allocations: 6.11 MB / 0.6843 GB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/1.046, allocations: 2.906 kB / 0.6843 GB, free: 123.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004763/1.051, allocations: 2.961 MB / 0.6872 GB, free: 122.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/1.052, allocations: 237.9 kB / 0.6875 GB, free: 122.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01398/1.066, allocations: 6.852 MB / 0.6941 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00421/1.07, allocations: 2.634 MB / 0.6967 GB, free: 120.3 MB / 394.7 MB Notification: Performance of SimCode: time 7.42e-07/1.07, allocations: 3.625 kB / 0.6967 GB, free: 120.3 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)