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.001579/0.001579, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00181/0.00181, allocations: 193.2 kB / 16.25 MB, free: 6.625 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.334/1.334, allocations: 205.1 MB / 222.1 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.00129/0.00129, allocations: 55.94 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2037/0.205, allocations: 46.63 MB / 324.9 MB, free: 1.906 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03271/0.2378, allocations: 38.42 MB / 363.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0164/0.2542, allocations: 8.57 MB / 371.8 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005472/0.2598, allocations: 167.6 kB / 372 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003734/0.2635, allocations: 2.108 MB / 374.1 MB, free: 2.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003746/0.2673, allocations: 1.736 MB / 375.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00124/0.2685, allocations: 0.706 MB / 376.6 MB, free: 224 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005493/0.274, allocations: 5.076 MB / 381.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003061/0.2771, allocations: 3.047 MB / 384.7 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.2788, allocations: 1.522 MB / 386.2 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002252/0.2811, allocations: 2.298 MB / 388.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003938/0.2815, allocations: 300 kB / 388.8 MB, free: 3.906 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.2832, allocations: 1.186 MB / 390 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.2846, allocations: 1.894 MB / 391.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001644/0.2863, allocations: 2.094 MB / 394 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005335/0.2916, allocations: 6.527 MB / 400.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2916, allocations: 0 / 400.5 MB, free: 8.168 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2916, allocations: 4 kB / 400.5 MB, free: 8.164 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.709e-05/0.2918, allocations: 0 / 400.5 MB, free: 8.164 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.009787/0.3015, allocations: 4.682 MB / 405.2 MB, free: 3.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.3016, allocations: 12.03 kB / 405.2 MB, free: 3.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0256/0.3272, allocations: 3.081 MB / 408.3 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007247/0.3345, allocations: 3.374 MB / 411.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.3347, allocations: 205 kB / 411.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007036/0.3354, allocations: 263.8 kB / 412.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01317/0.3486, allocations: 8.859 MB / 421 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001074/0.3487, allocations: 51.5 kB / 421 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003483/0.349, allocations: 131.9 kB / 421.1 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002864/0.3519, allocations: 1.77 MB / 422.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.3672, allocations: 7.78 MB / 430.7 MB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2112/0.5785, allocations: 36.04 MB / 466.7 MB, free: 90.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007205/0.5857, allocations: 3.82 MB / 470.6 MB, free: 89.88 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.5877, allocations: 2.153 MB / 472.7 MB, free: 89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.588, allocations: 330.6 kB / 473 MB, free: 88.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.5881, allocations: 49.94 kB / 473.1 MB, free: 88.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.087e-06/0.5881, allocations: 4.562 kB / 473.1 MB, free: 88.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04659/0.6347, allocations: 21.44 MB / 494.5 MB, free: 73.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.741e-05/0.6348, allocations: 263.5 kB / 494.8 MB, free: 73.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00379/0.6386, allocations: 3.95 MB / 498.7 MB, free: 69.29 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002162/0.6388, allocations: 49.7 kB / 498.8 MB, free: 69.24 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.6398, allocations: 2.788 MB / 0.4898 GB, free: 66.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004667/0.6403, allocations: 0.7227 MB / 0.4905 GB, free: 65.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001122/0.6414, allocations: 1.171 MB / 0.4917 GB, free: 64.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.778e-05/0.6415, allocations: 301.1 kB / 0.4919 GB, free: 64.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/0.6438, allocations: 2.383 MB / 0.4943 GB, free: 61.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003512/0.6474, allocations: 5.641 MB / 0.4998 GB, free: 54.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006639/0.654, allocations: 8.571 MB / 0.5082 GB, free: 44.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-05/0.6541, allocations: 32 kB / 0.5082 GB, free: 44.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01357/0.6677, allocations: 9.635 MB / 0.5176 GB, free: 34.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.767e-05/0.6678, allocations: 52 kB / 0.5176 GB, free: 34.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.837e-05/0.6679, allocations: 115.9 kB / 0.5178 GB, free: 34.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004632/0.6725, allocations: 2.034 MB / 0.5197 GB, free: 32.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00346/0.676, allocations: 1.283 MB / 0.521 GB, free: 31.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.6875, allocations: 11.35 MB / 0.5321 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004125/0.6916, allocations: 335.5 kB / 0.5324 GB, free: 19.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/0.6921, allocations: 340 kB / 0.5327 GB, free: 19.33 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.00217/0.6943, allocations: 1.947 MB / 0.5346 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004612/0.6947, allocations: 347.5 kB / 0.535 GB, free: 17.03 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007545/0.7023, allocations: 4.893 MB / 0.5397 GB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.7023, allocations: 20.86 kB / 0.5398 GB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.7023, allocations: 8 kB / 0.5398 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.7024, allocations: 7.969 kB / 0.5398 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01315/0.7155, allocations: 10.04 MB / 0.5496 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.944e-06/0.7155, allocations: 0 / 0.5496 GB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.7166, allocations: 271.7 kB / 0.5498 GB, free: 1.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004566/0.7212, allocations: 1.858 MB / 0.5517 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001557/0.7214, allocations: 28 kB / 0.5517 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01303/0.7344, allocations: 10.39 MB / 0.5618 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.7344, allocations: 8.016 kB / 0.5618 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/0.7461, allocations: 7.966 MB / 0.5696 GB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001458/0.7476, allocations: 0.723 MB / 0.5703 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004243/0.748, allocations: 31.52 kB / 0.5703 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.7495, allocations: 139.7 kB / 0.5705 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003457/0.7499, allocations: 109.2 kB / 0.5706 GB, free: 12.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001363/0.75, allocations: 44 kB / 0.5706 GB, free: 12.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003156/0.7532, allocations: 2.508 MB / 0.5731 GB, free: 9.758 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7532, allocations: 0 / 0.5731 GB, free: 9.758 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003823/0.757, allocations: 1.065 MB / 0.5741 GB, free: 8.695 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.0003637/0.7574, allocations: 165.1 kB / 0.5743 GB, free: 8.531 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009496/0.7669, allocations: 6.878 MB / 0.581 GB, free: 1.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.7669, allocations: 0 / 0.581 GB, free: 1.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00268/0.7696, allocations: 2.096 MB / 0.583 GB, free: 15.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002445/0.7721, allocations: 466.1 kB / 0.5835 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01505/0.7871, allocations: 11.33 MB / 0.5946 GB, free: 3.734 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003151/0.7903, allocations: 3.103 MB / 0.5976 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004263/0.7946, allocations: 1.815 MB / 0.5994 GB, free: 14.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007006/0.7953, allocations: 235.3 kB / 0.5996 GB, free: 14.55 MB / 446.1 MB Notification: Performance of SimCode: time 1.383e-06/0.7953, allocations: 4 kB / 0.5996 GB, free: 14.54 MB / 446.1 MB Notification: Performance of Templates: time 0.2249/1.02, allocations: 45.24 MB / 0.6438 GB, free: 145.9 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)