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.0008768/0.0008768, allocations: 86.56 kB / 16.31 MB, free: 6.449 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.0009093/0.0009095, allocations: 184.1 kB / 17.21 MB, free: 6.32 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.366/1.366, allocations: 205.4 MB / 223.4 MB, free: 5.742 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.0004339/0.0004341, allocations: 12 kB / 280.2 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.214/0.2145, allocations: 47.58 MB / 327.7 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03192/0.2464, allocations: 34.77 MB / 362.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01805/0.2645, allocations: 8.19 MB / 370.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008001/0.2726, allocations: 167.6 kB / 370.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00566/0.2782, allocations: 1.769 MB / 372.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.015/0.2933, allocations: 5.514 MB / 378.1 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.2959, allocations: 0.6358 MB / 378.8 MB, free: 356 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.04291/0.3388, allocations: 33.53 MB / 412.3 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006489/0.3454, allocations: 3.513 MB / 415.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.348, allocations: 1.253 MB / 417.1 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00324/0.3513, allocations: 1.979 MB / 419.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008222/0.3521, allocations: 128 kB / 419.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.3544, allocations: 0.9206 MB / 420.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002219/0.3567, allocations: 1.667 MB / 421.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.358, allocations: 0.7727 MB / 422.5 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005413/0.3634, allocations: 5.114 MB / 427.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.3634, allocations: 0 / 427.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3634, allocations: 0 / 427.7 MB, free: 15.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000224/0.3637, allocations: 0 / 427.7 MB, free: 15.33 MB / 366.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.008536/0.3722, allocations: 3.926 MB / 431.6 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3723, allocations: 12.03 kB / 431.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02152/0.3938, allocations: 3.162 MB / 434.8 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007593/0.4014, allocations: 3.319 MB / 438.1 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.4017, allocations: 197 kB / 438.3 MB, free: 4.578 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009854/0.4027, allocations: 267.7 kB / 438.5 MB, free: 4.316 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/0.4187, allocations: 8.859 MB / 447.4 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/0.4189, allocations: 51.5 kB / 447.4 MB, free: 10.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007536/0.4197, allocations: 127.9 kB / 447.6 MB, free: 10.63 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003022/0.4228, allocations: 1.774 MB / 449.3 MB, free: 8.852 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.4378, allocations: 7.772 MB / 457.1 MB, free: 1.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1979/0.6357, allocations: 36.05 MB / 493.2 MB, free: 85.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007045/0.6428, allocations: 3.804 MB / 497 MB, free: 82.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.6451, allocations: 2.156 MB / 499.1 MB, free: 80.65 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003578/0.6455, allocations: 332 kB / 499.4 MB, free: 80.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.266e-05/0.6456, allocations: 55.48 kB / 499.5 MB, free: 80.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.859e-06/0.6456, allocations: 0 / 499.5 MB, free: 80.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04975/0.6953, allocations: 21.42 MB / 0.5087 GB, free: 58.74 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.676e-05/0.6955, allocations: 248.6 kB / 0.5089 GB, free: 58.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004849/0.7003, allocations: 3.939 MB / 0.5128 GB, free: 54.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004124/0.7007, allocations: 51.19 kB / 0.5128 GB, free: 54.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.7022, allocations: 2.787 MB / 0.5156 GB, free: 51.68 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005452/0.7028, allocations: 0.7198 MB / 0.5163 GB, free: 50.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.7031, allocations: 116 kB / 0.5164 GB, free: 50.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002457/0.7033, allocations: 0.5419 MB / 0.5169 GB, free: 50.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002852/0.7062, allocations: 2.365 MB / 0.5192 GB, free: 47.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/0.7104, allocations: 5.616 MB / 0.5247 GB, free: 40.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003946/0.7143, allocations: 3.572 MB / 0.5282 GB, free: 37.12 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.924e-05/0.7144, allocations: 36 kB / 0.5282 GB, free: 37.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01383/0.7282, allocations: 9.565 MB / 0.5376 GB, free: 27.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.156e-05/0.7283, allocations: 52 kB / 0.5376 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.705e-05/0.7284, allocations: 112 kB / 0.5377 GB, free: 27.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004606/0.733, allocations: 2.042 MB / 0.5397 GB, free: 25.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/0.7366, allocations: 1.287 MB / 0.541 GB, free: 24.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01192/0.7485, allocations: 10.53 MB / 0.5513 GB, free: 13.35 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00413/0.7527, allocations: 351.3 kB / 0.5516 GB, free: 13.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006747/0.7534, allocations: 336 kB / 0.5519 GB, free: 12.68 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 (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%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003107/0.7565, allocations: 1.936 MB / 0.5538 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000651/0.7572, allocations: 355 kB / 0.5541 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008021/0.7652, allocations: 4.872 MB / 0.5589 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.604e-05/0.7653, allocations: 24 kB / 0.5589 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.7653, allocations: 8 kB / 0.5589 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-05/0.7653, allocations: 11.97 kB / 0.5589 GB, free: 5.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01811/0.7835, allocations: 10.05 MB / 0.5688 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.7835, allocations: 4 kB / 0.5688 GB, free: 11.35 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.7847, allocations: 267.6 kB / 0.569 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005184/0.7899, allocations: 1.846 MB / 0.5708 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002389/0.7902, allocations: 32 kB / 0.5709 GB, free: 9.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01477/0.805, allocations: 9.7 MB / 0.5803 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/0.805, allocations: 7.969 kB / 0.5803 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01438/0.8194, allocations: 7.918 MB / 0.5881 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001824/0.8213, allocations: 0.7307 MB / 0.5888 GB, free: 6.656 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008052/0.8221, allocations: 32 kB / 0.5888 GB, free: 6.625 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/0.8239, allocations: 139.8 kB / 0.5889 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003502/0.8243, allocations: 117 kB / 0.5891 GB, free: 6.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001516/0.8245, allocations: 48 kB / 0.5891 GB, free: 6.328 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004606/0.8291, allocations: 2.477 MB / 0.5915 GB, free: 3.871 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8291, allocations: 0 / 0.5915 GB, free: 3.871 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004891/0.834, allocations: 1.068 MB / 0.5926 GB, free: 2.809 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 (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%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004803/0.8345, allocations: 168.4 kB / 0.5927 GB, free: 2.641 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.009463/0.8439, allocations: 5.782 MB / 0.5984 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.844, allocations: 0 / 0.5984 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003357/0.8473, allocations: 2.096 MB / 0.6004 GB, free: 10.75 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003196/0.8506, allocations: 441.3 kB / 0.6008 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1786/1.029, allocations: 10.98 MB / 0.6116 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00456/1.034, allocations: 3.096 MB / 0.6146 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004445/1.038, allocations: 1.819 MB / 0.6164 GB, free: 144.3 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007838/1.039, allocations: 242.8 kB / 0.6166 GB, free: 144.3 MB / 430.1 MB Notification: Performance of SimCode: time 8.22e-07/1.039, allocations: 0 / 0.6166 GB, free: 144.3 MB / 430.1 MB Notification: Performance of Templates: time 0.05865/1.098, allocations: 41.8 MB / 0.6574 GB, free: 114.3 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)