Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00186/0.00186, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.513/1.513, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 52.39 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.226, allocations: 46.64 MB / 325.3 MB, free: 2.008 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008341/0.2344, allocations: 7.672 MB / 333 MB, free: 11.99 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006141/0.2406, allocations: 3.291 MB / 336.3 MB, free: 9.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009966/0.2416, allocations: 35.88 kB / 336.3 MB, free: 9.043 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001949/0.2436, allocations: 1.031 MB / 337.4 MB, free: 8.008 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.2464, allocations: 1.346 MB / 338.7 MB, free: 6.656 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.2475, allocations: 0.5379 MB / 339.2 MB, free: 6.117 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.00271/0.2502, allocations: 2.598 MB / 341.8 MB, free: 3.512 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001501/0.2517, allocations: 1.383 MB / 343.2 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009955/0.2527, allocations: 0.8407 MB / 344.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.254, allocations: 1.16 MB / 345.2 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.2543, allocations: 148 kB / 345.4 MB, free: 15.95 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001483/0.2558, allocations: 0.893 MB / 346.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008214/0.2566, allocations: 1.06 MB / 347.3 MB, free: 14 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001007/0.2577, allocations: 1.246 MB / 348.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00371/0.2614, allocations: 3.952 MB / 352.5 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2614, allocations: 0 / 352.5 MB, free: 8.777 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2614, allocations: 7.938 kB / 352.5 MB, free: 8.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.345e-05/0.2615, allocations: 0 / 352.5 MB, free: 8.77 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.004871/0.2663, allocations: 2.999 MB / 355.5 MB, free: 5.711 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.2664, allocations: 8.031 kB / 355.5 MB, free: 5.703 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00514/0.2715, allocations: 1.576 MB / 357.1 MB, free: 4.121 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002352/0.2739, allocations: 1.446 MB / 358.5 MB, free: 2.629 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.34e-05/0.274, allocations: 135 kB / 358.7 MB, free: 2.496 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/0.2743, allocations: 155.9 kB / 358.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008882/0.2832, allocations: 6.538 MB / 365.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.355e-05/0.2833, allocations: 27.75 kB / 365.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.2835, allocations: 83.89 kB / 365.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002328/0.2858, allocations: 1.468 MB / 366.9 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009459/0.2953, allocations: 5.834 MB / 372.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02837/0.3237, allocations: 25.76 MB / 398.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005608/0.3293, allocations: 2.553 MB / 401.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/0.331, allocations: 1.215 MB / 402.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007203/0.3383, allocations: 4.823 MB / 407.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.08e-05/0.3383, allocations: 38.56 kB / 407.2 MB, free: 488 kB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 4.488e-06/0.3383, allocations: 0 / 407.2 MB, free: 488 kB / 334.1 MB Notification: Performance of matching and sorting (n=105): time 0.02349/0.3618, allocations: 9.814 MB / 417 MB, free: 6.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.3619, allocations: 137 kB / 417.1 MB, free: 6.355 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003393/0.3653, allocations: 2.718 MB / 419.8 MB, free: 3.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.3655, allocations: 37.98 kB / 419.9 MB, free: 3.574 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.3669, allocations: 2.048 MB / 421.9 MB, free: 1.496 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004192/0.3673, allocations: 426.7 kB / 422.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001016/0.3683, allocations: 0.8409 MB / 423.2 MB, free: 224 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3685, allocations: 305.1 kB / 423.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.3705, allocations: 1.449 MB / 424.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/0.3744, allocations: 4.073 MB / 429 MB, free: 9.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006872/0.3812, allocations: 5.959 MB / 435 MB, free: 1.789 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.806e-05/0.3813, allocations: 24 kB / 435 MB, free: 1.766 MB / 366.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01046/0.3918, allocations: 6.029 MB / 441 MB, free: 11.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.23e-05/0.3919, allocations: 51.94 kB / 441.1 MB, free: 11.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.65e-05/0.392, allocations: 92 kB / 441.2 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002389/0.3944, allocations: 0.8248 MB / 442 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00267/0.3971, allocations: 0.9435 MB / 442.9 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005985/0.4031, allocations: 4.656 MB / 447.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/0.4059, allocations: 243.5 kB / 447.8 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003355/0.4062, allocations: 264 kB / 448.1 MB, free: 4.523 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (502): * Single equations (assignments): 498 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001822/0.408, allocations: 1.368 MB / 449.4 MB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/0.4084, allocations: 225.1 kB / 449.7 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/0.4125, allocations: 2.134 MB / 451.8 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.4126, allocations: 16 kB / 451.8 MB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.4126, allocations: 4 kB / 451.8 MB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.4126, allocations: 3.984 kB / 451.8 MB, free: 0.7422 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2066/0.6192, allocations: 5.067 MB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/0.6193, allocations: 1.125 kB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008433/0.6201, allocations: 155.9 kB / 457 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002166/0.6223, allocations: 0.692 MB / 457.7 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.224e-05/0.6224, allocations: 19.34 kB / 457.7 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004636/0.627, allocations: 4.149 MB / 461.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.6271, allocations: 9.438 kB / 461.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005262/0.6323, allocations: 4.057 MB / 466 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000931/0.6333, allocations: 448.6 kB / 466.4 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002532/0.6336, allocations: 17.62 kB / 466.4 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009306/0.6345, allocations: 68.72 kB / 466.5 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.6347, allocations: 58.59 kB / 466.5 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.919e-05/0.6348, allocations: 38.33 kB / 466.6 MB, free: 105.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002155/0.6369, allocations: 1.699 MB / 468.3 MB, free: 105.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.934e-06/0.6369, allocations: 3.5 kB / 468.3 MB, free: 105.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002906/0.6399, allocations: 0.6768 MB / 469 MB, free: 105.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004889/0.6404, allocations: 199.4 kB / 469.2 MB, free: 105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004618/0.645, allocations: 3.703 MB / 472.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.645, allocations: 0 / 472.9 MB, free: 101.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.6461, allocations: 1.041 MB / 473.9 MB, free: 100.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001605/0.6477, allocations: 256.1 kB / 474.1 MB, free: 100.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006693/0.6544, allocations: 5.694 MB / 479.8 MB, free: 94.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.656, allocations: 2.242 MB / 482.1 MB, free: 92.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002555/0.6585, allocations: 1.32 MB / 483.4 MB, free: 91.14 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.6589, allocations: 167.3 kB / 483.6 MB, free: 90.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6589, allocations: 0 / 483.6 MB, free: 90.98 MB / 382.1 MB Notification: Performance of Templates: time 0.03523/0.6942, allocations: 23.95 MB / 0.4956 GB, free: 67.07 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)