Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001504/0.001504, 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.001665/0.001665, allocations: 193.8 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.464/1.464, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001341/0.001341, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2188, allocations: 46.62 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009032/0.2279, allocations: 7.674 MB / 333 MB, free: 11.82 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006768/0.2347, allocations: 3.291 MB / 336.3 MB, free: 8.922 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009391/0.2357, allocations: 39.88 kB / 336.3 MB, free: 8.883 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001986/0.2377, allocations: 1.031 MB / 337.3 MB, free: 7.848 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.2406, allocations: 1.343 MB / 338.7 MB, free: 6.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.2417, allocations: 0.5496 MB / 339.2 MB, free: 5.949 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002804/0.2445, allocations: 2.594 MB / 341.8 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001457/0.246, allocations: 1.394 MB / 343.2 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009485/0.2469, allocations: 0.8407 MB / 344.1 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001236/0.2482, allocations: 1.156 MB / 345.2 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002655/0.2485, allocations: 148 kB / 345.4 MB, free: 15.78 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.25, allocations: 0.9009 MB / 346.3 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008541/0.2509, allocations: 1.048 MB / 347.3 MB, free: 13.83 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00106/0.252, allocations: 1.25 MB / 348.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004006/0.256, allocations: 3.948 MB / 352.5 MB, free: 8.609 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.256, allocations: 4 kB / 352.5 MB, free: 8.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.256, allocations: 3.938 kB / 352.5 MB, free: 8.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.122e-05/0.2561, allocations: 0 / 352.5 MB, free: 8.602 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.004863/0.2609, allocations: 2.999 MB / 355.5 MB, free: 5.543 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.261, allocations: 12.03 kB / 355.5 MB, free: 5.531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005081/0.2661, allocations: 1.569 MB / 357.1 MB, free: 3.957 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002408/0.2685, allocations: 1.453 MB / 358.6 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.505e-05/0.2686, allocations: 130.9 kB / 358.7 MB, free: 2.328 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002954/0.2689, allocations: 155.9 kB / 358.8 MB, free: 2.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008624/0.2775, allocations: 6.53 MB / 365.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.463e-05/0.2776, allocations: 27.75 kB / 365.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002224/0.2778, allocations: 83.89 kB / 365.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002567/0.2804, allocations: 1.468 MB / 366.9 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.2909, allocations: 5.834 MB / 372.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0304/0.3213, allocations: 25.78 MB / 398.6 MB, free: 9.199 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00549/0.3269, allocations: 2.541 MB / 401.1 MB, free: 6.512 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00146/0.3284, allocations: 1.211 MB / 402.3 MB, free: 5.289 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007192/0.3356, allocations: 4.823 MB / 407.1 MB, free: 372 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.533e-05/0.3357, allocations: 38.56 kB / 407.2 MB, free: 324 kB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 6.111e-06/0.3357, allocations: 0 / 407.2 MB, free: 324 kB / 334.1 MB Notification: Performance of matching and sorting (n=105): time 0.02462/0.3603, allocations: 9.814 MB / 417 MB, free: 6.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.829e-05/0.3605, allocations: 137 kB / 417.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004042/0.3645, allocations: 2.714 MB / 419.8 MB, free: 3.461 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003251/0.3649, allocations: 41.7 kB / 419.9 MB, free: 3.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001546/0.3664, allocations: 2.056 MB / 421.9 MB, free: 1.328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000467/0.3669, allocations: 426.7 kB / 422.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009783/0.3679, allocations: 0.8331 MB / 423.2 MB, free: 60 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.368, allocations: 305.1 kB / 423.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001987/0.37, allocations: 1.445 MB / 424.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/0.3737, allocations: 4.073 MB / 429 MB, free: 8.902 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006662/0.3804, allocations: 5.957 MB / 434.9 MB, free: 1.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.026e-05/0.3805, allocations: 28 kB / 435 MB, free: 1.605 MB / 366.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01135/0.3918, allocations: 6.031 MB / 441 MB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.809e-05/0.3919, allocations: 48.91 kB / 441.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-05/0.392, allocations: 92 kB / 441.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0024/0.3944, allocations: 0.8201 MB / 442 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002747/0.3972, allocations: 0.9552 MB / 442.9 MB, free: 9.648 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005901/0.4031, allocations: 4.652 MB / 447.6 MB, free: 4.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003163/0.4063, allocations: 248 kB / 447.8 MB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004538/0.4068, allocations: 264 kB / 448.1 MB, free: 4.359 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.002216/0.409, allocations: 1.368 MB / 449.4 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004335/0.4094, allocations: 225.1 kB / 449.7 MB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004324/0.4138, allocations: 2.134 MB / 451.8 MB, free: 0.6016 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-05/0.4138, allocations: 15.98 kB / 451.8 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/0.4139, allocations: 7.938 kB / 451.8 MB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.4139, allocations: 3.984 kB / 451.8 MB, free: 0.5742 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.204/0.6179, allocations: 5.071 MB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.6179, allocations: 1.094 kB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007599/0.6187, allocations: 164.6 kB / 457.1 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002033/0.6207, allocations: 0.6809 MB / 457.7 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.46e-05/0.6208, allocations: 19.44 kB / 457.8 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004241/0.6251, allocations: 4.144 MB / 461.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.6251, allocations: 8.844 kB / 461.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005685/0.6308, allocations: 4.052 MB / 466 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009182/0.6317, allocations: 447.4 kB / 466.4 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002507/0.632, allocations: 22.92 kB / 466.4 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009265/0.6329, allocations: 72.23 kB / 466.5 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001859/0.6331, allocations: 55.55 kB / 466.5 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.67e-05/0.6332, allocations: 37 kB / 466.6 MB, free: 105.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002318/0.6355, allocations: 1.705 MB / 468.3 MB, free: 105.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6355, allocations: 0 / 468.3 MB, free: 105.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00296/0.6385, allocations: 0.6733 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.0004322/0.639, allocations: 196.8 kB / 469.2 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004498/0.6435, allocations: 3.714 MB / 472.9 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.6435, allocations: 0 / 472.9 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001142/0.6446, allocations: 1.033 MB / 473.9 MB, free: 100.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002093/0.6467, allocations: 260.1 kB / 474.2 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007366/0.6541, allocations: 5.689 MB / 479.8 MB, free: 94.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001492/0.6556, allocations: 2.252 MB / 482.1 MB, free: 92.26 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002493/0.6581, allocations: 1.317 MB / 483.4 MB, free: 90.94 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003548/0.6585, allocations: 167.4 kB / 483.6 MB, free: 90.77 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6585, allocations: 0 / 483.6 MB, free: 90.77 MB / 382.1 MB Notification: Performance of Templates: time 0.03336/0.6919, allocations: 23.94 MB / 0.4956 GB, free: 66.87 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)