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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001417/0.001417, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.4 MB / 222.1 MB, free: 5.492 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.0005234/0.0005236, allocations: 8 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2091, allocations: 47.58 MB / 326.5 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03141/0.2406, allocations: 34.78 MB / 361.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0169/0.2575, allocations: 8.194 MB / 369.4 MB, free: 8.402 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005288/0.2628, allocations: 171.6 kB / 369.6 MB, free: 8.234 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004694/0.2676, allocations: 1.765 MB / 371.4 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01313/0.2807, allocations: 5.506 MB / 376.9 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002317/0.283, allocations: 0.6358 MB / 377.5 MB, free: 304 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.04343/0.3265, allocations: 33.53 MB / 411.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005779/0.3323, allocations: 3.509 MB / 414.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00242/0.3347, allocations: 1.257 MB / 415.8 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003011/0.3378, allocations: 1.982 MB / 417.8 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007471/0.3385, allocations: 128 kB / 417.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00206/0.3406, allocations: 0.9167 MB / 418.8 MB, free: 6.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.3424, allocations: 1.664 MB / 420.5 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008653/0.3433, allocations: 0.7727 MB / 421.3 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004904/0.3482, allocations: 5.114 MB / 426.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3482, allocations: 0 / 426.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3482, allocations: 0 / 426.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001369/0.3484, allocations: 0 / 426.4 MB, free: 15.28 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.007428/0.3558, allocations: 3.93 MB / 430.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.3558, allocations: 20.02 kB / 430.3 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02158/0.3774, allocations: 3.158 MB / 433.5 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007351/0.3848, allocations: 3.316 MB / 436.8 MB, free: 4.723 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001678/0.385, allocations: 197 kB / 437 MB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008218/0.3858, allocations: 267.7 kB / 437.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01554/0.4014, allocations: 8.863 MB / 446.1 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001774/0.4016, allocations: 47.56 kB / 446.2 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003967/0.402, allocations: 127.9 kB / 446.3 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002898/0.4049, allocations: 1.77 MB / 448.1 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01481/0.4198, allocations: 7.772 MB / 455.8 MB, free: 1.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2071/0.6268, allocations: 36.05 MB / 491.9 MB, free: 85.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0068/0.6337, allocations: 3.813 MB / 495.7 MB, free: 82.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002257/0.636, allocations: 2.16 MB / 497.9 MB, free: 80.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003456/0.6363, allocations: 329.3 kB / 498.2 MB, free: 80.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.6364, allocations: 51.38 kB / 498.2 MB, free: 80.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.018e-06/0.6364, allocations: 0 / 498.2 MB, free: 80.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04632/0.6827, allocations: 21.42 MB / 0.5075 GB, free: 58.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.6828, allocations: 252.6 kB / 0.5077 GB, free: 58.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004042/0.6869, allocations: 3.935 MB / 0.5116 GB, free: 54.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002006/0.6871, allocations: 57.7 kB / 0.5116 GB, free: 54.36 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001299/0.6884, allocations: 2.77 MB / 0.5143 GB, free: 51.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004983/0.6889, allocations: 0.7249 MB / 0.515 GB, free: 50.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002309/0.6891, allocations: 119.2 kB / 0.5151 GB, free: 50.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002244/0.6894, allocations: 0.5458 MB / 0.5157 GB, free: 50.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002668/0.692, allocations: 2.361 MB / 0.518 GB, free: 47.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003681/0.6957, allocations: 5.616 MB / 0.5235 GB, free: 40.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003777/0.6995, allocations: 3.57 MB / 0.527 GB, free: 37.04 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.548e-05/0.6995, allocations: 32 kB / 0.527 GB, free: 37.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01335/0.7129, allocations: 9.568 MB / 0.5363 GB, free: 27.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.519e-05/0.713, allocations: 56 kB / 0.5364 GB, free: 27.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.462e-05/0.7131, allocations: 112 kB / 0.5365 GB, free: 27.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004436/0.7175, allocations: 2.05 MB / 0.5385 GB, free: 25.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003327/0.7208, allocations: 1.283 MB / 0.5397 GB, free: 23.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01152/0.7324, allocations: 10.52 MB / 0.55 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00371/0.7361, allocations: 355.4 kB / 0.5504 GB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000464/0.7366, allocations: 336 kB / 0.5507 GB, free: 12.59 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.002628/0.7392, allocations: 1.946 MB / 0.5526 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005678/0.7398, allocations: 347.5 kB / 0.5529 GB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007999/0.7478, allocations: 4.876 MB / 0.5577 GB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.487e-05/0.7479, allocations: 20 kB / 0.5577 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.723e-05/0.7479, allocations: 11.98 kB / 0.5577 GB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.71e-05/0.7479, allocations: 8.812 kB / 0.5577 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.7656, allocations: 10.05 MB / 0.5675 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.386e-05/0.7657, allocations: 0 / 0.5675 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001431/0.7671, allocations: 263.6 kB / 0.5678 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004972/0.7721, allocations: 1.85 MB / 0.5696 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000262/0.7724, allocations: 28 kB / 0.5696 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01385/0.7862, allocations: 9.708 MB / 0.5791 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.7863, allocations: 0 / 0.5791 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01478/0.801, allocations: 7.93 MB / 0.5868 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002049/0.8031, allocations: 0.726 MB / 0.5876 GB, free: 6.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001007/0.8042, allocations: 28 kB / 0.5876 GB, free: 6.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002007/0.8062, allocations: 139.8 kB / 0.5877 GB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004093/0.8066, allocations: 117.2 kB / 0.5878 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001437/0.8068, allocations: 51.98 kB / 0.5879 GB, free: 6.242 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004103/0.8109, allocations: 2.481 MB / 0.5903 GB, free: 3.781 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.8109, allocations: 0 / 0.5903 GB, free: 3.781 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005501/0.8164, allocations: 1.061 MB / 0.5913 GB, free: 2.723 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.0004874/0.8169, allocations: 176 kB / 0.5915 GB, free: 2.551 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01029/0.8272, allocations: 5.774 MB / 0.5971 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.8272, allocations: 0 / 0.5971 GB, free: 12.78 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003534/0.8308, allocations: 2.093 MB / 0.5992 GB, free: 10.67 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/0.8345, allocations: 449.2 kB / 0.5996 GB, free: 10.24 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1863/1.021, allocations: 10.99 MB / 0.6103 GB, free: 148.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004164/1.025, allocations: 3.096 MB / 0.6134 GB, free: 148 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00428/1.029, allocations: 1.82 MB / 0.6151 GB, free: 148 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007105/1.03, allocations: 239.2 kB / 0.6154 GB, free: 148 MB / 430.1 MB Notification: Performance of SimCode: time 6.61e-07/1.03, allocations: 0 / 0.6154 GB, free: 148 MB / 430.1 MB Notification: Performance of Templates: time 0.05824/1.088, allocations: 41.8 MB / 0.6562 GB, free: 115.6 MB / 430.1 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)