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.001188/0.001188, allocations: 98.45 kB / 15.05 MB, free: 1.105 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.001447/0.001447, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.0005065/0.0005068, allocations: 8 kB / 278.9 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2891, allocations: 47.6 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01649/0.3056, allocations: 15.47 MB / 341.9 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.3162, allocations: 4.802 MB / 346.7 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003322/0.3196, allocations: 75.81 kB / 346.8 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002619/0.3222, allocations: 0.7115 MB / 347.5 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008576/0.3308, allocations: 2.408 MB / 349.9 MB, free: 11.97 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.3327, allocations: 467 kB / 350.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002984/0.3357, allocations: 1.462 MB / 351.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002315/0.338, allocations: 1.565 MB / 353.4 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00087/0.3389, allocations: 0.6307 MB / 354 MB, free: 7.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009915/0.3399, allocations: 0.8488 MB / 354.9 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.3401, allocations: 80 kB / 355 MB, free: 6.891 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.3415, allocations: 0.7333 MB / 355.7 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007716/0.3423, allocations: 0.9194 MB / 356.6 MB, free: 5.234 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004533/0.3427, allocations: 0.5001 MB / 357.1 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003138/0.3459, allocations: 3.088 MB / 360.2 MB, free: 1.633 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3459, allocations: 0 / 360.2 MB, free: 1.633 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3459, allocations: 0 / 360.2 MB, free: 1.633 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.462e-05/0.346, allocations: 4 kB / 360.2 MB, free: 1.629 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.004748/0.3507, allocations: 2.594 MB / 362.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.166e-05/0.3508, allocations: 8.031 kB / 362.8 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006196/0.357, allocations: 1.9 MB / 364.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003486/0.3605, allocations: 1.624 MB / 366.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.3606, allocations: 127 kB / 366.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.361, allocations: 159.9 kB / 366.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009506/0.3705, allocations: 6.569 MB / 373.2 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.603e-05/0.3706, allocations: 35.66 kB / 373.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.3708, allocations: 83.89 kB / 373.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002299/0.3731, allocations: 1.464 MB / 374.8 MB, free: 2.477 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009918/0.383, allocations: 5.873 MB / 380.6 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02918/0.4122, allocations: 25.82 MB / 406.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005351/0.4176, allocations: 2.588 MB / 409 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007709/0.4254, allocations: 4.854 MB / 413.9 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.4255, allocations: 50.45 kB / 413.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.346e-06/0.4255, allocations: 0 / 413.9 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02222/0.4477, allocations: 10.09 MB / 424 MB, free: 15.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.4478, allocations: 140.9 kB / 424.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003493/0.4513, allocations: 2.836 MB / 427 MB, free: 12.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4515, allocations: 37.7 kB / 427 MB, free: 12.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001166/0.4526, allocations: 2.052 MB / 429.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003864/0.453, allocations: 434.9 kB / 429.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.4532, allocations: 83.94 kB / 429.6 MB, free: 10.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.4534, allocations: 486.9 kB / 430.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001898/0.4554, allocations: 1.429 MB / 431.5 MB, free: 8.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003413/0.4588, allocations: 4.03 MB / 435.5 MB, free: 3.051 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002903/0.4617, allocations: 2.33 MB / 437.9 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-05/0.4617, allocations: 28 kB / 437.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01028/0.472, allocations: 5.97 MB / 443.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.885e-05/0.4721, allocations: 48.2 kB / 443.9 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.727e-05/0.4723, allocations: 100 kB / 444 MB, free: 10.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002237/0.4745, allocations: 0.8279 MB / 444.8 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00314/0.4777, allocations: 0.9435 MB / 445.8 MB, free: 8.789 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005541/0.4832, allocations: 4.43 MB / 450.2 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003039/0.4863, allocations: 247.6 kB / 450.5 MB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004173/0.4867, allocations: 260 kB / 450.7 MB, free: 3.73 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 (498): * Single equations (assignments): 494 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002005/0.4887, allocations: 1.364 MB / 452.1 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.4891, allocations: 229.1 kB / 452.3 MB, free: 2.125 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2054/0.6945, allocations: 2.125 MB / 454.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-05/0.6946, allocations: 13.28 kB / 454.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.6947, allocations: 3.719 kB / 454.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.489e-05/0.6947, allocations: 5.5 kB / 454.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01089/0.7056, allocations: 5.082 MB / 459.5 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.7056, allocations: 1.188 kB / 459.5 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007633/0.7064, allocations: 157.2 kB / 459.7 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/0.7084, allocations: 0.679 MB / 460.4 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.143e-05/0.7085, allocations: 21.09 kB / 460.4 MB, free: 108.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004143/0.7127, allocations: 3.992 MB / 464.4 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.7127, allocations: 0 / 464.4 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005418/0.7181, allocations: 4.149 MB / 468.5 MB, free: 104.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.7192, allocations: 463.4 kB / 469 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.7195, allocations: 21.02 kB / 469 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/0.7204, allocations: 67.25 kB / 469.1 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001597/0.7205, allocations: 59.8 kB / 469.1 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.232e-05/0.7206, allocations: 32.62 kB / 469.2 MB, free: 104.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002165/0.7228, allocations: 1.778 MB / 470.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.7228, allocations: 0 / 470.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002834/0.7256, allocations: 0.6967 MB / 471.6 MB, free: 103.4 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003973/0.7261, allocations: 196.7 kB / 471.8 MB, free: 103.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004027/0.7301, allocations: 3.451 MB / 475.3 MB, free: 100.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.7301, allocations: 384 / 475.3 MB, free: 100.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.7311, allocations: 1.033 MB / 476.3 MB, free: 99.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001204/0.7324, allocations: 236.7 kB / 476.5 MB, free: 99.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008259/0.7406, allocations: 6.643 MB / 483.2 MB, free: 92.92 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001585/0.7423, allocations: 2.297 MB / 485.5 MB, free: 90.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002727/0.745, allocations: 1.322 MB / 486.8 MB, free: 89.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.7454, allocations: 167.4 kB / 487 MB, free: 89.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7454, allocations: 0 / 487 MB, free: 89.1 MB / 382.1 MB Notification: Performance of Templates: time 0.03318/0.7786, allocations: 22.87 MB / 0.4979 GB, free: 66.26 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: