Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001673/0.001674, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002124/0.002124, allocations: 194.2 kB / 16.13 MB, free: 6.66 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.45/1.45, allocations: 205.1 MB / 222 MB, free: 4.965 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.001307/0.001307, allocations: 52.34 kB / 278.1 MB, free: 12.99 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.25, allocations: 46.62 MB / 324.7 MB, free: 1.969 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01538/0.2655, allocations: 14.11 MB / 338.8 MB, free: 6.164 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.2768, allocations: 4.355 MB / 343.1 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004189/0.281, allocations: 51.88 kB / 343.2 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002356/0.2835, allocations: 0.7632 MB / 344 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003955/0.2875, allocations: 1.219 MB / 345.2 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.2888, allocations: 455.2 kB / 345.6 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004486/0.2933, allocations: 3.456 MB / 349.1 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001705/0.2951, allocations: 1.152 MB / 350.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001218/0.2963, allocations: 0.6652 MB / 350.9 MB, free: 10 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.2978, allocations: 1.199 MB / 352.1 MB, free: 8.801 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002583/0.2981, allocations: 96 kB / 352.2 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.2996, allocations: 0.8891 MB / 353.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008436/0.3004, allocations: 0.9893 MB / 354.1 MB, free: 6.824 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009998/0.3015, allocations: 1.168 MB / 355.2 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003507/0.305, allocations: 3.766 MB / 359 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.305, allocations: 0 / 359 MB, free: 1.871 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.305, allocations: 0 / 359 MB, free: 1.871 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.889e-05/0.3051, allocations: 0 / 359 MB, free: 1.871 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.004689/0.3098, allocations: 2.886 MB / 361.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.3098, allocations: 16.03 kB / 361.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005577/0.3154, allocations: 1.643 MB / 363.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002509/0.3179, allocations: 1.359 MB / 364.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.01e-05/0.318, allocations: 118.8 kB / 365 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/0.3183, allocations: 163.8 kB / 365.2 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008398/0.3267, allocations: 6.363 MB / 371.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.763e-05/0.3268, allocations: 31.75 kB / 371.6 MB, free: 4.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/0.3271, allocations: 79.89 kB / 371.6 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002236/0.3293, allocations: 1.441 MB / 373.1 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.3404, allocations: 5.673 MB / 378.8 MB, free: 13.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03165/0.3721, allocations: 26.31 MB / 405.1 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/0.3765, allocations: 2.266 MB / 407.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.3778, allocations: 1.015 MB / 408.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.683e-05/0.3779, allocations: 11.91 kB / 408.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/0.378, allocations: 50.25 kB / 408.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 3.947e-06/0.378, allocations: 4 kB / 408.4 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02183/0.3998, allocations: 8.599 MB / 417 MB, free: 6.066 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.3999, allocations: 136.5 kB / 417.1 MB, free: 5.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004738/0.4047, allocations: 2.831 MB / 420 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001492/0.4048, allocations: 41.7 kB / 420 MB, free: 3.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/0.4066, allocations: 2.075 MB / 422.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005507/0.4072, allocations: 438.6 kB / 422.5 MB, free: 480 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001369/0.4085, allocations: 0.8847 MB / 423.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4087, allocations: 305.1 kB / 423.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001994/0.4107, allocations: 1.41 MB / 425.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004026/0.4147, allocations: 4.254 MB / 429.4 MB, free: 8.164 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006715/0.4214, allocations: 6.125 MB / 435.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.346e-05/0.4215, allocations: 28 kB / 435.5 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01019/0.4317, allocations: 6.112 MB / 441.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.532e-05/0.4318, allocations: 52.06 kB / 441.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001083/0.4319, allocations: 100 kB / 441.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002292/0.4342, allocations: 0.7966 MB / 442.6 MB, free: 9.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002933/0.4372, allocations: 0.9903 MB / 443.6 MB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005773/0.443, allocations: 4.153 MB / 447.7 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003416/0.4464, allocations: 243.6 kB / 448 MB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007415/0.4472, allocations: 280 kB / 448.2 MB, free: 3.734 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.002679/0.4499, allocations: 1.372 MB / 449.6 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005462/0.4504, allocations: 233.3 kB / 449.8 MB, free: 2.121 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004028/0.4545, allocations: 1.853 MB / 451.7 MB, free: 252 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.961e-05/0.4545, allocations: 12 kB / 451.7 MB, free: 240 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/0.4545, allocations: 4 kB / 451.7 MB, free: 236 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.421e-05/0.4545, allocations: 7.922 kB / 451.7 MB, free: 228 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1964/0.651, allocations: 4.795 MB / 456.5 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.651, allocations: 3.391 kB / 456.5 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006486/0.6517, allocations: 135.5 kB / 456.6 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001966/0.6537, allocations: 0.6475 MB / 457.3 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.6538, allocations: 22.28 kB / 457.3 MB, free: 109.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004152/0.658, allocations: 3.702 MB / 461 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.658, allocations: 0 / 461 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005001/0.663, allocations: 3.684 MB / 464.7 MB, free: 106.3 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.6641, allocations: 435.7 kB / 465.1 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004879/0.6646, allocations: 15.84 kB / 465.1 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.6656, allocations: 67.08 kB / 465.2 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.6658, allocations: 61.95 kB / 465.3 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.6659, allocations: 27.08 kB / 465.3 MB, free: 106.1 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002795/0.6687, allocations: 1.76 MB / 467 MB, free: 105.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6687, allocations: 2.188 kB / 467.1 MB, free: 105.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003314/0.672, allocations: 0.65 MB / 467.7 MB, free: 105.3 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.0002991/0.6723, allocations: 143.3 kB / 467.8 MB, free: 105.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004242/0.6766, allocations: 3.411 MB / 471.3 MB, free: 102.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.6766, allocations: 0 / 471.3 MB, free: 102.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009498/0.6775, allocations: 0.9486 MB / 472.2 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.6793, allocations: 241.2 kB / 472.4 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009577/0.6889, allocations: 6.643 MB / 479.1 MB, free: 94.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/0.6905, allocations: 2.197 MB / 481.3 MB, free: 92.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00287/0.6934, allocations: 1.392 MB / 482.7 MB, free: 91.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.6937, allocations: 163.4 kB / 482.8 MB, free: 91.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.243e-06/0.6937, allocations: 0 / 482.8 MB, free: 91.14 MB / 382.1 MB Notification: Performance of Templates: time 0.03346/0.7272, allocations: 22.13 MB / 0.4931 GB, free: 69.06 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)