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.000777/0.0007772, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004798/0.004798, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.327/1.327, allocations: 205.4 MB / 222.4 MB, free: 5.797 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.0004678/0.0004682, allocations: 12 kB / 279.5 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2065, allocations: 47.58 MB / 327 MB, free: 1.363 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03307/0.2396, allocations: 37.34 MB / 364.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.257, allocations: 8.602 MB / 373 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00639/0.2634, allocations: 167.6 kB / 373.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001213/0.2647, allocations: 390.1 kB / 373.5 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003798/0.2685, allocations: 1.756 MB / 375.3 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001289/0.2698, allocations: 0.6865 MB / 376 MB, free: 2.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006503/0.2763, allocations: 6.726 MB / 382.7 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004488/0.2808, allocations: 3.875 MB / 386.6 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.2822, allocations: 1.159 MB / 387.7 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002081/0.2843, allocations: 1.982 MB / 389.7 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002495/0.2845, allocations: 132 kB / 389.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001561/0.2861, allocations: 1.08 MB / 390.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.2874, allocations: 1.691 MB / 392.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001391/0.2888, allocations: 1.888 MB / 394.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004839/0.2937, allocations: 6.236 MB / 400.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.2937, allocations: 0 / 400.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2937, allocations: 3.938 kB / 400.7 MB, free: 9.379 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.534e-05/0.2938, allocations: 0 / 400.7 MB, free: 9.379 MB / 334.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.006443/0.3002, allocations: 3.887 MB / 404.6 MB, free: 5.422 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3003, allocations: 8.031 kB / 404.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02634/0.3266, allocations: 3.167 MB / 407.8 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007163/0.3338, allocations: 3.374 MB / 411.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001461/0.334, allocations: 205 kB / 411.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006377/0.3346, allocations: 267.8 kB / 411.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.3478, allocations: 8.874 MB / 420.5 MB, free: 4.816 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.348, allocations: 55.55 kB / 420.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003287/0.3483, allocations: 127.9 kB / 420.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002948/0.3513, allocations: 1.77 MB / 422.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01247/0.3638, allocations: 7.807 MB / 430.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2141/0.5779, allocations: 36.05 MB / 466.3 MB, free: 89.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00776/0.5857, allocations: 3.82 MB / 470.1 MB, free: 89.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00223/0.588, allocations: 2.162 MB / 472.3 MB, free: 88.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000357/0.5884, allocations: 327.7 kB / 472.6 MB, free: 88.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.5884, allocations: 56.64 kB / 472.7 MB, free: 88.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.818e-06/0.5884, allocations: 3.969 kB / 472.7 MB, free: 88.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04876/0.6372, allocations: 21.43 MB / 494.1 MB, free: 73.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.6373, allocations: 258.9 kB / 494.4 MB, free: 73.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003968/0.6413, allocations: 3.953 MB / 498.3 MB, free: 69.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002068/0.6415, allocations: 50.56 kB / 498.4 MB, free: 69.22 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/0.6427, allocations: 2.783 MB / 0.4894 GB, free: 66.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000533/0.6433, allocations: 0.7312 MB / 0.4901 GB, free: 65.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004677/0.6437, allocations: 0.4948 MB / 0.4906 GB, free: 65.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.202e-05/0.6438, allocations: 301.1 kB / 0.4909 GB, free: 64.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002498/0.6463, allocations: 2.384 MB / 0.4932 GB, free: 62.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.6498, allocations: 5.643 MB / 0.4987 GB, free: 55.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006888/0.6567, allocations: 8.569 MB / 0.5071 GB, free: 45.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-05/0.6568, allocations: 32 kB / 0.5071 GB, free: 45.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01474/0.6715, allocations: 9.634 MB / 0.5165 GB, free: 35.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.032e-05/0.6716, allocations: 52 kB / 0.5166 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.31e-05/0.6717, allocations: 115.9 kB / 0.5167 GB, free: 35.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004892/0.6766, allocations: 2.026 MB / 0.5187 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003628/0.6802, allocations: 1.279 MB / 0.5199 GB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01167/0.6919, allocations: 10.6 MB / 0.5303 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004629/0.6966, allocations: 343.4 kB / 0.5306 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000672/0.6973, allocations: 349.5 kB / 0.5309 GB, free: 20.79 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 (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.002978/0.7002, allocations: 1.939 MB / 0.5328 GB, free: 18.84 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005475/0.7008, allocations: 347.5 kB / 0.5332 GB, free: 18.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008372/0.7092, allocations: 4.891 MB / 0.5379 GB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/0.7092, allocations: 20 kB / 0.538 GB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.7092, allocations: 11.94 kB / 0.538 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.7093, allocations: 7.969 kB / 0.538 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01481/0.7241, allocations: 10.05 MB / 0.5478 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.7241, allocations: 0 / 0.5478 GB, free: 3.461 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.7253, allocations: 273.3 kB / 0.548 GB, free: 3.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00461/0.7299, allocations: 1.834 MB / 0.5498 GB, free: 1.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.7301, allocations: 41.03 kB / 0.5499 GB, free: 1.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0131/0.7432, allocations: 9.71 MB / 0.5594 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.7432, allocations: 0 / 0.5594 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/0.7562, allocations: 7.96 MB / 0.5671 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001475/0.7578, allocations: 0.7229 MB / 0.5678 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/0.7581, allocations: 35.98 kB / 0.5679 GB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001561/0.7597, allocations: 136.7 kB / 0.568 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003654/0.7601, allocations: 113.2 kB / 0.5681 GB, free: 14.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/0.7602, allocations: 44.7 kB / 0.5682 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003474/0.7637, allocations: 2.512 MB / 0.5706 GB, free: 11.92 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7637, allocations: 3.938 kB / 0.5706 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004122/0.7679, allocations: 1.062 MB / 0.5716 GB, free: 10.86 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 (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.000397/0.7683, allocations: 166.3 kB / 0.5718 GB, free: 10.69 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008558/0.7768, allocations: 5.804 MB / 0.5775 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.7769, allocations: 0 / 0.5775 GB, free: 4.898 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002963/0.7798, allocations: 2.089 MB / 0.5795 GB, free: 2.797 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003151/0.783, allocations: 438.6 kB / 0.5799 GB, free: 2.367 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01596/0.799, allocations: 11.43 MB / 0.5911 GB, free: 6.875 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003149/0.8022, allocations: 3.099 MB / 0.5941 GB, free: 3.746 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004597/0.8068, allocations: 1.819 MB / 0.5959 GB, free: 1.918 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006546/0.8074, allocations: 239.4 kB / 0.5961 GB, free: 1.684 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.8074, allocations: 0 / 0.5961 GB, free: 1.684 MB / 430.1 MB Notification: Performance of Templates: time 0.2365/1.044, allocations: 42.67 MB / 0.6378 GB, free: 150.6 MB / 446.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)