Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005877/0.005877, allocations: 104.9 kB / 15.73 MB, free: 6.043 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.001116/0.001116, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.348/1.348, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001277/0.001277, allocations: 53.75 kB / 326.6 MB, free: 14.28 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08633, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01129/0.09766, allocations: 10.45 MB / 383.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007953/0.1057, allocations: 3.965 MB / 387.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.108, allocations: 67.75 kB / 387.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004379/0.1124, allocations: 2.204 MB / 389.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005118/0.1175, allocations: 1.907 MB / 391.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002084/0.1196, allocations: 0.7447 MB / 392.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007777/0.1275, allocations: 4.847 MB / 397.4 MB, free: 9.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00433/0.1318, allocations: 2.897 MB / 400.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003073/0.1349, allocations: 1.491 MB / 401.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003534/0.1385, allocations: 2.052 MB / 403.8 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001078/0.1396, allocations: 300 kB / 404.1 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002653/0.1423, allocations: 1.186 MB / 405.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002288/0.1446, allocations: 1.874 MB / 407.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003145/0.1477, allocations: 2.07 MB / 409.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007258/0.155, allocations: 6.696 MB / 415.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.155, allocations: 0 / 415.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.155, allocations: 0 / 415.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001931/0.1552, allocations: 0 / 415.9 MB, free: 6.383 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.009181/0.1644, allocations: 4.686 MB / 420.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1645, allocations: 8.031 kB / 420.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02687/0.1913, allocations: 3.085 MB / 423.7 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008105/0.1995, allocations: 3.44 MB / 427.1 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001428/0.1997, allocations: 197 kB / 427.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00067/0.2003, allocations: 271.8 kB / 427.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01322/0.2136, allocations: 8.855 MB / 436.5 MB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.2137, allocations: 51.55 kB / 436.5 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003557/0.2141, allocations: 127.9 kB / 436.6 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003054/0.2171, allocations: 1.77 MB / 438.4 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01362/0.2308, allocations: 7.78 MB / 446.2 MB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2122/0.443, allocations: 35.87 MB / 482 MB, free: 42.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007436/0.4505, allocations: 3.826 MB / 485.9 MB, free: 40.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/0.4529, allocations: 2.153 MB / 488 MB, free: 39.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003758/0.4533, allocations: 330 kB / 488.3 MB, free: 39.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.4534, allocations: 55.34 kB / 488.4 MB, free: 39.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.739e-06/0.4534, allocations: 0 / 488.4 MB, free: 39.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05168/0.5051, allocations: 21.46 MB / 0.4979 GB, free: 23.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.304e-05/0.5052, allocations: 248.6 kB / 0.4981 GB, free: 22.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004259/0.5094, allocations: 3.958 MB / 0.502 GB, free: 18.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003905/0.5098, allocations: 53.7 kB / 0.5021 GB, free: 18.87 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.511, allocations: 2.776 MB / 0.5048 GB, free: 16.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005289/0.5115, allocations: 0.7316 MB / 0.5055 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001158/0.5127, allocations: 1.17 MB / 0.5066 GB, free: 14.19 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.5127, allocations: 305.1 kB / 0.5069 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002621/0.5154, allocations: 2.385 MB / 0.5092 GB, free: 11.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003658/0.519, allocations: 5.644 MB / 0.5148 GB, free: 4.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008857/0.5279, allocations: 8.563 MB / 0.5231 GB, free: 10.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.576e-05/0.528, allocations: 32 kB / 0.5232 GB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01932/0.5474, allocations: 9.624 MB / 0.5326 GB, free: 424 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.77e-05/0.5475, allocations: 56.94 kB / 0.5326 GB, free: 368 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.5476, allocations: 112 kB / 0.5327 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005845/0.5534, allocations: 2.022 MB / 0.5347 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00428/0.5578, allocations: 1.279 MB / 0.5359 GB, free: 12.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/0.574, allocations: 11.36 MB / 0.547 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0047/0.5787, allocations: 343.5 kB / 0.5474 GB, free: 1.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007099/0.5794, allocations: 338.3 kB / 0.5477 GB, free: 0.7852 MB / 414.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 (688): * Single equations (assignments): 684 * 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,35,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00315/0.5826, allocations: 1.943 MB / 0.5496 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007106/0.5833, allocations: 347.5 kB / 0.5499 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009755/0.5931, allocations: 4.892 MB / 0.5547 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.897e-05/0.5932, allocations: 20 kB / 0.5547 GB, free: 9.555 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/0.5932, allocations: 11.94 kB / 0.5547 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-05/0.5932, allocations: 7.969 kB / 0.5547 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/0.6119, allocations: 10.01 MB / 0.5645 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.801e-05/0.612, allocations: 8.031 kB / 0.5645 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001327/0.6133, allocations: 267.6 kB / 0.5648 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005271/0.6186, allocations: 1.846 MB / 0.5666 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002424/0.6189, allocations: 28 kB / 0.5666 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01388/0.6327, allocations: 10.4 MB / 0.5767 GB, free: 2.797 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.6328, allocations: 4 kB / 0.5767 GB, free: 2.793 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/0.6454, allocations: 7.959 MB / 0.5845 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/0.647, allocations: 0.7191 MB / 0.5852 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000471/0.6475, allocations: 35 kB / 0.5853 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00168/0.6492, allocations: 143.7 kB / 0.5854 GB, free: 9.898 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000401/0.6496, allocations: 112.3 kB / 0.5855 GB, free: 9.789 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/0.6498, allocations: 51.98 kB / 0.5856 GB, free: 9.738 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003543/0.6533, allocations: 2.496 MB / 0.588 GB, free: 7.262 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6533, allocations: 4 kB / 0.588 GB, free: 7.258 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004187/0.6575, allocations: 1.072 MB / 0.589 GB, free: 6.191 MB / 462.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 (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,33,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004136/0.6579, allocations: 169.4 kB / 0.5892 GB, free: 6.023 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008877/0.6668, allocations: 5.829 MB / 0.5949 GB, free: 212 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.655e-06/0.6669, allocations: 0 / 0.5949 GB, free: 212 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.67, allocations: 2.09 MB / 0.5969 GB, free: 14.11 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0034/0.6734, allocations: 474 kB / 0.5974 GB, free: 13.66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01662/0.6901, allocations: 9.447 MB / 0.6066 GB, free: 4.172 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003311/0.6934, allocations: 3.107 MB / 0.6096 GB, free: 1.035 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004031/0.6975, allocations: 1.815 MB / 0.6114 GB, free: 15.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007987/0.6983, allocations: 235.4 kB / 0.6116 GB, free: 14.98 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6983, allocations: 4 kB / 0.6116 GB, free: 14.98 MB / 494.1 MB Notification: Performance of Templates: time 0.2391/0.9374, allocations: 42.33 MB / 0.653 GB, free: 154.3 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)