Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001088/0.001088, allocations: 112.1 kB / 17.06 MB, free: 5.969 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.00126/0.00126, allocations: 200 kB / 18.01 MB, free: 5.055 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.332/1.332, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.00112/0.00112, allocations: 43.94 kB / 327.9 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07846/0.07959, allocations: 46.62 MB / 374.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.1806/0.2602, allocations: 10.46 MB / 385 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008688/0.269, allocations: 3.954 MB / 388.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003027/0.2721, allocations: 68.47 kB / 389 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004891/0.277, allocations: 2.201 MB / 391.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006449/0.2835, allocations: 1.858 MB / 393 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.2855, allocations: 0.745 MB / 393.8 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007343/0.2928, allocations: 4.848 MB / 398.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003881/0.2967, allocations: 2.894 MB / 401.5 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002953/0.2997, allocations: 1.5 MB / 403 MB, free: 15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003573/0.3033, allocations: 2.044 MB / 405.1 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009697/0.3043, allocations: 300.9 kB / 405.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002899/0.3072, allocations: 1.188 MB / 406.5 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002342/0.3096, allocations: 1.877 MB / 408.4 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002717/0.3123, allocations: 2.07 MB / 410.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009476/0.3218, allocations: 6.692 MB / 417.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.296e-06/0.3219, allocations: 0 / 417.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.306e-06/0.3219, allocations: 0 / 417.2 MB, free: 4.754 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002464/0.3221, allocations: 0 / 417.2 MB, free: 4.754 MB / 334.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.3337, allocations: 4.69 MB / 421.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3338, allocations: 8.031 kB / 421.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02829/0.3621, allocations: 3.085 MB / 425 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008508/0.3706, allocations: 3.437 MB / 428.4 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.3708, allocations: 205 kB / 428.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001008/0.3719, allocations: 267.7 kB / 428.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.386, allocations: 8.851 MB / 437.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/0.3862, allocations: 51.55 kB / 437.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003686/0.3865, allocations: 135.9 kB / 437.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002975/0.3895, allocations: 1.77 MB / 439.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0146/0.4041, allocations: 7.784 MB / 447.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04612/0.4503, allocations: 35.87 MB / 483.3 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008396/0.4587, allocations: 3.812 MB / 487.1 MB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002828/0.4616, allocations: 2.166 MB / 489.3 MB, free: 10.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005138/0.4621, allocations: 328.2 kB / 489.6 MB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.4622, allocations: 47.61 kB / 489.7 MB, free: 10.16 MB / 414.1 MB Notification: Performance of pre-optimization done (n=160): time 4.308e-06/0.4622, allocations: 0 / 489.7 MB, free: 10.16 MB / 414.1 MB Notification: Performance of matching and sorting (n=190): time 0.06186/0.5241, allocations: 21.45 MB / 0.4991 GB, free: 4.582 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001469/0.5243, allocations: 256.6 kB / 0.4994 GB, free: 4.277 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006517/0.5308, allocations: 3.947 MB / 0.5032 GB, free: 356 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005163/0.5314, allocations: 53.7 kB / 0.5033 GB, free: 296 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001995/0.5334, allocations: 2.783 MB / 0.506 GB, free: 13.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009984/0.5344, allocations: 0.7327 MB / 0.5067 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001597/0.536, allocations: 1.174 MB / 0.5079 GB, free: 11.54 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.608e-05/0.5361, allocations: 305.1 kB / 0.5082 GB, free: 11.24 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003326/0.5394, allocations: 2.381 MB / 0.5105 GB, free: 8.852 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006083/0.5455, allocations: 5.644 MB / 0.516 GB, free: 1.594 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01064/0.5562, allocations: 8.567 MB / 0.5244 GB, free: 7.438 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.423e-05/0.5563, allocations: 32 kB / 0.5244 GB, free: 7.406 MB / 462.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.019/0.5753, allocations: 9.633 MB / 0.5338 GB, free: 13.76 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.644e-05/0.5755, allocations: 52 kB / 0.5339 GB, free: 13.71 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/0.5756, allocations: 112 kB / 0.534 GB, free: 13.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005866/0.5814, allocations: 2.022 MB / 0.5359 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00449/0.586, allocations: 1.283 MB / 0.5372 GB, free: 10.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2066/0.7926, allocations: 11.35 MB / 0.5483 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006202/0.7988, allocations: 347.3 kB / 0.5486 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00193/0.8008, allocations: 338.8 kB / 0.5489 GB, free: 143.1 MB / 478.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.004122/0.8049, allocations: 1.939 MB / 0.5508 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009842/0.8059, allocations: 346.4 kB / 0.5512 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/0.816, allocations: 4.891 MB / 0.5559 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.216e-05/0.8161, allocations: 25.94 kB / 0.556 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.039e-05/0.8162, allocations: 7.781 kB / 0.556 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.678e-05/0.8162, allocations: 9.547 kB / 0.556 GB, free: 141.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02048/0.8367, allocations: 10.01 MB / 0.5657 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.807e-05/0.8367, allocations: 5.578 kB / 0.5657 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001304/0.838, allocations: 264.3 kB / 0.566 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005074/0.8431, allocations: 1.843 MB / 0.5678 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002448/0.8434, allocations: 33.5 kB / 0.5678 GB, free: 138.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.8552, allocations: 10.41 MB / 0.578 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8553, allocations: 0.5469 kB / 0.578 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0116/0.8669, allocations: 7.954 MB / 0.5858 GB, free: 130.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002291/0.8692, allocations: 0.7235 MB / 0.5865 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005999/0.8698, allocations: 31.16 kB / 0.5865 GB, free: 130.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.8716, allocations: 136.6 kB / 0.5866 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/0.872, allocations: 109.2 kB / 0.5867 GB, free: 130.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/0.8721, allocations: 50.81 kB / 0.5868 GB, free: 130.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003432/0.8756, allocations: 2.501 MB / 0.5892 GB, free: 128.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8756, allocations: 0 / 0.5892 GB, free: 128.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005256/0.8809, allocations: 1.076 MB / 0.5903 GB, free: 128.2 MB / 478.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.0004522/0.8813, allocations: 164.8 kB / 0.5904 GB, free: 128 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007452/0.8888, allocations: 5.827 MB / 0.5961 GB, free: 122.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.8888, allocations: 0 / 0.5961 GB, free: 122.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002482/0.8913, allocations: 2.088 MB / 0.5982 GB, free: 120.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.8942, allocations: 470.3 kB / 0.5986 GB, free: 119.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.9091, allocations: 9.456 MB / 0.6078 GB, free: 110.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003061/0.9122, allocations: 3.104 MB / 0.6109 GB, free: 107.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003451/0.9157, allocations: 1.819 MB / 0.6127 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006937/0.9164, allocations: 235.4 kB / 0.6129 GB, free: 105.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.12e-07/0.9164, allocations: 0 / 0.6129 GB, free: 105.1 MB / 478.1 MB Notification: Performance of Templates: time 0.06254/0.9789, allocations: 42.51 MB / 0.6544 GB, free: 62.73 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)