Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001738/0.001737, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002083/0.002083, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.368/1.368, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001195/0.001195, allocations: 59.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1975/0.1987, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01184/0.2106, allocations: 12.32 MB / 337.6 MB, free: 7.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007977/0.2186, allocations: 4.441 MB / 342.1 MB, free: 3.109 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001385/0.22, allocations: 79.75 kB / 342.2 MB, free: 3.031 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004711/0.2247, allocations: 2.904 MB / 345.1 MB, free: 120 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00434/0.2291, allocations: 2.031 MB / 347.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001934/0.231, allocations: 1.045 MB / 348.1 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006595/0.2377, allocations: 5.331 MB / 353.5 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005557/0.2432, allocations: 4.047 MB / 357.5 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003975/0.2473, allocations: 1.76 MB / 359.3 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00312/0.2504, allocations: 2.399 MB / 361.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000707/0.2511, allocations: 384 kB / 362 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002217/0.2534, allocations: 1.26 MB / 363.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00183/0.2552, allocations: 2.19 MB / 365.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002499/0.2577, allocations: 2.474 MB / 368 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007208/0.2649, allocations: 7.75 MB / 375.7 MB, free: 1.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.265, allocations: 4 kB / 375.7 MB, free: 1.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.025e-06/0.265, allocations: 4 kB / 375.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.2651, allocations: 0 / 375.7 MB, free: 1.301 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01001/0.2751, allocations: 5.373 MB / 381.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.2752, allocations: 8.031 kB / 381.1 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02646/0.3017, allocations: 3.197 MB / 384.3 MB, free: 8.633 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008229/0.3099, allocations: 3.669 MB / 388 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001816/0.3102, allocations: 254.2 kB / 388.2 MB, free: 4.656 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008207/0.311, allocations: 335.7 kB / 388.5 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01714/0.3281, allocations: 10.35 MB / 398.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001714/0.3284, allocations: 55.47 kB / 398.9 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004994/0.3289, allocations: 159.8 kB / 399.1 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003317/0.3322, allocations: 2.03 MB / 401.1 MB, free: 7.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/0.348, allocations: 8.903 MB / 410 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04663/0.3947, allocations: 39.82 MB / 449.9 MB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008439/0.4032, allocations: 4.064 MB / 453.9 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1449/0.5482, allocations: 2.235 MB / 456.2 MB, free: 110.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007392/0.5489, allocations: 0.6471 MB / 456.8 MB, free: 109.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.414e-05/0.549, allocations: 56.16 kB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=175): time 5.801e-06/0.549, allocations: 0.5625 kB / 456.9 MB, free: 109.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=210): time 0.05461/0.6036, allocations: 22.95 MB / 479.8 MB, free: 97.79 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.153e-05/0.6038, allocations: 252.6 kB / 480.1 MB, free: 97.49 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004623/0.6084, allocations: 4.271 MB / 484.3 MB, free: 93.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002589/0.6087, allocations: 53.64 kB / 484.4 MB, free: 93.15 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001305/0.61, allocations: 3.202 MB / 487.6 MB, free: 89.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005431/0.6105, allocations: 0.8039 MB / 488.4 MB, free: 89.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.6118, allocations: 1.285 MB / 489.7 MB, free: 87.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.111e-05/0.6118, allocations: 301.1 kB / 490 MB, free: 87.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002703/0.6145, allocations: 2.558 MB / 492.5 MB, free: 85.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003753/0.6183, allocations: 6.128 MB / 498.7 MB, free: 77.16 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007291/0.6256, allocations: 9.288 MB / 0.496 GB, free: 66.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.877e-05/0.6257, allocations: 37 kB / 0.4961 GB, free: 66.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.01608/0.6417, allocations: 10.76 MB / 0.5066 GB, free: 55.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.847e-05/0.6419, allocations: 56 kB / 0.5066 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.883e-05/0.642, allocations: 127.9 kB / 0.5068 GB, free: 55.13 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006501/0.6485, allocations: 2.621 MB / 0.5093 GB, free: 52.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003754/0.6522, allocations: 1.361 MB / 0.5106 GB, free: 51.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01929/0.6716, allocations: 18.59 MB / 0.5288 GB, free: 32.14 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005144/0.6767, allocations: 379.2 kB / 0.5292 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007525/0.6775, allocations: 368 kB / 0.5295 GB, free: 31.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (731): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,34,87.5%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.003047/0.6806, allocations: 2.235 MB / 0.5317 GB, free: 29.16 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007266/0.6813, allocations: 379 kB / 0.5321 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008594/0.6899, allocations: 5.156 MB / 0.5371 GB, free: 23.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/0.69, allocations: 24.28 kB / 0.5371 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.298e-05/0.69, allocations: 8 kB / 0.5371 GB, free: 23.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.69, allocations: 7.969 kB / 0.5371 GB, free: 23.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/0.7066, allocations: 11.12 MB / 0.548 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.7066, allocations: 4 kB / 0.548 GB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001312/0.7079, allocations: 299.5 kB / 0.5483 GB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004543/0.7125, allocations: 1.862 MB / 0.5501 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002012/0.7127, allocations: 35.98 kB / 0.5501 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01123/0.7239, allocations: 10.39 MB / 0.5603 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.724, allocations: 0 / 0.5603 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/0.7379, allocations: 8.335 MB / 0.5684 GB, free: 7.305 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002064/0.74, allocations: 0.7733 MB / 0.5692 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006211/0.7406, allocations: 32 kB / 0.5692 GB, free: 6.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001724/0.7423, allocations: 143.8 kB / 0.5693 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004444/0.7428, allocations: 128.7 kB / 0.5695 GB, free: 6.211 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/0.743, allocations: 52 kB / 0.5695 GB, free: 6.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004098/0.7471, allocations: 2.684 MB / 0.5721 GB, free: 3.469 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7471, allocations: 4 kB / 0.5721 GB, free: 3.465 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005497/0.7526, allocations: 1.204 MB / 0.5733 GB, free: 2.266 MB / 398.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 (157): * Single equations (assignments): 153 * 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,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004349/0.753, allocations: 177.2 kB / 0.5735 GB, free: 2.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01294/0.766, allocations: 8.036 MB / 0.5813 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.766, allocations: 0 / 0.5813 GB, free: 10.06 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00327/0.7693, allocations: 2.237 MB / 0.5835 GB, free: 7.812 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.7726, allocations: 0.5598 MB / 0.5841 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01743/0.7901, allocations: 10.85 MB / 0.5946 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003803/0.7939, allocations: 3.527 MB / 0.5981 GB, free: 8.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.1635/0.9574, allocations: 1.928 MB / 0.6 GB, free: 139.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.9588, allocations: 256.4 kB / 0.6002 GB, free: 139.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.202e-06/0.9588, allocations: 0.5312 kB / 0.6002 GB, free: 139.3 MB / 430.1 MB Notification: Performance of Templates: time 0.07582/1.035, allocations: 52.89 MB / 0.6519 GB, free: 103.2 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)