Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001534/0.001534, allocations: 105.1 kB / 17.05 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 196 kB / 18 MB, free: 5.105 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.423/1.423, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001331/0.001331, allocations: 51.92 kB / 327.9 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1057, allocations: 46.62 MB / 374.5 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2122/0.318, allocations: 7.68 MB / 382.2 MB, free: 9.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008373/0.3264, allocations: 3.297 MB / 385.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.3285, allocations: 39.72 kB / 385.5 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002681/0.3312, allocations: 1.019 MB / 386.5 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004175/0.3354, allocations: 1.347 MB / 387.9 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001781/0.3372, allocations: 0.5358 MB / 388.4 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004809/0.3421, allocations: 2.602 MB / 391 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002534/0.3446, allocations: 1.387 MB / 392.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.3466, allocations: 0.8388 MB / 393.2 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002469/0.3491, allocations: 1.154 MB / 394.4 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006733/0.3498, allocations: 147.4 kB / 394.5 MB, free: 4.281 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/0.3521, allocations: 0.9048 MB / 395.4 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001353/0.3535, allocations: 1.067 MB / 396.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.3554, allocations: 1.253 MB / 397.8 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.3613, allocations: 4.118 MB / 401.9 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.3613, allocations: 0 / 401.9 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd: time 5.009e-06/0.3613, allocations: 1.219 kB / 401.9 MB, free: 192 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002257/0.3616, allocations: 0 / 401.9 MB, free: 192 kB / 318.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.009521/0.3711, allocations: 3.004 MB / 404.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.87e-05/0.3712, allocations: 9.094 kB / 404.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006677/0.3779, allocations: 1.572 MB / 406.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004859/0.3828, allocations: 1.461 MB / 407.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001594/0.3829, allocations: 130.9 kB / 408.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009575/0.3839, allocations: 156.8 kB / 408.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.3973, allocations: 6.537 MB / 414.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.815e-05/0.3975, allocations: 27.72 kB / 414.8 MB, free: 6.652 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004911/0.398, allocations: 83.89 kB / 414.9 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002597/0.4006, allocations: 1.472 MB / 416.3 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01088/0.4115, allocations: 5.838 MB / 422.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03196/0.4435, allocations: 25.66 MB / 447.8 MB, free: 4.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005708/0.4492, allocations: 2.543 MB / 450.4 MB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.4509, allocations: 1.223 MB / 451.6 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008584/0.4595, allocations: 4.807 MB / 456.4 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.01e-05/0.4595, allocations: 43.44 kB / 456.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.168e-06/0.4595, allocations: 0 / 456.4 MB, free: 11.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02421/0.4838, allocations: 9.817 MB / 466.3 MB, free: 1.984 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.4839, allocations: 141 kB / 466.4 MB, free: 1.816 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00402/0.4879, allocations: 2.726 MB / 469.1 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.488, allocations: 33.7 kB / 469.2 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.4893, allocations: 2.048 MB / 471.2 MB, free: 12.95 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004801/0.4898, allocations: 430.6 kB / 471.6 MB, free: 12.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.4911, allocations: 0.8332 MB / 472.5 MB, free: 11.68 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.4912, allocations: 305.1 kB / 472.8 MB, free: 11.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.4933, allocations: 1.449 MB / 474.2 MB, free: 9.922 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003736/0.497, allocations: 4.073 MB / 478.3 MB, free: 4.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0062/0.5032, allocations: 5.961 MB / 484.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.48e-05/0.5033, allocations: 28 kB / 484.3 MB, free: 13.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01052/0.5139, allocations: 6.025 MB / 490.3 MB, free: 7.188 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.649e-05/0.5139, allocations: 47.94 kB / 490.3 MB, free: 7.141 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001353/0.5141, allocations: 96 kB / 490.4 MB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002327/0.5164, allocations: 0.8205 MB / 491.3 MB, free: 6.223 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/0.5195, allocations: 0.9435 MB / 492.2 MB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006127/0.5256, allocations: 4.671 MB / 496.9 MB, free: 476 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003547/0.5292, allocations: 239.6 kB / 497.1 MB, free: 236 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007306/0.5299, allocations: 260.1 kB / 497.4 MB, free: 15.97 MB / 430.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.002995/0.5329, allocations: 1.376 MB / 498.7 MB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000576/0.5335, allocations: 225 kB / 498.9 MB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004478/0.538, allocations: 2.134 MB / 0.4893 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.137e-05/0.5381, allocations: 16 kB / 0.4894 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.5381, allocations: 4 kB / 0.4894 GB, free: 12.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.5381, allocations: 3.984 kB / 0.4894 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/0.5504, allocations: 5.058 MB / 0.4943 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.5504, allocations: 0 / 0.4943 GB, free: 7.055 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008353/0.5513, allocations: 159.7 kB / 0.4945 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.5534, allocations: 0.6834 MB / 0.4951 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001367/0.5536, allocations: 23.92 kB / 0.4951 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005054/0.5586, allocations: 4.152 MB / 0.4992 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5587, allocations: 0 / 0.4992 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006452/0.5651, allocations: 4.067 MB / 0.5032 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/0.5665, allocations: 454 kB / 0.5036 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005463/0.5671, allocations: 16 kB / 0.5036 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.5683, allocations: 71.89 kB / 0.5037 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002028/0.5685, allocations: 60.36 kB / 0.5037 GB, free: 13.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-05/0.5686, allocations: 28 kB / 0.5038 GB, free: 13.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003503/0.5722, allocations: 1.705 MB / 0.5054 GB, free: 11.45 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5722, allocations: 0 / 0.5054 GB, free: 11.45 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004708/0.5769, allocations: 0.6718 MB / 0.5061 GB, free: 10.78 MB / 446.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.0006376/0.5775, allocations: 195 kB / 0.5063 GB, free: 10.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006673/0.5842, allocations: 3.495 MB / 0.5097 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5843, allocations: 0.9375 kB / 0.5097 GB, free: 7.078 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001535/0.5858, allocations: 1.041 MB / 0.5107 GB, free: 6.027 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002755/0.5886, allocations: 260.3 kB / 0.511 GB, free: 5.773 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.6019, allocations: 5.619 MB / 0.5164 GB, free: 112 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003592/0.6055, allocations: 2.241 MB / 0.5186 GB, free: 13.83 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003178/0.6087, allocations: 1.321 MB / 0.5199 GB, free: 12.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005756/0.6093, allocations: 167.3 kB / 0.5201 GB, free: 12.34 MB / 462.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6093, allocations: 0 / 0.5201 GB, free: 12.34 MB / 462.1 MB Notification: Performance of Templates: time 0.04313/0.6524, allocations: 21.66 MB / 0.5412 GB, free: 6.648 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)