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.001049/0.001049, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.008929/0.008929, allocations: 172.4 kB / 16.27 MB, free: 6.648 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.318/1.318, allocations: 205.4 MB / 222.4 MB, free: 5.809 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.0004301/0.0004301, allocations: 14.81 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2014, allocations: 47.58 MB / 327 MB, free: 1.273 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03227/0.2337, allocations: 37.34 MB / 364.4 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02045/0.2542, allocations: 8.602 MB / 373 MB, free: 5.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005273/0.2595, allocations: 167.6 kB / 373.1 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009917/0.2605, allocations: 390.1 kB / 373.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003638/0.2642, allocations: 1.756 MB / 375.3 MB, free: 2.887 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.2655, allocations: 0.6904 MB / 376 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007055/0.2726, allocations: 6.73 MB / 382.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005393/0.278, allocations: 3.879 MB / 386.6 MB, free: 7.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001874/0.2799, allocations: 1.155 MB / 387.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002458/0.2824, allocations: 1.982 MB / 389.7 MB, free: 4.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003566/0.2827, allocations: 132 kB / 389.8 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001807/0.2845, allocations: 1.08 MB / 390.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00141/0.286, allocations: 1.691 MB / 392.6 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.2877, allocations: 1.888 MB / 394.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008545/0.2963, allocations: 6.236 MB / 400.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.936e-06/0.2964, allocations: 0 / 400.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.2964, allocations: 0 / 400.7 MB, free: 9.281 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001955/0.2966, allocations: 0 / 400.7 MB, free: 9.281 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.008588/0.3052, allocations: 3.887 MB / 404.6 MB, free: 5.324 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.3052, allocations: 12.03 kB / 404.6 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02719/0.3324, allocations: 3.163 MB / 407.8 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007387/0.3399, allocations: 3.374 MB / 411.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.3401, allocations: 205 kB / 411.4 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006363/0.3407, allocations: 271.8 kB / 411.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.3538, allocations: 8.882 MB / 420.5 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001156/0.354, allocations: 51.5 kB / 420.6 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003487/0.3544, allocations: 127.9 kB / 420.7 MB, free: 4.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003056/0.3574, allocations: 1.762 MB / 422.5 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01372/0.3712, allocations: 7.811 MB / 430.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2094/0.5806, allocations: 36.05 MB / 466.3 MB, free: 89.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007117/0.5877, allocations: 3.811 MB / 470.1 MB, free: 89.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/0.5897, allocations: 2.159 MB / 472.3 MB, free: 88.52 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002874/0.59, allocations: 330.1 kB / 472.6 MB, free: 88.23 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/0.59, allocations: 56.44 kB / 472.7 MB, free: 88.18 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.447e-06/0.59, allocations: 0 / 472.7 MB, free: 88.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04893/0.639, allocations: 21.44 MB / 494.1 MB, free: 73.49 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/0.6391, allocations: 262 kB / 494.4 MB, free: 73.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004385/0.6435, allocations: 3.954 MB / 498.3 MB, free: 69.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/0.6438, allocations: 55.34 kB / 498.4 MB, free: 69.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.645, allocations: 2.78 MB / 0.4894 GB, free: 66.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005321/0.6455, allocations: 0.7221 MB / 0.4901 GB, free: 65.7 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004761/0.646, allocations: 0.4948 MB / 0.4906 GB, free: 65.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.866e-05/0.646, allocations: 301.1 kB / 0.4909 GB, free: 64.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/0.6486, allocations: 2.381 MB / 0.4932 GB, free: 62.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00389/0.6525, allocations: 5.645 MB / 0.4987 GB, free: 55.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006774/0.6593, allocations: 8.572 MB / 0.5071 GB, free: 45.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.262e-05/0.6593, allocations: 32 kB / 0.5071 GB, free: 45.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01377/0.6731, allocations: 9.628 MB / 0.5165 GB, free: 35.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.854e-05/0.6732, allocations: 56 kB / 0.5166 GB, free: 35.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.713e-05/0.6733, allocations: 112 kB / 0.5167 GB, free: 35.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004783/0.6781, allocations: 2.026 MB / 0.5187 GB, free: 33.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003469/0.6816, allocations: 1.283 MB / 0.5199 GB, free: 32.17 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/0.6934, allocations: 10.6 MB / 0.5303 GB, free: 21.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/0.6976, allocations: 347.4 kB / 0.5306 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005396/0.6982, allocations: 337.4 kB / 0.5309 GB, free: 20.77 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.002547/0.7007, allocations: 1.94 MB / 0.5328 GB, free: 18.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.7013, allocations: 351.5 kB / 0.5332 GB, free: 18.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00838/0.7097, allocations: 4.895 MB / 0.5379 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.7097, allocations: 20 kB / 0.538 GB, free: 13.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/0.7097, allocations: 8 kB / 0.538 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.958e-05/0.7098, allocations: 7.969 kB / 0.538 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01458/0.7244, allocations: 10.05 MB / 0.5478 GB, free: 3.434 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.7244, allocations: 4.062 kB / 0.5478 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.7256, allocations: 267.2 kB / 0.548 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004662/0.7303, allocations: 1.84 MB / 0.5498 GB, free: 1.328 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001791/0.7305, allocations: 29.09 kB / 0.5499 GB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/0.744, allocations: 9.718 MB / 0.5594 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.744, allocations: 0 / 0.5594 GB, free: 7.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01354/0.7576, allocations: 7.952 MB / 0.5671 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001938/0.7596, allocations: 0.7346 MB / 0.5678 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004496/0.76, allocations: 28.62 kB / 0.5679 GB, free: 14.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001575/0.7616, allocations: 136.7 kB / 0.568 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/0.762, allocations: 113.1 kB / 0.5681 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001467/0.7622, allocations: 49.09 kB / 0.5682 GB, free: 14.38 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003729/0.7659, allocations: 2.508 MB / 0.5706 GB, free: 11.89 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7659, allocations: 0 / 0.5706 GB, free: 11.89 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004393/0.7703, allocations: 1.066 MB / 0.5716 GB, free: 10.83 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.0004323/0.7708, allocations: 169.1 kB / 0.5718 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008848/0.7796, allocations: 5.803 MB / 0.5775 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.7796, allocations: 0.5 kB / 0.5775 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/0.7826, allocations: 2.092 MB / 0.5795 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00321/0.7858, allocations: 447.4 kB / 0.5799 GB, free: 2.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.017/0.8028, allocations: 11.43 MB / 0.5911 GB, free: 6.836 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003422/0.8063, allocations: 3.091 MB / 0.5941 GB, free: 3.715 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004645/0.8109, allocations: 1.819 MB / 0.5959 GB, free: 1.887 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007591/0.8117, allocations: 243.4 kB / 0.5961 GB, free: 1.648 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8117, allocations: 0 / 0.5961 GB, free: 1.648 MB / 430.1 MB Notification: Performance of Templates: time 0.25/1.062, allocations: 42.67 MB / 0.6378 GB, free: 150.6 MB / 446.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)