Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005976/0.005976, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001157/0.001157, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.312/1.312, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001169/0.00117, allocations: 50.27 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08863/0.08981, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01203/0.1019, allocations: 12.32 MB / 385.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009021/0.1109, allocations: 4.434 MB / 389.9 MB, free: 480 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002841/0.1139, allocations: 83.69 kB / 390 MB, free: 396 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005777/0.1197, allocations: 2.9 MB / 392.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005643/0.1254, allocations: 2.086 MB / 395 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002323/0.1277, allocations: 1.049 MB / 396.1 MB, free: 10.33 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007225/0.1349, allocations: 5.331 MB / 401.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005811/0.1408, allocations: 4.055 MB / 405.4 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003642/0.1444, allocations: 1.776 MB / 407.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003841/0.1483, allocations: 2.399 MB / 409.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001181/0.1495, allocations: 384 kB / 410 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002836/0.1523, allocations: 1.256 MB / 411.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002891/0.1553, allocations: 2.205 MB / 413.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004528/0.1598, allocations: 2.486 MB / 415.9 MB, free: 6.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009276/0.1691, allocations: 8.001 MB / 423.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.892e-06/0.1691, allocations: 0 / 423.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1691, allocations: 0 / 423.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002073/0.1694, allocations: 0 / 423.9 MB, free: 14.31 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01192/0.1813, allocations: 5.369 MB / 429.3 MB, free: 8.863 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.1813, allocations: 12.03 kB / 429.3 MB, free: 8.852 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02287/0.2042, allocations: 3.193 MB / 432.5 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008134/0.2124, allocations: 3.742 MB / 436.3 MB, free: 1.848 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.2126, allocations: 258.3 kB / 436.5 MB, free: 1.594 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00112/0.2138, allocations: 331.7 kB / 436.8 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.2295, allocations: 10.35 MB / 447.2 MB, free: 6.246 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001172/0.2296, allocations: 51.58 kB / 447.2 MB, free: 6.195 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000385/0.23, allocations: 155.9 kB / 447.4 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002989/0.233, allocations: 2.026 MB / 449.4 MB, free: 4.012 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1941/0.4272, allocations: 8.89 MB / 458.3 MB, free: 63.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04331/0.4706, allocations: 39.63 MB / 497.9 MB, free: 34.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007568/0.4782, allocations: 4.06 MB / 0.4902 GB, free: 30.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002235/0.4804, allocations: 2.235 MB / 0.4924 GB, free: 28.37 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004877/0.4809, allocations: 0.6472 MB / 0.493 GB, free: 27.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.481, allocations: 53.09 kB / 0.4931 GB, free: 27.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=175): time 4.028e-06/0.481, allocations: 0 / 0.4931 GB, free: 27.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=210): time 0.05307/0.5341, allocations: 22.96 MB / 0.5155 GB, free: 4.488 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.764e-05/0.5342, allocations: 260.6 kB / 0.5158 GB, free: 4.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005797/0.54, allocations: 4.266 MB / 0.5199 GB, free: 15.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003736/0.5404, allocations: 57.7 kB / 0.52 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002184/0.5426, allocations: 3.207 MB / 0.5231 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009403/0.5435, allocations: 0.7932 MB / 0.5239 GB, free: 11.84 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002173/0.5457, allocations: 1.289 MB / 0.5251 GB, free: 10.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.432e-05/0.5458, allocations: 301.1 kB / 0.5254 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003897/0.5497, allocations: 2.55 MB / 0.5279 GB, free: 7.691 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006704/0.5565, allocations: 6.126 MB / 0.5339 GB, free: 15.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/0.5683, allocations: 9.295 MB / 0.543 GB, free: 4.766 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001242/0.5685, allocations: 32 kB / 0.543 GB, free: 4.734 MB / 414.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.02043/0.5889, allocations: 10.76 MB / 0.5535 GB, free: 9.953 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/0.5891, allocations: 60 kB / 0.5536 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001695/0.5892, allocations: 130.8 kB / 0.5537 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00724/0.5965, allocations: 2.603 MB / 0.5563 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004027/0.6005, allocations: 1.349 MB / 0.5576 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02411/0.6247, allocations: 18.6 MB / 0.5757 GB, free: 2.785 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004921/0.6296, allocations: 371.4 kB / 0.5761 GB, free: 2.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001141/0.6308, allocations: 372.7 kB / 0.5764 GB, free: 2.059 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (731): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,34,87.5%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.004468/0.6353, allocations: 2.219 MB / 0.5786 GB, free: 15.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009572/0.6362, allocations: 379.1 kB / 0.579 GB, free: 15.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/0.6465, allocations: 5.156 MB / 0.584 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-05/0.6466, allocations: 24 kB / 0.584 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.898e-05/0.6466, allocations: 8 kB / 0.584 GB, free: 10.24 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.047e-05/0.6466, allocations: 7.969 kB / 0.584 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01996/0.6666, allocations: 11.09 MB / 0.5949 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.6666, allocations: 0 / 0.5949 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001522/0.6682, allocations: 307.5 kB / 0.5952 GB, free: 14.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005132/0.6733, allocations: 1.854 MB / 0.597 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002011/0.6735, allocations: 40 kB / 0.597 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01377/0.6873, allocations: 10.37 MB / 0.6071 GB, free: 2.391 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.6873, allocations: 8.031 kB / 0.6071 GB, free: 2.383 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/0.701, allocations: 8.348 MB / 0.6153 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/0.7031, allocations: 0.7654 MB / 0.616 GB, free: 9.219 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008791/0.7039, allocations: 36 kB / 0.6161 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.706, allocations: 139.8 kB / 0.6162 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004123/0.7065, allocations: 121.1 kB / 0.6163 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001766/0.7067, allocations: 63.92 kB / 0.6164 GB, free: 8.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004792/0.7115, allocations: 2.684 MB / 0.619 GB, free: 6.172 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.7115, allocations: 0 / 0.619 GB, free: 6.172 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005918/0.7174, allocations: 1.21 MB / 0.6202 GB, free: 4.965 MB / 494.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 (157): * Single equations (assignments): 153 * 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 {(3,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005978/0.718, allocations: 173.3 kB / 0.6204 GB, free: 4.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1869/0.9049, allocations: 6.66 MB / 0.6269 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.905, allocations: 0 / 0.6269 GB, free: 162.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003498/0.9085, allocations: 2.239 MB / 0.6291 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/0.9119, allocations: 0.5689 MB / 0.6296 GB, free: 162.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/0.9286, allocations: 10.71 MB / 0.6401 GB, free: 159.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002988/0.9317, allocations: 3.533 MB / 0.6435 GB, free: 157.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003602/0.9353, allocations: 1.921 MB / 0.6454 GB, free: 157.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006139/0.9359, allocations: 254.8 kB / 0.6456 GB, free: 157.6 MB / 494.1 MB Notification: Performance of SimCode: time 8.51e-07/0.9359, allocations: 0 / 0.6456 GB, free: 157.6 MB / 494.1 MB Notification: Performance of Templates: time 0.06538/1.001, allocations: 49.8 MB / 0.6943 GB, free: 115.1 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)