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.001157/0.001156, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001032/0.001032, allocations: 198.8 kB / 18.01 MB, free: 5.066 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.395/1.395, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001204/0.001204, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09095/0.09216, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2146/0.3068, allocations: 7.674 MB / 382.2 MB, free: 9.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00606/0.3129, allocations: 3.3 MB / 385.5 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.3142, allocations: 36.28 kB / 385.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002132/0.3163, allocations: 1.031 MB / 386.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003574/0.3199, allocations: 1.342 MB / 387.9 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.3213, allocations: 0.5356 MB / 388.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003825/0.3252, allocations: 2.6 MB / 391 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001866/0.3271, allocations: 1.391 MB / 392.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001413/0.3285, allocations: 0.8383 MB / 393.2 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.3301, allocations: 1.154 MB / 394.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003705/0.3304, allocations: 146.7 kB / 394.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002093/0.3325, allocations: 0.8957 MB / 395.4 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009852/0.3335, allocations: 1.059 MB / 396.5 MB, free: 3.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.3346, allocations: 1.259 MB / 397.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004657/0.3392, allocations: 4.131 MB / 401.9 MB, free: 196 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.3393, allocations: 0 / 401.9 MB, free: 196 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3393, allocations: 0 / 401.9 MB, free: 196 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000108/0.3394, allocations: 4 kB / 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.007327/0.3467, allocations: 3.092 MB / 405 MB, free: 13.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/0.3468, allocations: 9.656 kB / 405 MB, free: 13.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005758/0.3525, allocations: 1.586 MB / 406.6 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.3562, allocations: 1.471 MB / 408 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.3564, allocations: 127.5 kB / 408.2 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003881/0.3568, allocations: 160.8 kB / 408.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.3695, allocations: 6.535 MB / 414.9 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.567e-05/0.3696, allocations: 31.7 kB / 414.9 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/0.3699, allocations: 79.91 kB / 415 MB, free: 6.426 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/0.3723, allocations: 1.476 MB / 416.4 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.3826, allocations: 5.827 MB / 422.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02884/0.4114, allocations: 25.72 MB / 448 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005593/0.4171, allocations: 2.537 MB / 450.5 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.4187, allocations: 1.215 MB / 451.7 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007471/0.4262, allocations: 4.808 MB / 456.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.4263, allocations: 46.48 kB / 456.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.837e-06/0.4263, allocations: 0 / 456.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02434/0.4506, allocations: 9.963 MB / 466.6 MB, free: 1.668 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.4508, allocations: 137 kB / 466.7 MB, free: 1.504 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003416/0.4542, allocations: 2.731 MB / 469.4 MB, free: 14.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4543, allocations: 41.7 kB / 469.5 MB, free: 14.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001252/0.4556, allocations: 2.128 MB / 471.6 MB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004149/0.456, allocations: 460.6 kB / 472 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/0.457, allocations: 0.8339 MB / 472.9 MB, free: 11.26 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.916e-05/0.4571, allocations: 305.1 kB / 473.2 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/0.4591, allocations: 1.445 MB / 474.6 MB, free: 9.504 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003595/0.4627, allocations: 4.073 MB / 478.7 MB, free: 4.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006381/0.4691, allocations: 5.957 MB / 484.7 MB, free: 12.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.598e-05/0.4692, allocations: 28 kB / 484.7 MB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01206/0.4813, allocations: 6.042 MB / 490.7 MB, free: 6.758 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.732e-05/0.4814, allocations: 51.88 kB / 490.8 MB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.504e-05/0.4815, allocations: 92.84 kB / 490.9 MB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002357/0.4839, allocations: 0.8201 MB / 491.7 MB, free: 5.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003316/0.4872, allocations: 0.9474 MB / 492.6 MB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005886/0.4931, allocations: 4.66 MB / 497.3 MB, free: 44 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003586/0.4967, allocations: 243.7 kB / 497.5 MB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005718/0.4973, allocations: 263.9 kB / 497.8 MB, free: 15.55 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.002562/0.4999, allocations: 1.368 MB / 499.2 MB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000492/0.5004, allocations: 238.4 kB / 499.4 MB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/0.5047, allocations: 2.142 MB / 0.4898 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.743e-05/0.5048, allocations: 12 kB / 0.4898 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.5048, allocations: 4 kB / 0.4898 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.5048, allocations: 7.984 kB / 0.4898 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009256/0.5141, allocations: 5.055 MB / 0.4947 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.286e-05/0.5141, allocations: 4 kB / 0.4947 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007988/0.5149, allocations: 167.7 kB / 0.4949 GB, free: 6.449 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.517, allocations: 0.6718 MB / 0.4956 GB, free: 5.773 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.5171, allocations: 23.98 kB / 0.4956 GB, free: 5.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00527/0.5224, allocations: 4.158 MB / 0.4996 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.127e-06/0.5224, allocations: 3.938 kB / 0.4996 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006464/0.5289, allocations: 4.068 MB / 0.5036 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.53, allocations: 467.2 kB / 0.5041 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002655/0.5303, allocations: 12 kB / 0.5041 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000983/0.5312, allocations: 75.95 kB / 0.5041 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.5315, allocations: 60.23 kB / 0.5042 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.163e-05/0.5316, allocations: 32 kB / 0.5042 GB, free: 12.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002669/0.5342, allocations: 1.697 MB / 0.5059 GB, free: 11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5342, allocations: 0 / 0.5059 GB, free: 11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003613/0.5379, allocations: 0.6833 MB / 0.5066 GB, free: 10.31 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.0004983/0.5384, allocations: 198.8 kB / 0.5067 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005317/0.5437, allocations: 3.492 MB / 0.5102 GB, free: 6.613 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5437, allocations: 4 kB / 0.5102 GB, free: 6.609 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.5451, allocations: 1.044 MB / 0.5112 GB, free: 5.555 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00181/0.5469, allocations: 272.6 kB / 0.5114 GB, free: 5.289 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009727/0.5566, allocations: 5.699 MB / 0.517 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.559, allocations: 2.237 MB / 0.5192 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002829/0.5618, allocations: 1.317 MB / 0.5205 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004259/0.5623, allocations: 163.4 kB / 0.5206 GB, free: 11.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5623, allocations: 4 kB / 0.5206 GB, free: 11.78 MB / 462.1 MB Notification: Performance of Templates: time 0.06102/0.6233, allocations: 21.81 MB / 0.5419 GB, free: 5.938 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)