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.001507/0.001507, 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.001903/0.001903, allocations: 194.4 kB / 16.14 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.352/1.352, allocations: 205.1 MB / 222 MB, free: 4.746 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.002004/0.002004, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2588, allocations: 46.62 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01522/0.2741, allocations: 14.11 MB / 338.8 MB, free: 6.004 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.285, allocations: 4.351 MB / 343.1 MB, free: 1.641 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00303/0.288, allocations: 55.81 kB / 343.2 MB, free: 1.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002174/0.2903, allocations: 0.7594 MB / 344 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003954/0.2943, allocations: 1.223 MB / 345.2 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.2956, allocations: 455.3 kB / 345.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004662/0.3003, allocations: 3.456 MB / 349.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001969/0.3023, allocations: 1.144 MB / 350.2 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.3035, allocations: 0.6652 MB / 350.9 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001731/0.3052, allocations: 1.199 MB / 352.1 MB, free: 8.648 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003534/0.3056, allocations: 96 kB / 352.2 MB, free: 8.555 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001814/0.3074, allocations: 0.893 MB / 353.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001074/0.3085, allocations: 0.9815 MB / 354.1 MB, free: 6.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.3097, allocations: 1.18 MB / 355.2 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00459/0.3143, allocations: 3.763 MB / 359 MB, free: 1.715 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3144, allocations: 0 / 359 MB, free: 1.715 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3144, allocations: 0 / 359 MB, free: 1.715 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.43e-05/0.3145, allocations: 0 / 359 MB, free: 1.715 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.005786/0.3203, allocations: 2.894 MB / 361.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3203, allocations: 12.03 kB / 361.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006041/0.3264, allocations: 1.643 MB / 363.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003223/0.3296, allocations: 1.355 MB / 364.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001094/0.3298, allocations: 118.8 kB / 365 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003867/0.3302, allocations: 163.8 kB / 365.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0101/0.3403, allocations: 6.363 MB / 371.5 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.973e-05/0.3404, allocations: 27.75 kB / 371.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004854/0.3409, allocations: 83.89 kB / 371.6 MB, free: 4.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002608/0.3435, allocations: 1.437 MB / 373.1 MB, free: 2.992 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.3551, allocations: 5.67 MB / 378.8 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03709/0.3923, allocations: 26.3 MB / 405.1 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004514/0.3968, allocations: 2.27 MB / 407.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001405/0.3983, allocations: 1.015 MB / 408.3 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.068e-05/0.3984, allocations: 19.98 kB / 408.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.806e-05/0.3984, allocations: 46.25 kB / 408.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of pre-optimization done (n=98): time 5.4e-06/0.3985, allocations: 0 / 408.4 MB, free: 14.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=106): time 0.02166/0.4201, allocations: 8.607 MB / 417 MB, free: 5.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.851e-05/0.4202, allocations: 144.5 kB / 417.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004506/0.4248, allocations: 2.835 MB / 420 MB, free: 2.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002273/0.425, allocations: 37.7 kB / 420 MB, free: 2.848 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001683/0.4267, allocations: 2.075 MB / 422.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006205/0.4273, allocations: 438.6 kB / 422.5 MB, free: 316 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001538/0.4289, allocations: 0.8848 MB / 423.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.429, allocations: 301.1 kB / 423.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002312/0.4313, allocations: 1.414 MB / 425.1 MB, free: 13.69 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004144/0.4355, allocations: 4.246 MB / 429.4 MB, free: 8.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007094/0.4426, allocations: 6.125 MB / 435.5 MB, free: 484 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001193/0.4428, allocations: 28 kB / 435.5 MB, free: 456 kB / 366.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01212/0.4549, allocations: 6.119 MB / 441.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.455, allocations: 48 kB / 441.7 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001851/0.4552, allocations: 100 kB / 441.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.4577, allocations: 0.7969 MB / 442.6 MB, free: 9.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003259/0.461, allocations: 0.9864 MB / 443.6 MB, free: 8.379 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005883/0.4669, allocations: 4.157 MB / 447.7 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003487/0.4704, allocations: 239.6 kB / 448 MB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008985/0.4713, allocations: 272 kB / 448.2 MB, free: 3.586 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.002986/0.4743, allocations: 1.384 MB / 449.6 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006527/0.475, allocations: 233 kB / 449.8 MB, free: 1.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/0.4793, allocations: 1.849 MB / 451.7 MB, free: 92 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/0.4793, allocations: 12 kB / 451.7 MB, free: 80 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.562e-05/0.4793, allocations: 7.938 kB / 451.7 MB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.458e-05/0.4794, allocations: 4.359 kB / 451.7 MB, free: 68 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1865/0.6659, allocations: 4.796 MB / 456.5 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.666, allocations: 5.141 kB / 456.5 MB, free: 109.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006681/0.6666, allocations: 138.8 kB / 456.6 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001952/0.6686, allocations: 0.6495 MB / 457.3 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.455e-05/0.6687, allocations: 14.28 kB / 457.3 MB, free: 109.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004226/0.673, allocations: 3.702 MB / 461 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.673, allocations: 3.938 kB / 461 MB, free: 107.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005114/0.6781, allocations: 3.686 MB / 464.7 MB, free: 106.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.6793, allocations: 433.2 kB / 465.1 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000657/0.68, allocations: 17 kB / 465.1 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001407/0.6814, allocations: 62.45 kB / 465.2 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000173/0.6816, allocations: 64.88 kB / 465.3 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.208e-05/0.6817, allocations: 35.3 kB / 465.3 MB, free: 106.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002285/0.684, allocations: 1.759 MB / 467.1 MB, free: 105.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.684, allocations: 2.188 kB / 467.1 MB, free: 105.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003272/0.6873, allocations: 0.6445 MB / 467.7 MB, free: 105.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 (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.0003246/0.6876, allocations: 143.4 kB / 467.8 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004348/0.692, allocations: 3.416 MB / 471.3 MB, free: 102.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.692, allocations: 0 / 471.3 MB, free: 102.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001063/0.6931, allocations: 0.94 MB / 472.2 MB, free: 101.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.695, allocations: 243.2 kB / 472.4 MB, free: 101.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009681/0.7047, allocations: 6.654 MB / 479.1 MB, free: 94.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002195/0.707, allocations: 2.188 MB / 481.3 MB, free: 92.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002983/0.71, allocations: 1.4 MB / 482.7 MB, free: 91.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004863/0.7105, allocations: 159.4 kB / 482.8 MB, free: 91.03 MB / 382.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7105, allocations: 4 kB / 482.8 MB, free: 91.02 MB / 382.1 MB Notification: Performance of Templates: time 0.03703/0.7475, allocations: 22.13 MB / 0.4931 GB, free: 68.94 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)