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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001316/0.001316, allocations: 188.5 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.382/1.382, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001798/0.001797, allocations: 124.5 kB / 248.1 MB, free: 6.352 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.634e-05/1.639e-05, allocations: 4 kB / 298.1 MB, free: 8.23 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09252, allocations: 44.5 MB / 342.6 MB, free: 11.63 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.302/0.3945, allocations: 86.01 MB / 428.6 MB, free: 10.01 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.3947, allocations: 84.58 kB / 428.7 MB, free: 9.969 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2226/0.6173, allocations: 81.09 MB / 0.4978 GB, free: 15.93 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.6173, allocations: 0 / 0.4978 GB, free: 15.93 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002308/0.6176, allocations: 72 kB / 0.4979 GB, free: 15.86 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1299 * Number of variables: 1299 Notification: Performance of Generate backend data structure: time 0.01154/0.6291, allocations: 3.952 MB / 0.5017 GB, free: 11.84 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.009e-05/0.6292, allocations: 16.03 kB / 0.5018 GB, free: 11.83 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02645/0.6556, allocations: 6.613 MB / 0.5082 GB, free: 5.199 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2136/0.8693, allocations: 5.81 MB / 0.5139 GB, free: 75.89 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.8695, allocations: 115.8 kB / 0.514 GB, free: 75.89 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001418/0.8709, allocations: 215.6 kB / 0.5142 GB, free: 75.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008353/0.8793, allocations: 5.238 MB / 0.5193 GB, free: 75.87 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01222/0.8915, allocations: 8.179 MB / 0.5273 GB, free: 73.47 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001687/0.8918, allocations: 64.89 kB / 0.5274 GB, free: 73.47 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004833/0.8923, allocations: 29.16 kB / 0.5274 GB, free: 73.47 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001074/0.8933, allocations: 0.8846 MB / 0.5283 GB, free: 73.47 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03826/0.9316, allocations: 40.6 MB / 0.5679 GB, free: 48.52 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004202/0.9359, allocations: 3.039 MB / 0.5709 GB, free: 46.91 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002082/0.938, allocations: 1.904 MB / 0.5727 GB, free: 46.11 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003935/0.9384, allocations: 335.5 kB / 0.5731 GB, free: 45.82 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.9385, allocations: 48.34 kB / 0.5731 GB, free: 45.77 MB / 395.1 MB Notification: Performance of pre-optimization done (n=160): time 4.479e-06/0.9385, allocations: 2.156 kB / 0.5731 GB, free: 45.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=189): time 0.03355/0.972, allocations: 16.81 MB / 0.5895 GB, free: 39.45 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.707e-05/0.9721, allocations: 258.2 kB / 0.5898 GB, free: 39.17 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004375/0.9765, allocations: 2.998 MB / 0.5927 GB, free: 38.09 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003722/0.9769, allocations: 25.7 kB / 0.5927 GB, free: 38.06 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001279/0.9782, allocations: 2.874 MB / 0.5955 GB, free: 35.99 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006172/0.9788, allocations: 0.701 MB / 0.5962 GB, free: 35.47 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.9791, allocations: 3.438 kB / 0.5962 GB, free: 35.47 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002372/0.9793, allocations: 0.5393 MB / 0.5967 GB, free: 35.07 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/0.9816, allocations: 1.973 MB / 0.5987 GB, free: 34.36 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003879/0.9855, allocations: 5.302 MB / 0.6039 GB, free: 29.15 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004025/0.9896, allocations: 3.21 MB / 0.607 GB, free: 28.05 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.621e-05/0.9896, allocations: 45.98 kB / 0.607 GB, free: 28.05 MB / 395.1 MB Notification: Performance of matching and sorting (n=735) (initialization): time 0.01303/1.003, allocations: 7.702 MB / 0.6146 GB, free: 25.49 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.354e-05/1.003, allocations: 55.28 kB / 0.6146 GB, free: 25.49 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/1.003, allocations: 118.1 kB / 0.6147 GB, free: 25.49 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003489/1.006, allocations: 1.374 MB / 0.6161 GB, free: 25.24 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004283/1.011, allocations: 1.264 MB / 0.6173 GB, free: 25.09 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009777/1.021, allocations: 7.855 MB / 0.625 GB, free: 21.3 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004387/1.025, allocations: 215.1 kB / 0.6252 GB, free: 21.27 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009108/1.026, allocations: 339.2 kB / 0.6255 GB, free: 21.18 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 540 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 670 * 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.0008143/1.027, allocations: 416.1 kB / 0.6259 GB, free: 20.77 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00063/1.027, allocations: 323.8 kB / 0.6262 GB, free: 20.45 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006289/1.034, allocations: 3.748 MB / 0.6299 GB, free: 17.49 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.581e-05/1.034, allocations: 20.94 kB / 0.6299 GB, free: 17.47 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/1.034, allocations: 8 kB / 0.6299 GB, free: 17.46 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/1.034, allocations: 11.5 kB / 0.6299 GB, free: 17.46 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.047, allocations: 8.152 MB / 0.6379 GB, free: 10.87 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.047, allocations: 4 kB / 0.6379 GB, free: 10.86 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/1.048, allocations: 256.1 kB / 0.6381 GB, free: 10.66 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003104/1.051, allocations: 1.198 MB / 0.6393 GB, free: 9.812 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002707/1.052, allocations: 7.562 kB / 0.6393 GB, free: 9.809 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008303/1.06, allocations: 7.031 MB / 0.6462 GB, free: 3.664 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.06, allocations: 5.562 kB / 0.6462 GB, free: 3.66 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009646/1.07, allocations: 6.614 MB / 0.6526 GB, free: 13.96 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001759/1.072, allocations: 0.6435 MB / 0.6532 GB, free: 13.34 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004825/1.072, allocations: 11.33 kB / 0.6533 GB, free: 13.33 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001445/1.074, allocations: 83.14 kB / 0.6533 GB, free: 13.29 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/1.074, allocations: 115.6 kB / 0.6534 GB, free: 13.21 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/1.074, allocations: 48 kB / 0.6535 GB, free: 13.16 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.00354/1.078, allocations: 2.042 MB / 0.6555 GB, free: 11.4 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.078, allocations: 0 / 0.6555 GB, free: 11.4 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.005015/1.083, allocations: 0.8566 MB / 0.6563 GB, free: 10.55 MB / 411.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 () * 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.0004645/1.083, allocations: 139.2 kB / 0.6565 GB, free: 10.41 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.008724/1.092, allocations: 4.996 MB / 0.6613 GB, free: 5.922 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/1.092, allocations: 0 / 0.6613 GB, free: 5.922 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003069/1.095, allocations: 1.907 MB / 0.6632 GB, free: 4.219 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/1.097, allocations: 380.4 kB / 0.6636 GB, free: 3.906 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2095/1.307, allocations: 7.832 MB / 0.6712 GB, free: 80.27 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003696/1.311, allocations: 3.17 MB / 0.6743 GB, free: 79.5 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.004439/1.315, allocations: 1.846 MB / 0.6761 GB, free: 79.46 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006836/1.316, allocations: 226.7 kB / 0.6763 GB, free: 79.45 MB / 411.1 MB Notification: Performance of SimCode: time 7.11e-07/1.316, allocations: 0 / 0.6763 GB, free: 79.45 MB / 411.1 MB Notification: Performance of Templates: time 0.08133/1.397, allocations: 34.78 MB / 0.7103 GB, free: 78.05 MB / 411.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)