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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|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.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|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.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") [: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.001734/0.001734, allocations: 203.6 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 225.5 MB / 234.4 MB, free: 3.324 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001027/0.001026, allocations: 91.95 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.846e-06/8.876e-06, allocations: 4 kB / 343.1 MB, free: 8.672 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1331, allocations: 51.49 MB / 394.6 MB, free: 5.141 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3473/0.4804, allocations: 88.38 MB / 483 MB, free: 4.895 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.4807, allocations: 87.19 kB / 483.1 MB, free: 4.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1648/0.6455, allocations: 61.11 MB / 0.5314 GB, free: 12.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000102/0.6457, allocations: 47.98 kB / 0.5315 GB, free: 12.82 MB / 410.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.01992/0.6656, allocations: 3.412 MB / 0.5348 GB, free: 9.348 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.743e-05/0.6657, allocations: 16.03 kB / 0.5348 GB, free: 9.332 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01159/0.6773, allocations: 1.919 MB / 0.5367 GB, free: 7.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01135/0.6887, allocations: 3.851 MB / 0.5405 GB, free: 3.504 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.6889, allocations: 72 kB / 0.5405 GB, free: 3.434 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001569/0.6905, allocations: 139.9 kB / 0.5407 GB, free: 3.297 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008204/0.6987, allocations: 4.201 MB / 0.5448 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01081/0.7096, allocations: 6.446 MB / 0.5511 GB, free: 7.793 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001491/0.7098, allocations: 47.56 kB / 0.5511 GB, free: 7.746 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003607/0.7102, allocations: 24 kB / 0.5511 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/0.7114, allocations: 0.7958 MB / 0.5519 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.301/1.012, allocations: 33.43 MB / 0.5846 GB, free: 58.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/1.015, allocations: 2.259 MB / 0.5868 GB, free: 58.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001554/1.017, allocations: 1.345 MB / 0.5881 GB, free: 58.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001003/1.018, allocations: 0.6261 MB / 0.5887 GB, free: 57.66 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.267e-05/1.018, allocations: 54.61 kB / 0.5888 GB, free: 57.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 4.438e-06/1.018, allocations: 7.016 kB / 0.5888 GB, free: 57.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=136): time 0.05378/1.072, allocations: 22.73 MB / 0.611 GB, free: 55.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.208e-05/1.072, allocations: 172.1 kB / 0.6111 GB, free: 55.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004058/1.076, allocations: 2.324 MB / 0.6134 GB, free: 54.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000445/1.076, allocations: 27.67 kB / 0.6134 GB, free: 54.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/1.078, allocations: 1.995 MB / 0.6154 GB, free: 53.88 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008387/1.078, allocations: 0.5523 MB / 0.6159 GB, free: 53.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002179/1.079, allocations: 1.156 kB / 0.6159 GB, free: 53.57 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002986/1.079, allocations: 0.516 MB / 0.6164 GB, free: 53.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003595/1.083, allocations: 2.088 MB / 0.6184 GB, free: 53.24 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005611/1.088, allocations: 5.083 MB / 0.6234 GB, free: 49.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01863/1.107, allocations: 6.998 MB / 0.6302 GB, free: 49.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002435/1.107, allocations: 31.19 kB / 0.6303 GB, free: 49.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.036/1.143, allocations: 11.91 MB / 0.6419 GB, free: 47.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/1.143, allocations: 14.64 kB / 0.6419 GB, free: 47.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0244/1.168, allocations: 7.738 MB / 0.6495 GB, free: 45.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009533/1.177, allocations: 2.051 MB / 0.6515 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00471/1.182, allocations: 1.144 MB / 0.6526 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007352/1.189, allocations: 7.649 MB / 0.6601 GB, free: 39.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006432/1.196, allocations: 349.2 kB / 0.6604 GB, free: 39.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001573/1.197, allocations: 321.1 kB / 0.6607 GB, free: 39.48 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.001204/1.199, allocations: 368.6 kB / 0.661 GB, free: 39.17 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009144/1.2, allocations: 232.5 kB / 0.6613 GB, free: 39.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008435/1.2, allocations: 349.1 kB / 0.6616 GB, free: 38.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02187/1.222, allocations: 7.604 MB / 0.669 GB, free: 36.41 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.875e-05/1.222, allocations: 11.56 kB / 0.669 GB, free: 36.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.523e-05/1.222, allocations: 7.078 kB / 0.669 GB, free: 36.41 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008798/1.231, allocations: 4.636 MB / 0.6736 GB, free: 32.76 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.933e-06/1.231, allocations: 0 / 0.6736 GB, free: 32.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/1.233, allocations: 226.1 kB / 0.6738 GB, free: 32.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008216/1.241, allocations: 2.06 MB / 0.6758 GB, free: 31.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004313/1.241, allocations: 30.73 kB / 0.6758 GB, free: 31.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009364/1.251, allocations: 8.41 MB / 0.684 GB, free: 23.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001504/1.252, allocations: 2.72 MB / 0.6867 GB, free: 20.42 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02415/1.276, allocations: 10.85 MB / 0.6973 GB, free: 11.59 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/1.278, allocations: 308 kB / 0.6976 GB, free: 11.28 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004848/1.278, allocations: 19.38 kB / 0.6976 GB, free: 11.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001778/1.28, allocations: 135.1 kB / 0.6977 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/1.28, allocations: 66.38 kB / 0.6978 GB, free: 11.15 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001708/1.28, allocations: 50.64 kB / 0.6978 GB, free: 11.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.003173/1.283, allocations: 1.554 MB / 0.6994 GB, free: 9.742 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005569/1.289, allocations: 0.8402 MB / 0.7002 GB, free: 8.91 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET139653613291928.x[3],$STATESET139653613291928.x[2],$STATESET139653613291928.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],$STATESET139653613291927.x[3],$STATESET139653613291927.x[2],$STATESET139653613291927.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.0005609/1.29, allocations: 171.2 kB / 0.7004 GB, free: 8.754 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01045/1.3, allocations: 6.108 MB / 0.7063 GB, free: 3.273 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.3, allocations: 0 / 0.7063 GB, free: 3.273 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005156/1.305, allocations: 2.971 MB / 0.7092 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/1.307, allocations: 241.1 kB / 0.7094 GB, free: 392 kB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0187/1.326, allocations: 6.804 MB / 0.7161 GB, free: 9.945 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003714/1.33, allocations: 2.558 MB / 0.7186 GB, free: 7.375 MB / 458.7 MB Notification: Performance of SimCode: time 1.603e-06/1.33, allocations: 3.938 kB / 0.7186 GB, free: 7.371 MB / 458.7 MB Notification: Performance of Templates: time 0.07442/1.404, allocations: 35.76 MB / 0.7535 GB, free: 4.242 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches