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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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/Modelica 3.1.0+maint.om/package.mo): time 0.8262/0.8262, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00178/0.00178, allocations: 151.5 kB / 149.1 MB, free: 0.957 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.814e-05/1.817e-05, allocations: 8 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03832/0.03836, allocations: 25.17 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.183, allocations: 46.32 MB / 251.7 MB, free: 42.16 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001702/0.1832, allocations: 75.48 kB / 251.8 MB, free: 42.15 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5149/0.6981, allocations: 158.5 MB / 410.3 MB, free: 24.4 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6982, allocations: 0 / 410.3 MB, free: 24.4 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002277/0.6984, allocations: 96 kB / 410.4 MB, free: 24.3 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1772 * Number of variables: 1772 Notification: Performance of Generate backend data structure: time 0.02384/0.7222, allocations: 7.03 MB / 417.4 MB, free: 17.2 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.7223, allocations: 8.031 kB / 417.4 MB, free: 17.2 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2461/0.9684, allocations: 24.82 MB / 442.2 MB, free: 30.94 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/0.9869, allocations: 7.496 MB / 449.7 MB, free: 30.59 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003817/0.9873, allocations: 372.5 kB / 450.1 MB, free: 30.58 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004159/0.9915, allocations: 491.8 kB / 450.6 MB, free: 30.57 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03391/1.025, allocations: 16.44 MB / 467 MB, free: 28.04 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000186/1.026, allocations: 35.56 kB / 467 MB, free: 28.03 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001725/1.027, allocations: 223.3 kB / 467.3 MB, free: 27.9 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.03459/1.062, allocations: 8.26 MB / 475.5 MB, free: 27.63 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02866/1.091, allocations: 17.34 MB / 492.9 MB, free: 16.54 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5185/1.609, allocations: 109.4 MB / 0.5882 GB, free: 6.75 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009467/1.619, allocations: 5.666 MB / 0.5937 GB, free: 2.398 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003678/1.622, allocations: 3.293 MB / 0.5969 GB, free: 336 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004982/1.623, allocations: 353.9 kB / 0.5972 GB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.423e-05/1.623, allocations: 64.91 kB / 0.5973 GB, free: 15.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=265): time 8.045e-06/1.623, allocations: 0 / 0.5973 GB, free: 15.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=301): time 0.2001/1.823, allocations: 29.12 MB / 0.6257 GB, free: 48.45 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/1.823, allocations: 478 kB / 0.6262 GB, free: 47.91 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006305/1.83, allocations: 4.364 MB / 0.6305 GB, free: 47.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007652/1.83, allocations: 66.12 kB / 0.6305 GB, free: 47.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.833, allocations: 3.527 MB / 0.634 GB, free: 45.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001273/1.834, allocations: 1.103 MB / 0.635 GB, free: 44.98 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005202/1.834, allocations: 138.6 kB / 0.6352 GB, free: 44.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002894/1.835, allocations: 0.6215 MB / 0.6358 GB, free: 44.66 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004854/1.84, allocations: 3.664 MB / 0.6394 GB, free: 44.65 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007722/1.847, allocations: 7.713 MB / 0.6469 GB, free: 39.46 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00738/1.855, allocations: 4.638 MB / 0.6514 GB, free: 38.72 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001866/1.855, allocations: 40.91 kB / 0.6515 GB, free: 38.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=956) (initialization): time 0.02195/1.877, allocations: 12 MB / 0.6632 GB, free: 34.88 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001427/1.877, allocations: 67.91 kB / 0.6632 GB, free: 34.88 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004842/1.878, allocations: 279.7 kB / 0.6635 GB, free: 34.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003969/1.882, allocations: 1.431 MB / 0.6649 GB, free: 34.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005898/1.887, allocations: 1.714 MB / 0.6666 GB, free: 34.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009907/1.897, allocations: 8.447 MB / 0.6748 GB, free: 30.39 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01194/1.909, allocations: 1.709 MB / 0.6765 GB, free: 30.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001956/1.911, allocations: 0.5966 MB / 0.6771 GB, free: 30.18 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 647 * Number of states: 0 () * Number of discrete variables: 27 (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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (873): * Single equations (assignments): 858 * Array equations: 14 * 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 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001994/1.913, allocations: 0.6322 MB / 0.6777 GB, free: 29.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/1.915, allocations: 440.1 kB / 0.6781 GB, free: 29.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008395/1.923, allocations: 4.83 MB / 0.6828 GB, free: 27.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01783/1.941, allocations: 6.637 MB / 0.6893 GB, free: 22.42 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.229e-05/1.941, allocations: 8 kB / 0.6893 GB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.922e-05/1.941, allocations: 16.14 kB / 0.6893 GB, free: 22.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1983/2.139, allocations: 21.83 MB / 0.7107 GB, free: 45.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.287e-05/2.139, allocations: 8.25 kB / 0.7107 GB, free: 45.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002229/2.142, allocations: 437.4 kB / 0.7111 GB, free: 45.24 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003413/2.145, allocations: 1.204 MB / 0.7123 GB, free: 45.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000649/2.146, allocations: 125 kB / 0.7124 GB, free: 45.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009216/2.155, allocations: 7.432 MB / 0.7196 GB, free: 43.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/2.155, allocations: 13.47 kB / 0.7197 GB, free: 43.96 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01658/2.172, allocations: 12.14 MB / 0.7315 GB, free: 41.86 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003614/2.175, allocations: 1.172 MB / 0.7327 GB, free: 41.77 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009954/2.176, allocations: 53.47 kB / 0.7327 GB, free: 41.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007646/2.184, allocations: 1.393 MB / 0.7341 GB, free: 41.77 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004056/2.184, allocations: 189.9 kB / 0.7342 GB, free: 41.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003706/2.185, allocations: 242.2 kB / 0.7345 GB, free: 41.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.00389/2.189, allocations: 3.084 MB / 0.7375 GB, free: 41.55 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/2.189, allocations: 0 / 0.7375 GB, free: 41.55 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.005874/2.195, allocations: 1.382 MB / 0.7388 GB, free: 41.48 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 216 * Array equations: 12 * 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.0005982/2.195, allocations: 207 kB / 0.739 GB, free: 41.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.01163/2.207, allocations: 8.505 MB / 0.7473 GB, free: 38.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.207, allocations: 0 / 0.7473 GB, free: 38.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004903/2.212, allocations: 3.308 MB / 0.7506 GB, free: 37.49 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003252/2.215, allocations: 0.4972 MB / 0.7511 GB, free: 37.27 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/2.232, allocations: 10.89 MB / 0.7617 GB, free: 33.29 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004414/2.237, allocations: 3.99 MB / 0.7656 GB, free: 31.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.008069/2.245, allocations: 2.868 MB / 0.7684 GB, free: 30.49 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002685/2.248, allocations: 0.6281 MB / 0.769 GB, free: 30.01 MB / 266.7 MB Notification: Performance of SimCode: time 8.71e-07/2.248, allocations: 1.094 kB / 0.769 GB, free: 30.01 MB / 266.7 MB Notification: Performance of Templates: time 0.2437/2.491, allocations: 72.81 MB / 0.8401 GB, free: 41.03 MB / 266.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (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)