Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001235/0.001235, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.454/1.454, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001165/0.001165, allocations: 51.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2182/0.2194, allocations: 46.63 MB / 324.9 MB, free: 1.926 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01455/0.234, allocations: 14.1 MB / 339 MB, free: 5.957 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01094/0.245, allocations: 4.269 MB / 343.2 MB, free: 1.676 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002795/0.2478, allocations: 55.88 kB / 343.3 MB, free: 1.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.2498, allocations: 0.7321 MB / 344 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003533/0.2534, allocations: 1.23 MB / 345.2 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.2546, allocations: 467.2 kB / 345.7 MB, free: 15.2 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003418/0.2581, allocations: 2.559 MB / 348.3 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.2597, allocations: 1.247 MB / 349.5 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000986/0.2607, allocations: 0.7627 MB / 350.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001384/0.2621, allocations: 1.254 MB / 351.5 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002355/0.2623, allocations: 136 kB / 351.7 MB, free: 9.207 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001401/0.2637, allocations: 0.8852 MB / 352.5 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008569/0.2646, allocations: 1.021 MB / 353.6 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001152/0.2657, allocations: 1.223 MB / 354.8 MB, free: 6.066 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004007/0.2698, allocations: 3.829 MB / 358.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.2698, allocations: 0 / 358.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.2698, allocations: 0 / 358.6 MB, free: 2.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.248e-05/0.2699, allocations: 4 kB / 358.6 MB, free: 2.223 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.005035/0.2749, allocations: 2.886 MB / 361.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.917e-05/0.275, allocations: 8.031 kB / 361.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00566/0.2806, allocations: 1.643 MB / 363.1 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002493/0.2831, allocations: 1.371 MB / 364.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2833, allocations: 126.7 kB / 364.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003067/0.2836, allocations: 151.9 kB / 364.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009367/0.293, allocations: 6.359 MB / 371.2 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.965e-05/0.2931, allocations: 31.73 kB / 371.2 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002442/0.2933, allocations: 83.89 kB / 371.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002348/0.2957, allocations: 1.433 MB / 372.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009946/0.3056, allocations: 5.678 MB / 378.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03217/0.3378, allocations: 26.3 MB / 404.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004358/0.3422, allocations: 2.262 MB / 406.9 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001423/0.3437, allocations: 1.019 MB / 408 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.307e-05/0.3438, allocations: 19.92 kB / 408 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/0.3438, allocations: 50.3 kB / 408 MB, free: 15.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.857e-06/0.3439, allocations: 0 / 408 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02195/0.3658, allocations: 8.592 MB / 416.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.366, allocations: 140.5 kB / 416.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005095/0.3711, allocations: 2.839 MB / 419.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002163/0.3713, allocations: 37.7 kB / 419.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001782/0.3731, allocations: 2.083 MB / 421.7 MB, free: 1.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007276/0.3739, allocations: 434.6 kB / 422.1 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001516/0.3754, allocations: 0.8847 MB / 423 MB, free: 15.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.434e-05/0.3755, allocations: 301.1 kB / 423.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.3778, allocations: 1.418 MB / 424.7 MB, free: 14.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004346/0.3821, allocations: 4.242 MB / 429 MB, free: 8.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007075/0.3892, allocations: 6.133 MB / 435.1 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.6e-05/0.3894, allocations: 32.19 kB / 435.1 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01396/0.4033, allocations: 6.104 MB / 441.2 MB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001304/0.4035, allocations: 48 kB / 441.3 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001588/0.4037, allocations: 108.2 kB / 441.4 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002663/0.4063, allocations: 0.8045 MB / 442.2 MB, free: 9.863 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003363/0.4097, allocations: 0.9942 MB / 443.2 MB, free: 8.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006213/0.416, allocations: 4.461 MB / 447.7 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004045/0.4201, allocations: 251.6 kB / 447.9 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008806/0.421, allocations: 276 kB / 448.2 MB, free: 3.754 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (537): * Single equations (assignments): 533 * 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.002792/0.4238, allocations: 1.375 MB / 449.5 MB, free: 2.367 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005749/0.4244, allocations: 232.9 kB / 449.8 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004114/0.4285, allocations: 1.861 MB / 451.6 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.385e-05/0.4286, allocations: 12 kB / 451.6 MB, free: 252 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.287e-05/0.4286, allocations: 7.938 kB / 451.7 MB, free: 244 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.4286, allocations: 3.984 kB / 451.7 MB, free: 240 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1875/0.6161, allocations: 4.789 MB / 456.4 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/0.6161, allocations: 1.188 kB / 456.4 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006829/0.6168, allocations: 130.8 kB / 456.6 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001974/0.6188, allocations: 0.6505 MB / 457.2 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.6189, allocations: 18.12 kB / 457.2 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004974/0.6239, allocations: 3.957 MB / 461.2 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.553e-06/0.624, allocations: 3.969 kB / 461.2 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005301/0.6293, allocations: 3.684 MB / 464.9 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008597/0.6302, allocations: 441.2 kB / 465.3 MB, free: 106 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004384/0.6306, allocations: 23.67 kB / 465.3 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009814/0.6316, allocations: 58.06 kB / 465.4 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.6318, allocations: 57.22 kB / 465.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.205e-05/0.6319, allocations: 36.78 kB / 465.5 MB, free: 105.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003773/0.6357, allocations: 1.759 MB / 467.2 MB, free: 105.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6357, allocations: 3.844 kB / 467.3 MB, free: 105.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004661/0.6404, allocations: 0.6475 MB / 467.9 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 (75): * Single equations (assignments): 71 * 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.0003439/0.6407, allocations: 142.6 kB / 468 MB, free: 105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004998/0.6457, allocations: 3.641 MB / 471.7 MB, free: 102.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.6457, allocations: 0 / 471.7 MB, free: 102.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.6467, allocations: 0.9344 MB / 472.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.6487, allocations: 252.9 kB / 472.9 MB, free: 101 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007967/0.6566, allocations: 6.651 MB / 479.5 MB, free: 94.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002131/0.6588, allocations: 2.187 MB / 481.7 MB, free: 92.19 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002896/0.6617, allocations: 1.403 MB / 483.1 MB, free: 90.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004645/0.6622, allocations: 163.4 kB / 483.3 MB, free: 90.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.6622, allocations: 0 / 483.3 MB, free: 90.62 MB / 382.1 MB Notification: Performance of Templates: time 0.03651/0.6987, allocations: 22.98 MB / 0.4944 GB, free: 67.7 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)