Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001428/0.001429, allocations: 180.8 kB / 8.128 MB, free: 2.223 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.165/1.165, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0009806/0.0009809, allocations: 94.17 kB / 280.8 MB, free: 1.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08893/0.08994, allocations: 55.83 MB / 336.6 MB, free: 9.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.2683, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08695/0.3553, allocations: 87.73 MB / 474.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/0.3555, allocations: 84.8 kB / 474.8 MB, free: 14.94 MB / 362.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.3134/0.6689, allocations: 62.13 MB / 0.5244 GB, free: 63.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.669, allocations: 8 kB / 0.5244 GB, free: 63.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009687/0.6787, allocations: 1.819 MB / 0.5261 GB, free: 61.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.6895, allocations: 4.536 MB / 0.5306 GB, free: 58.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001148/0.6897, allocations: 72 kB / 0.5306 GB, free: 58.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009516/0.6906, allocations: 139.8 kB / 0.5308 GB, free: 57.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005779/0.6964, allocations: 4.194 MB / 0.5349 GB, free: 55.06 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00801/0.7045, allocations: 6.455 MB / 0.5412 GB, free: 49.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.916e-05/0.7046, allocations: 43.62 kB / 0.5412 GB, free: 49.15 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004835/0.7051, allocations: 24 kB / 0.5412 GB, free: 49.13 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009502/0.706, allocations: 0.7818 MB / 0.542 GB, free: 48.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.7328, allocations: 33.44 MB / 0.5747 GB, free: 17.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002508/0.7354, allocations: 2.254 MB / 0.5769 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.7368, allocations: 1.356 MB / 0.5782 GB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009879/0.7378, allocations: 0.6374 MB / 0.5788 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.7379, allocations: 46.5 kB / 0.5789 GB, free: 14.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 4.118e-06/0.7379, allocations: 3.938 kB / 0.5789 GB, free: 14.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.0546/0.7925, allocations: 22.74 MB / 0.6011 GB, free: 7.141 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.702e-05/0.7926, allocations: 166.8 kB / 0.6012 GB, free: 6.941 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004073/0.7967, allocations: 2.331 MB / 0.6035 GB, free: 4.594 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003579/0.7971, allocations: 25.7 kB / 0.6035 GB, free: 4.562 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.7983, allocations: 1.988 MB / 0.6055 GB, free: 2.539 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007928/0.7991, allocations: 0.5515 MB / 0.606 GB, free: 1.98 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003666/0.7995, allocations: 0 / 0.606 GB, free: 1.98 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003232/0.7999, allocations: 0.5167 MB / 0.6065 GB, free: 1.457 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/0.8029, allocations: 2.095 MB / 0.6086 GB, free: 15.36 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004975/0.8078, allocations: 5.077 MB / 0.6135 GB, free: 8.762 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01633/0.8242, allocations: 6.992 MB / 0.6203 GB, free: 1.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.992e-05/0.8243, allocations: 36 kB / 0.6204 GB, free: 1.734 MB / 410.7 MB Notification: Performance of matching and sorting (n=651) (initialization): time 0.03122/0.8556, allocations: 11.9 MB / 0.632 GB, free: 5.812 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.8556, allocations: 4 kB / 0.632 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02258/0.8782, allocations: 7.742 MB / 0.6396 GB, free: 14.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009259/0.8875, allocations: 2.051 MB / 0.6416 GB, free: 11.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004422/0.892, allocations: 1.135 MB / 0.6427 GB, free: 10.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008053/0.9001, allocations: 7.655 MB / 0.6502 GB, free: 2.723 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00499/0.9051, allocations: 351.4 kB / 0.6505 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/0.9061, allocations: 321.5 kB / 0.6508 GB, free: 2.066 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.0009027/0.907, allocations: 371.1 kB / 0.6512 GB, free: 1.695 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005772/0.9076, allocations: 236.9 kB / 0.6514 GB, free: 1.461 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007444/0.9084, allocations: 353.2 kB / 0.6517 GB, free: 1.105 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1417/1.05, allocations: 7.589 MB / 0.6591 GB, free: 165.4 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.05, allocations: 9.594 kB / 0.6591 GB, free: 165.4 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/1.05, allocations: 5.719 kB / 0.6591 GB, free: 165.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00708/1.057, allocations: 4.642 MB / 0.6637 GB, free: 165 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/1.057, allocations: 7.562 kB / 0.6637 GB, free: 165 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/1.058, allocations: 219.6 kB / 0.6639 GB, free: 165 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007985/1.066, allocations: 2.06 MB / 0.6659 GB, free: 165 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000324/1.067, allocations: 34.52 kB / 0.6659 GB, free: 165 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007582/1.074, allocations: 8.411 MB / 0.6741 GB, free: 160.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001207/1.076, allocations: 2.712 MB / 0.6768 GB, free: 157.5 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02312/1.099, allocations: 10.85 MB / 0.6874 GB, free: 156.9 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02749/1.126, allocations: 13.36 MB / 0.7004 GB, free: 154.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006786/1.127, allocations: 308.2 kB / 0.7007 GB, free: 154.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004212/1.127, allocations: 20.2 kB / 0.7008 GB, free: 154.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/1.129, allocations: 139.7 kB / 0.7009 GB, free: 154.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/1.129, allocations: 65.92 kB / 0.701 GB, free: 154.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000156/1.13, allocations: 47.36 kB / 0.701 GB, free: 154.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002307/1.132, allocations: 1.55 MB / 0.7025 GB, free: 153.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004452/1.136, allocations: 0.8419 MB / 0.7033 GB, free: 153.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET139841710262680.x[3],$STATESET139841710262680.x[2],$STATESET139841710262680.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],$STATESET139841710262679.x[3],$STATESET139841710262679.x[2],$STATESET139841710262679.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.0004988/1.137, allocations: 177.1 kB / 0.7035 GB, free: 153.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009154/1.146, allocations: 6.106 MB / 0.7095 GB, free: 148.6 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/1.146, allocations: 0 / 0.7095 GB, free: 148.6 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005046/1.151, allocations: 2.973 MB / 0.7124 GB, free: 146 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/1.152, allocations: 233.4 kB / 0.7126 GB, free: 145.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/1.163, allocations: 6.843 MB / 0.7193 GB, free: 139.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002528/1.165, allocations: 2.631 MB / 0.7218 GB, free: 137.7 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/1.165, allocations: 0 / 0.7218 GB, free: 137.7 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1)