Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.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.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.00165/0.00165, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.4 MB / 222.1 MB, free: 5.512 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.000457/0.0004572, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2255, allocations: 47.6 MB / 326.5 MB, free: 1.629 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03264/0.2581, allocations: 32.81 MB / 359.3 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02/0.2782, allocations: 8.512 MB / 367.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006981/0.2852, allocations: 167.6 kB / 367.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00549/0.2908, allocations: 1.602 MB / 369.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01633/0.3071, allocations: 4.901 MB / 374.4 MB, free: 3.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002529/0.3097, allocations: 0.6279 MB / 375.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.03831/0.348, allocations: 26.25 MB / 401.3 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006002/0.3541, allocations: 3.474 MB / 404.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002336/0.3564, allocations: 1.047 MB / 405.8 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002544/0.359, allocations: 1.402 MB / 407.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007732/0.3598, allocations: 132 kB / 407.4 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002154/0.362, allocations: 0.9051 MB / 408.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002131/0.3641, allocations: 1.527 MB / 409.8 MB, free: 72 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.3657, allocations: 0.7844 MB / 410.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00623/0.3719, allocations: 5.426 MB / 416 MB, free: 9.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.372, allocations: 0 / 416 MB, free: 9.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.372, allocations: 0 / 416 MB, free: 9.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002235/0.3722, allocations: 0 / 416 MB, free: 9.84 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1302 * Number of variables: 1302 Notification: Performance of Generate backend data structure: time 0.01218/0.3844, allocations: 4.273 MB / 420.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3845, allocations: 8.031 kB / 420.3 MB, free: 5.488 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1663/0.5508, allocations: 14.45 MB / 434.7 MB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01125/0.5621, allocations: 3.715 MB / 438.5 MB, free: 3.238 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002875/0.5624, allocations: 197 kB / 438.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001637/0.5641, allocations: 275.8 kB / 438.9 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01878/0.5829, allocations: 8.804 MB / 447.7 MB, free: 9.32 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002023/0.5831, allocations: 47.64 kB / 447.8 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001016/0.5842, allocations: 131.8 kB / 447.9 MB, free: 9.145 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003314/0.5875, allocations: 1.77 MB / 449.7 MB, free: 7.367 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2196/0.8071, allocations: 7.607 MB / 457.3 MB, free: 110.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03675/0.8439, allocations: 35.66 MB / 492.9 MB, free: 84.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006969/0.851, allocations: 3.771 MB / 496.7 MB, free: 81.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003604/0.8514, allocations: 328.7 kB / 497 MB, free: 81.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.8514, allocations: 55.5 kB / 497.1 MB, free: 81.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.588e-06/0.8514, allocations: 0 / 497.1 MB, free: 81.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05313/0.9046, allocations: 20.88 MB / 0.5058 GB, free: 60.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.255e-05/0.9047, allocations: 252.6 kB / 0.5061 GB, free: 59.95 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007116/0.9118, allocations: 4.202 MB / 0.5102 GB, free: 55.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005284/0.9124, allocations: 53.7 kB / 0.5102 GB, free: 55.66 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002302/0.9147, allocations: 2.828 MB / 0.513 GB, free: 52.83 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001187/0.9159, allocations: 0.7221 MB / 0.5137 GB, free: 52.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005754/0.9165, allocations: 108 kB / 0.5138 GB, free: 52.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003555/0.9169, allocations: 0.5412 MB / 0.5143 GB, free: 51.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002993/0.9199, allocations: 2.142 MB / 0.5164 GB, free: 49.31 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004285/0.9242, allocations: 5.356 MB / 0.5216 GB, free: 42.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004369/0.9286, allocations: 3.344 MB / 0.5249 GB, free: 38.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.581e-05/0.9287, allocations: 32 kB / 0.5249 GB, free: 38.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01425/0.9429, allocations: 8.593 MB / 0.5333 GB, free: 30.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.9431, allocations: 56.22 kB / 0.5334 GB, free: 30.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001508/0.9432, allocations: 112 kB / 0.5335 GB, free: 30.19 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00394/0.9472, allocations: 1.534 MB / 0.535 GB, free: 28.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003822/0.951, allocations: 1.224 MB / 0.5362 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01126/0.9623, allocations: 9.494 MB / 0.5455 GB, free: 17.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004634/0.967, allocations: 315.5 kB / 0.5458 GB, free: 17.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009569/0.968, allocations: 336 kB / 0.5461 GB, free: 17.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 515 * Number of states: 0 () * Number of discrete variables: 30 (boxBody2.color[3],boxBody2.color[2],boxBody2.color[1],boxBody2.body.sphereColor[3],boxBody2.body.sphereColor[2],boxBody2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],boxBody1.color[3],boxBody1.color[2],boxBody1.color[1],boxBody1.body.sphereColor[3],boxBody1.body.sphereColor[2],boxBody1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (650): * Single equations (assignments): 646 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003581/0.9716, allocations: 1.939 MB / 0.548 GB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008732/0.9725, allocations: 351.4 kB / 0.5483 GB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0072/0.9797, allocations: 4.159 MB / 0.5524 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-05/0.9797, allocations: 20 kB / 0.5524 GB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-05/0.9798, allocations: 8 kB / 0.5524 GB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/0.9798, allocations: 11.97 kB / 0.5524 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01667/0.9965, allocations: 9.327 MB / 0.5615 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/0.9965, allocations: 3.953 kB / 0.5615 GB, free: 1.262 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.9978, allocations: 263.6 kB / 0.5618 GB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003666/1.002, allocations: 1.348 MB / 0.5631 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/1.002, allocations: 35.58 kB / 0.5631 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/1.014, allocations: 8.629 MB / 0.5716 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/1.014, allocations: 4 kB / 0.5716 GB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01233/1.026, allocations: 7.138 MB / 0.5785 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00242/1.029, allocations: 0.7189 MB / 0.5792 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000919/1.03, allocations: 31.95 kB / 0.5793 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002084/1.032, allocations: 127.8 kB / 0.5794 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000387/1.032, allocations: 113.1 kB / 0.5795 GB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001703/1.033, allocations: 44 kB / 0.5795 GB, free: 14.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00529/1.038, allocations: 2.705 MB / 0.5822 GB, free: 11.88 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.61e-07/1.038, allocations: 0 / 0.5822 GB, free: 11.88 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006758/1.045, allocations: 1.032 MB / 0.5832 GB, free: 10.85 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (136): * Single equations (assignments): 132 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009516/1.046, allocations: 180.2 kB / 0.5834 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009842/1.055, allocations: 5.349 MB / 0.5886 GB, free: 5.332 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/1.056, allocations: 0 / 0.5886 GB, free: 5.332 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004084/1.06, allocations: 2.067 MB / 0.5906 GB, free: 3.254 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003076/1.063, allocations: 452.8 kB / 0.591 GB, free: 2.809 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02025/1.083, allocations: 10.67 MB / 0.6014 GB, free: 8.082 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005013/1.088, allocations: 3.191 MB / 0.6046 GB, free: 4.863 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00543/1.094, allocations: 1.827 MB / 0.6063 GB, free: 3.027 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.095, allocations: 243.4 kB / 0.6066 GB, free: 2.789 MB / 430.1 MB Notification: Performance of SimCode: time 1.042e-06/1.095, allocations: 0 / 0.6066 GB, free: 2.789 MB / 430.1 MB Notification: Performance of Templates: time 0.236/1.331, allocations: 40.82 MB / 0.6464 GB, free: 123.2 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1) Environment - environmentSimulation: