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.001276/0.001281, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001322/0.001322, allocations: 194.6 kB / 16.14 MB, free: 6.672 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.308/1.308, allocations: 205.1 MB / 222 MB, free: 4.754 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.001207/0.001207, allocations: 47.94 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2042/0.2054, allocations: 46.63 MB / 324.7 MB, free: 1.949 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03397/0.2394, allocations: 38.42 MB / 363.1 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01783/0.2573, allocations: 8.66 MB / 371.8 MB, free: 4.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006561/0.2639, allocations: 167.6 kB / 371.9 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004485/0.2684, allocations: 2.19 MB / 374.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004332/0.2728, allocations: 1.732 MB / 375.8 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001469/0.2742, allocations: 0.6904 MB / 376.5 MB, free: 128 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007046/0.2813, allocations: 6.738 MB / 383.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0038/0.2851, allocations: 2.814 MB / 386.1 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00267/0.2878, allocations: 1.315 MB / 387.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003247/0.2911, allocations: 2.192 MB / 389.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008892/0.292, allocations: 200 kB / 389.8 MB, free: 2.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002528/0.2946, allocations: 1.143 MB / 390.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002177/0.2967, allocations: 1.788 MB / 392.7 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002451/0.2992, allocations: 1.98 MB / 394.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.3052, allocations: 6.402 MB / 401.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3053, allocations: 0 / 401.1 MB, free: 7.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3053, allocations: 4 kB / 401.1 MB, free: 7.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.3054, allocations: 0 / 401.1 MB, free: 7.434 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.009476/0.3149, allocations: 4.678 MB / 405.8 MB, free: 2.684 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/0.315, allocations: 15.97 kB / 405.8 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02311/0.3381, allocations: 3.077 MB / 408.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007192/0.3453, allocations: 3.382 MB / 412.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001541/0.3455, allocations: 201 kB / 412.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006908/0.3462, allocations: 271.8 kB / 412.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01285/0.3591, allocations: 8.851 MB / 421.6 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.779e-05/0.3592, allocations: 51.5 kB / 421.6 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003226/0.3595, allocations: 127.9 kB / 421.7 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002768/0.3623, allocations: 1.766 MB / 423.5 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/0.376, allocations: 7.788 MB / 431.3 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2402/0.6163, allocations: 36.04 MB / 467.3 MB, free: 90.57 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.6286, allocations: 3.81 MB / 471.1 MB, free: 89.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003459/0.6321, allocations: 2.155 MB / 473.3 MB, free: 88.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004584/0.6325, allocations: 326.2 kB / 473.6 MB, free: 88.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.633e-05/0.6326, allocations: 52.84 kB / 473.7 MB, free: 88.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 5.44e-06/0.6326, allocations: 1.078 kB / 473.7 MB, free: 88.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05801/0.6906, allocations: 21.45 MB / 495.1 MB, free: 73.4 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/0.6907, allocations: 256.3 kB / 495.4 MB, free: 73.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005185/0.6959, allocations: 3.954 MB / 499.3 MB, free: 69.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003301/0.6963, allocations: 49.7 kB / 499.4 MB, free: 69.11 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.6976, allocations: 2.782 MB / 0.4904 GB, free: 66.34 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000704/0.6983, allocations: 0.7231 MB / 0.4911 GB, free: 65.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001683/0.7, allocations: 1.177 MB / 0.4922 GB, free: 64.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.412e-05/0.7, allocations: 305.1 kB / 0.4925 GB, free: 64.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/0.7029, allocations: 2.388 MB / 0.4949 GB, free: 61.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003959/0.7069, allocations: 5.64 MB / 0.5004 GB, free: 54.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007272/0.7142, allocations: 8.569 MB / 0.5087 GB, free: 44.53 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.143e-05/0.7143, allocations: 32 kB / 0.5088 GB, free: 44.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01597/0.7303, allocations: 9.627 MB / 0.5182 GB, free: 34.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.7304, allocations: 57 kB / 0.5182 GB, free: 34.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001814/0.7306, allocations: 112 kB / 0.5183 GB, free: 34.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004989/0.7356, allocations: 2.026 MB / 0.5203 GB, free: 32.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003835/0.7395, allocations: 1.287 MB / 0.5216 GB, free: 31.37 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0121/0.7516, allocations: 10.58 MB / 0.5319 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/0.7557, allocations: 343.4 kB / 0.5322 GB, free: 20.31 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007733/0.7565, allocations: 336 kB / 0.5326 GB, free: 19.98 MB / 382.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.002753/0.7593, allocations: 1.955 MB / 0.5345 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000718/0.76, allocations: 351.4 kB / 0.5348 GB, free: 17.67 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007976/0.768, allocations: 4.891 MB / 0.5396 GB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/0.7681, allocations: 20 kB / 0.5396 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.297e-05/0.7681, allocations: 8.281 kB / 0.5396 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-05/0.7681, allocations: 7.969 kB / 0.5396 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01532/0.7835, allocations: 10.04 MB / 0.5494 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/0.7835, allocations: 3.938 kB / 0.5494 GB, free: 2.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.7847, allocations: 267.7 kB / 0.5497 GB, free: 2.387 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004608/0.7893, allocations: 1.842 MB / 0.5515 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002306/0.7896, allocations: 36 kB / 0.5515 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01306/0.8027, allocations: 9.707 MB / 0.561 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.8027, allocations: 2.734 kB / 0.561 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01303/0.8157, allocations: 7.954 MB / 0.5688 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/0.8175, allocations: 0.719 MB / 0.5695 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009135/0.8184, allocations: 36 kB / 0.5695 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/0.8203, allocations: 135 kB / 0.5696 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004275/0.8208, allocations: 117 kB / 0.5697 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/0.821, allocations: 55.98 kB / 0.5698 GB, free: 13.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.005557/0.8265, allocations: 2.5 MB / 0.5722 GB, free: 11.11 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.92e-07/0.8266, allocations: 0 / 0.5722 GB, free: 11.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.007488/0.8341, allocations: 1.065 MB / 0.5733 GB, free: 10.05 MB / 414.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.0007589/0.8349, allocations: 169 kB / 0.5734 GB, free: 9.879 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01047/0.8453, allocations: 5.802 MB / 0.5791 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.845e-06/0.8454, allocations: 0 / 0.5791 GB, free: 4.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/0.8488, allocations: 2.093 MB / 0.5811 GB, free: 1.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/0.8528, allocations: 445.4 kB / 0.5816 GB, free: 1.547 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/0.8709, allocations: 11.34 MB / 0.5926 GB, free: 6.164 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004468/0.8754, allocations: 3.095 MB / 0.5957 GB, free: 3.039 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005124/0.8806, allocations: 1.819 MB / 0.5974 GB, free: 1.211 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.8816, allocations: 243.4 kB / 0.5977 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of SimCode: time 2.905e-06/0.8816, allocations: 0 / 0.5977 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of Templates: time 0.2235/1.105, allocations: 43.53 MB / 0.6402 GB, free: 149.4 MB / 446.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)