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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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/Complex 3.2.1+maint.om/package.mo): time 0.008688/0.008688, allocations: 165.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.216/1.216, allocations: 170.8 MB / 186.6 MB, free: 1.027 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001578/0.001578, allocations: 113.6 kB / 226.2 MB, free: 10.09 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004215/0.0004216, allocations: 8 kB / 274.1 MB, free: 10.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.1991, allocations: 38.76 MB / 312.9 MB, free: 38.91 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.3231, allocations: 81.03 MB / 393.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.3235, allocations: 87.95 kB / 394 MB, free: 9.387 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3676/0.6911, allocations: 82.46 MB / 476.5 MB, free: 47.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.6911, allocations: 4 kB / 476.5 MB, free: 47.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001568/0.6913, allocations: 76 kB / 476.5 MB, free: 47.03 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1298 * Number of variables: 1298 Notification: Performance of Generate backend data structure: time 0.01202/0.7033, allocations: 4.332 MB / 480.9 MB, free: 42.62 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.7034, allocations: 8.031 kB / 480.9 MB, free: 42.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02274/0.7262, allocations: 6.598 MB / 487.5 MB, free: 36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01347/0.7397, allocations: 5.851 MB / 493.3 MB, free: 30.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/0.7399, allocations: 270.9 kB / 493.6 MB, free: 29.83 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/0.7412, allocations: 363.8 kB / 494 MB, free: 29.47 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.7549, allocations: 9.089 MB / 0.4913 GB, free: 19.47 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.7551, allocations: 63.38 kB / 0.4913 GB, free: 19.41 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005366/0.7557, allocations: 175.9 kB / 0.4915 GB, free: 19.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009183/0.7566, allocations: 0.8845 MB / 0.4923 GB, free: 18.35 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.7682, allocations: 7.592 MB / 0.4998 GB, free: 10.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2156/0.9838, allocations: 42.17 MB / 0.5409 GB, free: 72.51 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007934/0.9918, allocations: 3.759 MB / 0.5446 GB, free: 71.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004178/0.9923, allocations: 320 kB / 0.5449 GB, free: 71.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.932e-05/0.9924, allocations: 51.91 kB / 0.545 GB, free: 71.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=160): time 5.811e-06/0.9924, allocations: 0 / 0.545 GB, free: 71.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=189): time 0.0472/1.04, allocations: 19.49 MB / 0.564 GB, free: 68.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.815e-05/1.04, allocations: 256.5 kB / 0.5643 GB, free: 68.43 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005845/1.046, allocations: 3.46 MB / 0.5676 GB, free: 68.13 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005194/1.046, allocations: 48.95 kB / 0.5677 GB, free: 68.1 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001817/1.048, allocations: 2.83 MB / 0.5704 GB, free: 66.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009446/1.049, allocations: 0.7131 MB / 0.5711 GB, free: 66.29 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/1.049, allocations: 108 kB / 0.5712 GB, free: 66.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002552/1.049, allocations: 0.5382 MB / 0.5718 GB, free: 65.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002706/1.052, allocations: 2.078 MB / 0.5738 GB, free: 65.51 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003952/1.056, allocations: 5.297 MB / 0.579 GB, free: 60.49 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003938/1.06, allocations: 3.27 MB / 0.5822 GB, free: 59.39 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.268e-05/1.06, allocations: 31.91 kB / 0.5822 GB, free: 59.39 MB / 346.7 MB Notification: Performance of matching and sorting (n=711) (initialization): time 0.01456/1.075, allocations: 8.392 MB / 0.5904 GB, free: 56.86 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.607e-05/1.075, allocations: 54.56 kB / 0.5904 GB, free: 56.86 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/1.075, allocations: 113.9 kB / 0.5905 GB, free: 56.86 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003503/1.079, allocations: 1.381 MB / 0.5919 GB, free: 56.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003954/1.082, allocations: 1.223 MB / 0.5931 GB, free: 56.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.093, allocations: 8.712 MB / 0.6016 GB, free: 50.46 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00498/1.098, allocations: 318.9 kB / 0.6019 GB, free: 50.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.099, allocations: 329.5 kB / 0.6022 GB, free: 49.88 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 516 * Number of states: 0 () * Number of discrete variables: 27 (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.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 (650): * Single equations (assignments): 646 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004762/1.104, allocations: 1.937 MB / 0.6041 GB, free: 48.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001243/1.105, allocations: 356.2 kB / 0.6044 GB, free: 47.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00731/1.112, allocations: 3.92 MB / 0.6083 GB, free: 44.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.806e-05/1.112, allocations: 20 kB / 0.6083 GB, free: 44.7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/1.112, allocations: 8 kB / 0.6083 GB, free: 44.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/1.112, allocations: 6.516 kB / 0.6083 GB, free: 44.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01567/1.128, allocations: 8.912 MB / 0.617 GB, free: 37.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.541e-05/1.128, allocations: 3.953 kB / 0.617 GB, free: 37.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00122/1.129, allocations: 259.1 kB / 0.6173 GB, free: 37.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003177/1.132, allocations: 1.216 MB / 0.6185 GB, free: 36.41 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000236/1.133, allocations: 31.2 kB / 0.6185 GB, free: 36.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009366/1.142, allocations: 7.869 MB / 0.6262 GB, free: 29.54 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/1.142, allocations: 7.844 kB / 0.6262 GB, free: 29.53 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01029/1.152, allocations: 6.807 MB / 0.6328 GB, free: 23.23 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002164/1.155, allocations: 0.676 MB / 0.6335 GB, free: 22.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000593/1.155, allocations: 36 kB / 0.6335 GB, free: 22.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/1.157, allocations: 113 kB / 0.6336 GB, free: 22.39 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003135/1.157, allocations: 116.8 kB / 0.6337 GB, free: 22.28 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000125/1.157, allocations: 48 kB / 0.6338 GB, free: 22.23 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003408/1.161, allocations: 2.452 MB / 0.6362 GB, free: 19.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.161, allocations: 0 / 0.6362 GB, free: 19.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006078/1.167, allocations: 0.9915 MB / 0.6371 GB, free: 18.82 MB / 346.7 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 (135): * Single equations (assignments): 131 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 31} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005616/1.167, allocations: 171.7 kB / 0.6373 GB, free: 18.64 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007569/1.175, allocations: 5.184 MB / 0.6424 GB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/1.175, allocations: 0 / 0.6424 GB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00283/1.178, allocations: 1.978 MB / 0.6443 GB, free: 11.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002466/1.18, allocations: 446 kB / 0.6447 GB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/1.195, allocations: 10.52 MB / 0.655 GB, free: 0.543 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003507/1.199, allocations: 3.172 MB / 0.6581 GB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004639/1.203, allocations: 1.819 MB / 0.6599 GB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007318/1.204, allocations: 239.4 kB / 0.6601 GB, free: 11.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.193e-06/1.204, allocations: 0 / 0.6601 GB, free: 11.31 MB / 362.7 MB Notification: Performance of Templates: time 0.2207/1.425, allocations: 38.62 MB / 0.6978 GB, free: 99.47 MB / 378.7 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)