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.001101/0.001102, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001019/0.001019, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.281/1.281, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.00146/0.00146, allocations: 55.92 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08361/0.08508, allocations: 46.63 MB / 326.6 MB, free: 4.461 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01098/0.0961, allocations: 10.46 MB / 337.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006896/0.103, allocations: 3.961 MB / 341 MB, free: 5.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008434/0.1039, allocations: 63.81 kB / 341.1 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00369/0.1076, allocations: 2.207 MB / 343.3 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003637/0.1113, allocations: 1.864 MB / 345.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.1126, allocations: 0.7409 MB / 345.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005531/0.1182, allocations: 4.85 MB / 350.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003325/0.1215, allocations: 2.894 MB / 353.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001713/0.1233, allocations: 1.48 MB / 355.1 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002284/0.1255, allocations: 2.052 MB / 357.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004835/0.126, allocations: 300 kB / 357.5 MB, free: 5.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.1279, allocations: 1.178 MB / 358.7 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001497/0.1294, allocations: 1.862 MB / 360.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.1313, allocations: 2.066 MB / 362.6 MB, free: 324 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006286/0.1376, allocations: 6.484 MB / 369.1 MB, free: 9.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1376, allocations: 4 kB / 369.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1376, allocations: 0 / 369.1 MB, free: 9.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.262e-05/0.1377, allocations: 0 / 369.1 MB, free: 9.809 MB / 318.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.008632/0.1464, allocations: 4.682 MB / 373.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.886e-05/0.1465, allocations: 12.03 kB / 373.8 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0268/0.1733, allocations: 3.085 MB / 376.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1503/0.3236, allocations: 3.375 MB / 380.2 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001918/0.3238, allocations: 194.2 kB / 380.4 MB, free: 49.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006574/0.3245, allocations: 277.1 kB / 380.7 MB, free: 49.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01313/0.3376, allocations: 8.857 MB / 389.6 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001206/0.3378, allocations: 50.03 kB / 389.6 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003594/0.3382, allocations: 128.4 kB / 389.7 MB, free: 45.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002753/0.3409, allocations: 1.774 MB / 391.5 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01183/0.3528, allocations: 7.785 MB / 399.3 MB, free: 40.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03015/0.3829, allocations: 36.04 MB / 435.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006901/0.3899, allocations: 3.812 MB / 439.1 MB, free: 16 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/0.3924, allocations: 2.165 MB / 441.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003791/0.3928, allocations: 328 kB / 441.6 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.3929, allocations: 55.61 kB / 441.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=160): time 3.837e-06/0.3929, allocations: 3.938 kB / 441.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=190): time 0.05755/0.4504, allocations: 21.43 MB / 463.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.4506, allocations: 256.5 kB / 463.4 MB, free: 7.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005121/0.4557, allocations: 3.951 MB / 467.3 MB, free: 3.602 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005312/0.4563, allocations: 53.7 kB / 467.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/0.4583, allocations: 2.779 MB / 470.1 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009967/0.4593, allocations: 0.725 MB / 470.9 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00154/0.4609, allocations: 1.174 MB / 472 MB, free: 14.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.728e-05/0.461, allocations: 305.1 kB / 472.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/0.4644, allocations: 2.381 MB / 474.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00552/0.4699, allocations: 5.64 MB / 480.4 MB, free: 4.863 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01026/0.4802, allocations: 8.578 MB / 488.9 MB, free: 10.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-05/0.4803, allocations: 36 kB / 489 MB, free: 10.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01733/0.4977, allocations: 9.62 MB / 498.6 MB, free: 1.031 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.086e-05/0.4978, allocations: 52 kB / 498.6 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/0.4979, allocations: 112 kB / 498.7 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005667/0.5036, allocations: 2.034 MB / 0.489 GB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004079/0.5077, allocations: 1.283 MB / 0.4903 GB, free: 13.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01527/0.523, allocations: 11.35 MB / 0.5014 GB, free: 2.043 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004542/0.5275, allocations: 343.4 kB / 0.5017 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005811/0.5281, allocations: 336 kB / 0.502 GB, free: 1.379 MB / 398.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.00277/0.5309, allocations: 1.951 MB / 0.5039 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005782/0.5315, allocations: 347.5 kB / 0.5043 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009498/0.541, allocations: 4.888 MB / 0.509 GB, free: 10.17 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.362e-05/0.5411, allocations: 23.98 kB / 0.5091 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.5411, allocations: 8 kB / 0.5091 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.989e-05/0.5411, allocations: 7.969 kB / 0.5091 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01761/0.5587, allocations: 10.05 MB / 0.5189 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.5588, allocations: 4.344 kB / 0.5189 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.5601, allocations: 263.6 kB / 0.5191 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005355/0.5655, allocations: 1.858 MB / 0.521 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/0.5657, allocations: 35.94 kB / 0.521 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/0.5801, allocations: 10.39 MB / 0.5311 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.5802, allocations: 7.922 kB / 0.5312 GB, free: 3.277 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1798/0.76, allocations: 7.949 MB / 0.5389 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/0.7619, allocations: 0.7193 MB / 0.5396 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000645/0.7626, allocations: 27.92 kB / 0.5396 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001714/0.7643, allocations: 137.4 kB / 0.5398 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004199/0.7648, allocations: 116.2 kB / 0.5399 GB, free: 142.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/0.7649, allocations: 46.83 kB / 0.5399 GB, free: 142.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004019/0.7689, allocations: 2.501 MB / 0.5424 GB, free: 141.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.769, allocations: 0 / 0.5424 GB, free: 141.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004841/0.7738, allocations: 1.065 MB / 0.5434 GB, free: 141.4 MB / 430.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.0004703/0.7743, allocations: 183.6 kB / 0.5436 GB, free: 141.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009708/0.784, allocations: 6.884 MB / 0.5503 GB, free: 139.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.7841, allocations: 0 / 0.5503 GB, free: 139.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.7866, allocations: 2.093 MB / 0.5524 GB, free: 138.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/0.7894, allocations: 465.8 kB / 0.5528 GB, free: 138.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01368/0.8031, allocations: 9.554 MB / 0.5621 GB, free: 134.3 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002736/0.8059, allocations: 3.096 MB / 0.5652 GB, free: 132.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003774/0.8097, allocations: 1.819 MB / 0.5669 GB, free: 131.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006638/0.8104, allocations: 239 kB / 0.5672 GB, free: 131.2 MB / 430.1 MB Notification: Performance of SimCode: time 8.12e-07/0.8104, allocations: 0 / 0.5672 GB, free: 131.2 MB / 430.1 MB Notification: Performance of Templates: time 0.06147/0.8719, allocations: 45.24 MB / 0.6113 GB, free: 86.86 MB / 430.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)