Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001116/0.001116, allocations: 202.3 kB / 8.541 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.178/1.178, allocations: 225.5 MB / 234.4 MB, free: 3.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008993/0.0008993, allocations: 96.73 kB / 286.3 MB, free: 5.207 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09618/0.09711, allocations: 56.91 MB / 343.2 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08539/0.1825, allocations: 51.47 MB / 394.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2164/0.399, allocations: 88.38 MB / 483.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.3992, allocations: 84.64 kB / 483.2 MB, free: 4.801 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.185/0.5842, allocations: 64.59 MB / 0.5349 GB, free: 9.34 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.5843, allocations: 8 kB / 0.5349 GB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/0.5948, allocations: 1.927 MB / 0.5368 GB, free: 7.398 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01038/0.6052, allocations: 3.849 MB / 0.5406 GB, free: 3.496 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.6054, allocations: 72 kB / 0.5406 GB, free: 3.426 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009435/0.6063, allocations: 139.9 kB / 0.5408 GB, free: 3.289 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006746/0.6131, allocations: 4.193 MB / 0.5449 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008183/0.6213, allocations: 6.446 MB / 0.5512 GB, free: 7.789 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9e-05/0.6214, allocations: 55.55 kB / 0.5512 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003186/0.6217, allocations: 24 kB / 0.5512 GB, free: 7.711 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001118/0.6229, allocations: 0.7919 MB / 0.552 GB, free: 6.914 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1423/0.7652, allocations: 33.43 MB / 0.5847 GB, free: 125.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002378/0.7676, allocations: 2.27 MB / 0.5869 GB, free: 124.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.769, allocations: 1.343 MB / 0.5882 GB, free: 124.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000919/0.7699, allocations: 0.634 MB / 0.5888 GB, free: 123.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.834e-05/0.7699, allocations: 43.75 kB / 0.5888 GB, free: 123.7 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 3.566e-06/0.7699, allocations: 0 / 0.5888 GB, free: 123.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.05134/0.8213, allocations: 22.74 MB / 0.6111 GB, free: 121.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.8214, allocations: 167.2 kB / 0.6112 GB, free: 121.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00279/0.8242, allocations: 2.325 MB / 0.6135 GB, free: 121.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002258/0.8244, allocations: 29.41 kB / 0.6135 GB, free: 121.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008071/0.8252, allocations: 1.991 MB / 0.6155 GB, free: 119.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004817/0.8257, allocations: 0.5502 MB / 0.616 GB, free: 119.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002136/0.8259, allocations: 0 / 0.616 GB, free: 119.6 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000198/0.8261, allocations: 0.5172 MB / 0.6165 GB, free: 119.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.8285, allocations: 2.089 MB / 0.6185 GB, free: 118.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00355/0.8321, allocations: 5.086 MB / 0.6235 GB, free: 113.8 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01481/0.8469, allocations: 6.992 MB / 0.6303 GB, free: 112.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.212e-05/0.847, allocations: 28.94 kB / 0.6304 GB, free: 112.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.02702/0.874, allocations: 11.91 MB / 0.642 GB, free: 109.3 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.8741, allocations: 6.75 kB / 0.642 GB, free: 109.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02078/0.8949, allocations: 7.741 MB / 0.6496 GB, free: 107.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008881/0.9038, allocations: 2.051 MB / 0.6516 GB, free: 107.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003857/0.9077, allocations: 1.147 MB / 0.6527 GB, free: 107.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006411/0.9141, allocations: 7.656 MB / 0.6602 GB, free: 100.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004843/0.919, allocations: 351.6 kB / 0.6605 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007054/0.9197, allocations: 321.7 kB / 0.6608 GB, free: 99.96 MB / 442.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.0006762/0.9204, allocations: 367.3 kB / 0.6611 GB, free: 99.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004176/0.9208, allocations: 232.9 kB / 0.6614 GB, free: 99.36 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005782/0.9214, allocations: 347.6 kB / 0.6617 GB, free: 99.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01957/0.941, allocations: 7.598 MB / 0.6691 GB, free: 93.23 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.579e-05/0.941, allocations: 11.44 kB / 0.6691 GB, free: 93.22 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.245e-05/0.9411, allocations: 3.234 kB / 0.6691 GB, free: 93.22 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007037/0.9481, allocations: 4.648 MB / 0.6737 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.9481, allocations: 3.5 kB / 0.6737 GB, free: 89.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.9494, allocations: 226 kB / 0.6739 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007945/0.9573, allocations: 2.059 MB / 0.6759 GB, free: 88.04 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002396/0.9576, allocations: 29.98 kB / 0.6759 GB, free: 88.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007353/0.965, allocations: 8.418 MB / 0.6842 GB, free: 80.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001162/0.9661, allocations: 2.713 MB / 0.6868 GB, free: 77.23 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02287/0.989, allocations: 10.84 MB / 0.6974 GB, free: 68.25 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02459/1.014, allocations: 13.37 MB / 0.7104 GB, free: 54.82 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006542/1.014, allocations: 309.9 kB / 0.7107 GB, free: 54.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004416/1.015, allocations: 15.98 kB / 0.7108 GB, free: 54.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001752/1.017, allocations: 135.8 kB / 0.7109 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/1.017, allocations: 67.88 kB / 0.711 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001817/1.017, allocations: 51.97 kB / 0.711 GB, free: 54.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001848/1.019, allocations: 1.557 MB / 0.7125 GB, free: 52.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004438/1.023, allocations: 0.8468 MB / 0.7134 GB, free: 51.82 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET139717708097944.x[3],$STATESET139717708097944.x[2],$STATESET139717708097944.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],$STATESET139717708097943.x[3],$STATESET139717708097943.x[2],$STATESET139717708097943.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.0005306/1.024, allocations: 179.4 kB / 0.7135 GB, free: 51.65 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00894/1.033, allocations: 6.094 MB / 0.7195 GB, free: 45.45 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.033, allocations: 2.297 kB / 0.7195 GB, free: 45.45 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004842/1.038, allocations: 2.97 MB / 0.7224 GB, free: 42.35 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001383/1.039, allocations: 228.2 kB / 0.7226 GB, free: 42.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/1.05, allocations: 6.847 MB / 0.7293 GB, free: 35.31 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002666/1.052, allocations: 2.627 MB / 0.7318 GB, free: 32.67 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/1.052, allocations: 0 / 0.7318 GB, free: 32.67 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)