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.005252/0.005252, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001182/0.001182, allocations: 199.7 kB / 16.68 MB, free: 5.93 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.349/1.349, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001259/0.001259, allocations: 50.97 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08253/0.0838, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01189/0.09573, allocations: 10.45 MB / 383.6 MB, free: 6.809 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008279/0.104, allocations: 3.965 MB / 387.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001814/0.106, allocations: 67.75 kB / 387.7 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004601/0.1106, allocations: 2.207 MB / 389.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0062/0.1168, allocations: 1.907 MB / 391.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002535/0.1194, allocations: 0.7409 MB / 392.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007469/0.1269, allocations: 4.839 MB / 397.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003657/0.1305, allocations: 2.901 MB / 400.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.1329, allocations: 1.495 MB / 401.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.1358, allocations: 2.048 MB / 403.8 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008164/0.1366, allocations: 300 kB / 404.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002347/0.139, allocations: 1.19 MB / 405.3 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002206/0.1412, allocations: 1.874 MB / 407.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00276/0.144, allocations: 2.07 MB / 409.2 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006454/0.1504, allocations: 6.692 MB / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1505, allocations: 0 / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1505, allocations: 0 / 415.9 MB, free: 6.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001143/0.1506, allocations: 4 kB / 415.9 MB, free: 6.367 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.01158/0.1622, allocations: 4.678 MB / 420.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/0.1623, allocations: 12.03 kB / 420.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03238/0.1947, allocations: 3.088 MB / 423.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008114/0.2028, allocations: 3.444 MB / 427.1 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000157/0.203, allocations: 197 kB / 427.3 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007792/0.2038, allocations: 267.8 kB / 427.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01514/0.219, allocations: 8.855 MB / 436.5 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.2191, allocations: 47.56 kB / 436.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005008/0.2196, allocations: 131.9 kB / 436.6 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002879/0.2225, allocations: 1.774 MB / 438.4 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.2363, allocations: 7.784 MB / 446.2 MB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2347/0.4711, allocations: 35.86 MB / 482 MB, free: 42.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007302/0.4784, allocations: 3.825 MB / 485.9 MB, free: 40.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002327/0.4808, allocations: 2.149 MB / 488 MB, free: 39.72 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003699/0.4812, allocations: 335.8 kB / 488.3 MB, free: 39.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.4812, allocations: 50.72 kB / 488.4 MB, free: 39.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.238e-06/0.4812, allocations: 3.969 kB / 488.4 MB, free: 39.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04885/0.5301, allocations: 21.46 MB / 0.4979 GB, free: 23.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/0.5302, allocations: 248.6 kB / 0.4981 GB, free: 22.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004583/0.5348, allocations: 3.958 MB / 0.502 GB, free: 18.85 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002163/0.535, allocations: 53.7 kB / 0.5021 GB, free: 18.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.5362, allocations: 2.769 MB / 0.5048 GB, free: 16.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006021/0.5368, allocations: 0.7317 MB / 0.5055 GB, free: 15.3 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001437/0.5383, allocations: 1.174 MB / 0.5066 GB, free: 14.12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.428e-05/0.5383, allocations: 301.1 kB / 0.5069 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002669/0.541, allocations: 2.385 MB / 0.5092 GB, free: 11.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003724/0.5447, allocations: 5.649 MB / 0.5148 GB, free: 4.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008901/0.5536, allocations: 8.567 MB / 0.5231 GB, free: 10 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-05/0.5537, allocations: 32 kB / 0.5232 GB, free: 9.973 MB / 398.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01679/0.5705, allocations: 9.621 MB / 0.5326 GB, free: 348 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.346e-05/0.5707, allocations: 55.94 kB / 0.5326 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/0.5708, allocations: 116 kB / 0.5327 GB, free: 176 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005511/0.5763, allocations: 2.021 MB / 0.5347 GB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004302/0.5807, allocations: 1.283 MB / 0.5359 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01622/0.5969, allocations: 11.35 MB / 0.547 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004737/0.6017, allocations: 339.4 kB / 0.5474 GB, free: 1.039 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001052/0.6028, allocations: 340 kB / 0.5477 GB, free: 0.707 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.003586/0.6064, allocations: 1.947 MB / 0.5496 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008368/0.6072, allocations: 343.6 kB / 0.5499 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009838/0.6171, allocations: 4.891 MB / 0.5547 GB, free: 9.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.262e-05/0.6171, allocations: 23.2 kB / 0.5547 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.256e-05/0.6172, allocations: 12 kB / 0.5547 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.6172, allocations: 11.91 kB / 0.5547 GB, free: 9.457 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/0.636, allocations: 10.01 MB / 0.5645 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-05/0.636, allocations: 4 kB / 0.5645 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.6373, allocations: 271.6 kB / 0.5648 GB, free: 15.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005255/0.6426, allocations: 1.85 MB / 0.5666 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002194/0.6429, allocations: 28 kB / 0.5666 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01421/0.6571, allocations: 10.4 MB / 0.5768 GB, free: 2.719 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.6571, allocations: 4.031 kB / 0.5768 GB, free: 2.715 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/0.6702, allocations: 7.96 MB / 0.5845 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/0.6719, allocations: 0.7229 MB / 0.5852 GB, free: 9.988 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007927/0.6728, allocations: 31.94 kB / 0.5853 GB, free: 9.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001939/0.6747, allocations: 135.8 kB / 0.5854 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003864/0.6751, allocations: 117 kB / 0.5855 GB, free: 9.707 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.6753, allocations: 44 kB / 0.5855 GB, free: 9.664 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00447/0.6798, allocations: 2.504 MB / 0.588 GB, free: 7.18 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.6798, allocations: 0 / 0.588 GB, free: 7.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005033/0.6848, allocations: 1.071 MB / 0.589 GB, free: 6.117 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.0005326/0.6854, allocations: 173.5 kB / 0.5892 GB, free: 5.941 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009002/0.6944, allocations: 5.826 MB / 0.5949 GB, free: 132 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.6944, allocations: 0 / 0.5949 GB, free: 132 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002986/0.6974, allocations: 2.089 MB / 0.5969 GB, free: 14.03 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00287/0.7003, allocations: 477.5 kB / 0.5974 GB, free: 13.57 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01674/0.717, allocations: 9.447 MB / 0.6066 GB, free: 4.086 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004938/0.722, allocations: 3.087 MB / 0.6096 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004723/0.7268, allocations: 1.819 MB / 0.6114 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.7279, allocations: 247.3 kB / 0.6116 GB, free: 14.9 MB / 494.1 MB Notification: Performance of SimCode: time 7.01e-07/0.7279, allocations: 0 / 0.6116 GB, free: 14.9 MB / 494.1 MB Notification: Performance of Templates: time 0.2613/0.9892, allocations: 42.33 MB / 0.653 GB, free: 154.1 MB / 494.1 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)