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.008375/0.008375, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001962/0.001962, allocations: 192 kB / 16.67 MB, free: 5.969 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.359/1.359, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001142/0.001142, allocations: 53.73 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07905/0.0802, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01062/0.09085, allocations: 10.45 MB / 383.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007369/0.09825, allocations: 3.957 MB / 387.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001464/0.09978, allocations: 67.75 kB / 387.7 MB, free: 2.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004514/0.1043, allocations: 2.211 MB / 389.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004345/0.1087, allocations: 1.86 MB / 391.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001607/0.1103, allocations: 0.7448 MB / 392.5 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005983/0.1163, allocations: 4.843 MB / 397.3 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003554/0.1199, allocations: 2.893 MB / 400.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002299/0.1222, allocations: 1.483 MB / 401.7 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002887/0.1251, allocations: 2.048 MB / 403.7 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007813/0.1259, allocations: 300 kB / 404 MB, free: 2.297 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.1283, allocations: 1.182 MB / 405.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001983/0.1302, allocations: 1.858 MB / 407.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.1326, allocations: 2.066 MB / 409.1 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006906/0.1395, allocations: 6.724 MB / 415.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.313e-06/0.1395, allocations: 0 / 415.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1395, allocations: 3.938 kB / 415.9 MB, free: 6.418 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001013/0.1396, allocations: 0 / 415.9 MB, free: 6.418 MB / 350.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.008675/0.1483, allocations: 4.8 MB / 420.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/0.1484, allocations: 8.031 kB / 420.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02591/0.1743, allocations: 3.111 MB / 423.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007686/0.182, allocations: 3.457 MB / 427.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/0.1822, allocations: 197 kB / 427.4 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000505/0.1827, allocations: 263.8 kB / 427.7 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/0.1953, allocations: 8.859 MB / 436.6 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.1955, allocations: 51.64 kB / 436.6 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000327/0.1958, allocations: 135.8 kB / 436.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002901/0.1987, allocations: 1.77 MB / 438.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01288/0.2116, allocations: 7.784 MB / 446.3 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2069/0.4186, allocations: 35.92 MB / 482.2 MB, free: 42.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007294/0.4259, allocations: 3.827 MB / 486 MB, free: 40.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002111/0.428, allocations: 2.156 MB / 488.2 MB, free: 39.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003114/0.4284, allocations: 328.4 kB / 488.5 MB, free: 39.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.694e-05/0.4284, allocations: 55.47 kB / 488.6 MB, free: 39.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.649e-06/0.4284, allocations: 0 / 488.6 MB, free: 39.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04878/0.4772, allocations: 21.66 MB / 0.4983 GB, free: 22.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.4774, allocations: 260.6 kB / 0.4985 GB, free: 22.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005038/0.4824, allocations: 3.96 MB / 0.5024 GB, free: 18.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003444/0.4828, allocations: 49.7 kB / 0.5024 GB, free: 18.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.484, allocations: 2.892 MB / 0.5053 GB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005643/0.4846, allocations: 0.761 MB / 0.506 GB, free: 15.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001189/0.4858, allocations: 1.179 MB / 0.5072 GB, free: 14.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.305e-05/0.4859, allocations: 301.1 kB / 0.5074 GB, free: 13.75 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002515/0.4884, allocations: 2.381 MB / 0.5098 GB, free: 11.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003608/0.492, allocations: 5.64 MB / 0.5153 GB, free: 4.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0086/0.5006, allocations: 8.571 MB / 0.5236 GB, free: 9.938 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.961e-05/0.5007, allocations: 39.94 kB / 0.5237 GB, free: 9.898 MB / 398.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01819/0.5189, allocations: 9.644 MB / 0.5331 GB, free: 248 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.906e-05/0.519, allocations: 52 kB / 0.5331 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.5191, allocations: 113.6 kB / 0.5333 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005523/0.5247, allocations: 2.022 MB / 0.5352 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004229/0.5289, allocations: 1.283 MB / 0.5365 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01548/0.5444, allocations: 11.36 MB / 0.5476 GB, free: 1.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004742/0.5492, allocations: 343.5 kB / 0.5479 GB, free: 0.9375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009932/0.5503, allocations: 336 kB / 0.5482 GB, free: 0.6094 MB / 414.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.003456/0.5537, allocations: 1.948 MB / 0.5501 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007979/0.5545, allocations: 361.6 kB / 0.5505 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009716/0.5643, allocations: 4.884 MB / 0.5552 GB, free: 9.395 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.988e-05/0.5643, allocations: 24 kB / 0.5553 GB, free: 9.371 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.5644, allocations: 4 kB / 0.5553 GB, free: 9.367 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.76e-05/0.5644, allocations: 11.97 kB / 0.5553 GB, free: 9.355 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01841/0.5828, allocations: 10.03 MB / 0.5651 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-05/0.5829, allocations: 0 / 0.5651 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.5842, allocations: 267.6 kB / 0.5653 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005351/0.5896, allocations: 1.846 MB / 0.5671 GB, free: 13.17 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003063/0.5899, allocations: 35.94 kB / 0.5672 GB, free: 13.13 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/0.6039, allocations: 10.4 MB / 0.5773 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.6039, allocations: 0 / 0.5773 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/0.6173, allocations: 7.988 MB / 0.5851 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002304/0.6197, allocations: 0.7406 MB / 0.5858 GB, free: 9.824 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005679/0.6203, allocations: 35.92 kB / 0.5859 GB, free: 9.789 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001677/0.6219, allocations: 127.8 kB / 0.586 GB, free: 9.664 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003997/0.6224, allocations: 117 kB / 0.5861 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001524/0.6225, allocations: 51.98 kB / 0.5862 GB, free: 9.496 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003714/0.6262, allocations: 2.504 MB / 0.5886 GB, free: 7.012 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6263, allocations: 0 / 0.5886 GB, free: 7.012 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004662/0.6309, allocations: 1.07 MB / 0.5897 GB, free: 5.941 MB / 462.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.0004393/0.6314, allocations: 167.8 kB / 0.5898 GB, free: 5.773 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008709/0.6401, allocations: 5.825 MB / 0.5955 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.6401, allocations: 0 / 0.5955 GB, free: 15.95 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003001/0.6431, allocations: 2.102 MB / 0.5976 GB, free: 13.85 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.646, allocations: 467.9 kB / 0.598 GB, free: 13.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0153/0.6613, allocations: 9.571 MB / 0.6074 GB, free: 3.77 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003263/0.6646, allocations: 3.106 MB / 0.6104 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003935/0.6686, allocations: 1.823 MB / 0.6122 GB, free: 14.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000738/0.6693, allocations: 235.3 kB / 0.6124 GB, free: 14.57 MB / 494.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6693, allocations: 0 / 0.6124 GB, free: 14.57 MB / 494.1 MB Notification: Performance of Templates: time 0.2412/0.9105, allocations: 42.34 MB / 0.6537 GB, free: 154 MB / 494.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)