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.001658/0.001658, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001757/0.001757, allocations: 191 kB / 18 MB, free: 5.207 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.405/1.405, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.001908/0.001908, allocations: 51.92 kB / 327.9 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1247, allocations: 46.62 MB / 374.5 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2197/0.3444, allocations: 7.668 MB / 382.2 MB, free: 9.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008066/0.3525, allocations: 3.299 MB / 385.5 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001759/0.3544, allocations: 39.31 kB / 385.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002287/0.3567, allocations: 1.031 MB / 386.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004383/0.3611, allocations: 1.344 MB / 387.9 MB, free: 6.746 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001536/0.3627, allocations: 0.5379 MB / 388.4 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.3669, allocations: 2.603 MB / 391 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002012/0.3689, allocations: 1.391 MB / 392.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/0.3706, allocations: 0.8386 MB / 393.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001752/0.3724, allocations: 1.153 MB / 394.4 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003752/0.3728, allocations: 149.7 kB / 394.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.375, allocations: 0.8953 MB / 395.4 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001151/0.3762, allocations: 1.057 MB / 396.5 MB, free: 3.711 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.3775, allocations: 1.255 MB / 397.7 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005456/0.383, allocations: 4.118 MB / 401.9 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.383, allocations: 0 / 401.9 MB, free: 236 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.383, allocations: 0 / 401.9 MB, free: 236 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001063/0.3831, allocations: 0 / 401.9 MB, free: 236 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.008174/0.3913, allocations: 3.008 MB / 404.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.011e-05/0.3914, allocations: 9.906 kB / 404.9 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005933/0.3973, allocations: 1.572 MB / 406.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003893/0.4012, allocations: 1.464 MB / 407.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.4014, allocations: 126.1 kB / 408 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000453/0.4018, allocations: 166.6 kB / 408.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01225/0.4141, allocations: 6.528 MB / 414.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.885e-05/0.4142, allocations: 35.66 kB / 414.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002705/0.4145, allocations: 79.91 kB / 414.8 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002559/0.417, allocations: 1.468 MB / 416.3 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.4281, allocations: 5.834 MB / 422.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03071/0.4589, allocations: 25.68 MB / 447.8 MB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005786/0.4647, allocations: 2.541 MB / 450.4 MB, free: 2.145 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.4664, allocations: 1.215 MB / 451.6 MB, free: 0.918 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008365/0.4748, allocations: 4.807 MB / 456.4 MB, free: 12.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.4748, allocations: 38.56 kB / 456.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.798e-06/0.4749, allocations: 0 / 456.4 MB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02593/0.5008, allocations: 9.82 MB / 466.2 MB, free: 1.996 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/0.5009, allocations: 137 kB / 466.4 MB, free: 1.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003518/0.5044, allocations: 2.722 MB / 469.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001215/0.5046, allocations: 37.7 kB / 469.1 MB, free: 15.04 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.5059, allocations: 2.044 MB / 471.2 MB, free: 12.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000411/0.5063, allocations: 434.7 kB / 471.6 MB, free: 12.54 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.5073, allocations: 0.8331 MB / 472.4 MB, free: 11.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.238e-05/0.5074, allocations: 305.1 kB / 472.7 MB, free: 11.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00199/0.5094, allocations: 1.441 MB / 474.2 MB, free: 9.945 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/0.513, allocations: 4.077 MB / 478.3 MB, free: 4.539 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006782/0.5198, allocations: 5.961 MB / 484.2 MB, free: 13.27 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.82e-05/0.5199, allocations: 28 kB / 484.2 MB, free: 13.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01181/0.5318, allocations: 6.029 MB / 490.3 MB, free: 7.203 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.882e-05/0.5319, allocations: 51.92 kB / 490.3 MB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001043/0.532, allocations: 96 kB / 490.4 MB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002421/0.5344, allocations: 0.8169 MB / 491.2 MB, free: 6.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002901/0.5373, allocations: 0.9513 MB / 492.2 MB, free: 5.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005886/0.5432, allocations: 4.657 MB / 496.8 MB, free: 500 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003386/0.5466, allocations: 243.6 kB / 497.1 MB, free: 256 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000532/0.5472, allocations: 264 kB / 497.3 MB, free: 15.99 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.002269/0.5495, allocations: 1.364 MB / 498.7 MB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004658/0.5499, allocations: 229 kB / 498.9 MB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004334/0.5543, allocations: 2.146 MB / 0.4893 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/0.5543, allocations: 12 kB / 0.4893 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.5543, allocations: 4 kB / 0.4893 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.239e-05/0.5543, allocations: 3.984 kB / 0.4893 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.5644, allocations: 5.066 MB / 0.4943 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.5645, allocations: 0 / 0.4943 GB, free: 7.062 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008035/0.5653, allocations: 159.8 kB / 0.4944 GB, free: 6.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/0.5675, allocations: 0.6834 MB / 0.4951 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.5676, allocations: 16 kB / 0.4951 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005487/0.5731, allocations: 4.156 MB / 0.4992 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.5731, allocations: 0 / 0.4992 GB, free: 1.906 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006634/0.5798, allocations: 4.059 MB / 0.5032 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.5811, allocations: 450 kB / 0.5036 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002787/0.5814, allocations: 15.98 kB / 0.5036 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001048/0.5824, allocations: 84.17 kB / 0.5037 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.5826, allocations: 48.31 kB / 0.5037 GB, free: 13.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.6e-05/0.5827, allocations: 35.98 kB / 0.5038 GB, free: 13.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002688/0.5854, allocations: 1.701 MB / 0.5054 GB, free: 11.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.5855, allocations: 0 / 0.5054 GB, free: 11.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003787/0.5892, allocations: 0.6796 MB / 0.5061 GB, free: 10.79 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.0005043/0.5898, allocations: 195 kB / 0.5063 GB, free: 10.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005131/0.5949, allocations: 3.492 MB / 0.5097 GB, free: 7.094 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.5949, allocations: 4.062 kB / 0.5097 GB, free: 7.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/0.5963, allocations: 1.039 MB / 0.5107 GB, free: 6.039 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001804/0.5981, allocations: 263 kB / 0.511 GB, free: 5.785 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009166/0.6073, allocations: 5.619 MB / 0.5164 GB, free: 124 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/0.6094, allocations: 2.237 MB / 0.5186 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002802/0.6122, allocations: 1.321 MB / 0.5199 GB, free: 12.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.6126, allocations: 163.4 kB / 0.5201 GB, free: 12.37 MB / 462.1 MB Notification: Performance of SimCode: time 3.186e-06/0.6127, allocations: 0 / 0.5201 GB, free: 12.37 MB / 462.1 MB Notification: Performance of Templates: time 0.04711/0.6598, allocations: 21.8 MB / 0.5414 GB, free: 6.527 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)