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.00106/0.00106, allocations: 115.2 kB / 16.63 MB, free: 6.812 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.001068/0.001068, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.277/1.277, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001122/0.001122, allocations: 48.14 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08308/0.08421, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03385/0.1181, allocations: 38.41 MB / 364.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01834/0.1365, allocations: 8.566 MB / 373.1 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007637/0.1442, allocations: 167.6 kB / 373.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004651/0.1489, allocations: 2.119 MB / 375.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004392/0.1534, allocations: 1.736 MB / 377.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.1548, allocations: 0.706 MB / 377.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1729/0.3277, allocations: 5.06 MB / 382.9 MB, free: 9.836 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003621/0.3314, allocations: 3.053 MB / 386 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002489/0.3339, allocations: 1.519 MB / 387.5 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003069/0.337, allocations: 2.296 MB / 389.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006497/0.3377, allocations: 301.5 kB / 390.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.3397, allocations: 1.193 MB / 391.3 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002363/0.342, allocations: 1.887 MB / 393.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003889/0.3459, allocations: 2.095 MB / 395.2 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008167/0.3541, allocations: 6.535 MB / 401.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3542, allocations: 4 kB / 401.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.3542, allocations: 0 / 401.8 MB, free: 6.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002018/0.3544, allocations: 0 / 401.8 MB, free: 6.766 MB / 318.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.01031/0.3647, allocations: 4.683 MB / 406.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.3648, allocations: 11.75 kB / 406.5 MB, free: 3.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0239/0.3887, allocations: 3.077 MB / 409.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006789/0.3955, allocations: 3.381 MB / 412.9 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.3957, allocations: 197 kB / 413.1 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/0.3964, allocations: 269.5 kB / 413.4 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01458/0.411, allocations: 8.866 MB / 422.3 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001263/0.4112, allocations: 44.03 kB / 422.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003771/0.4115, allocations: 131.6 kB / 422.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002927/0.4145, allocations: 1.764 MB / 424.2 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01429/0.4288, allocations: 7.79 MB / 432 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04123/0.4701, allocations: 36.04 MB / 468 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007838/0.4779, allocations: 3.82 MB / 471.8 MB, free: 5.074 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002497/0.4805, allocations: 2.157 MB / 474 MB, free: 2.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000409/0.4809, allocations: 331.2 kB / 474.3 MB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.674e-05/0.481, allocations: 51.56 kB / 474.4 MB, free: 2.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.418e-06/0.481, allocations: 0 / 474.4 MB, free: 2.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.05498/0.536, allocations: 21.43 MB / 495.8 MB, free: 13 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.5362, allocations: 255.7 kB / 496.1 MB, free: 12.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005988/0.5421, allocations: 3.951 MB / 0.4883 GB, free: 8.762 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006156/0.5428, allocations: 57.7 kB / 0.4883 GB, free: 8.699 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002099/0.5449, allocations: 2.783 MB / 0.4911 GB, free: 5.922 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009136/0.5458, allocations: 0.7162 MB / 0.4918 GB, free: 5.211 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/0.5475, allocations: 1.183 MB / 0.4929 GB, free: 4.016 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.5476, allocations: 305.1 kB / 0.4932 GB, free: 3.715 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003417/0.551, allocations: 2.377 MB / 0.4955 GB, free: 1.332 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00613/0.5572, allocations: 5.637 MB / 0.501 GB, free: 10.13 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01092/0.5681, allocations: 8.575 MB / 0.5094 GB, free: 456 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.364e-05/0.5683, allocations: 38.72 kB / 0.5094 GB, free: 420 kB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01674/0.585, allocations: 9.624 MB / 0.5188 GB, free: 7.453 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.347e-05/0.5851, allocations: 56.19 kB / 0.5189 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001057/0.5852, allocations: 116 kB / 0.519 GB, free: 7.285 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005166/0.5904, allocations: 2.026 MB / 0.521 GB, free: 5.254 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003689/0.5941, allocations: 1.287 MB / 0.5222 GB, free: 3.965 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01495/0.6091, allocations: 11.36 MB / 0.5333 GB, free: 8.465 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005005/0.6141, allocations: 347.4 kB / 0.5337 GB, free: 8.125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000805/0.615, allocations: 336 kB / 0.534 GB, free: 7.797 MB / 462.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.003604/0.6186, allocations: 1.935 MB / 0.5359 GB, free: 5.848 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001056/0.6196, allocations: 351.5 kB / 0.5362 GB, free: 5.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009402/0.6291, allocations: 4.888 MB / 0.541 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.878e-05/0.6291, allocations: 26.19 kB / 0.541 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.857e-05/0.6292, allocations: 8 kB / 0.541 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.592e-05/0.6292, allocations: 16.56 kB / 0.541 GB, free: 0.5469 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1816/0.8108, allocations: 10.04 MB / 0.5508 GB, free: 173.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/0.8109, allocations: 1.156 kB / 0.5508 GB, free: 173.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001271/0.8122, allocations: 270.8 kB / 0.5511 GB, free: 173.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00499/0.8172, allocations: 1.854 MB / 0.5529 GB, free: 172.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002781/0.8175, allocations: 33.84 kB / 0.5529 GB, free: 172.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/0.8293, allocations: 10.4 MB / 0.5631 GB, free: 168.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.8294, allocations: 6.969 kB / 0.5631 GB, free: 168.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/0.8405, allocations: 7.937 MB / 0.5709 GB, free: 165.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/0.8423, allocations: 0.7263 MB / 0.5716 GB, free: 165.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006265/0.8429, allocations: 34.69 kB / 0.5716 GB, free: 165.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/0.8445, allocations: 135.1 kB / 0.5717 GB, free: 165.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000402/0.8449, allocations: 116.4 kB / 0.5718 GB, free: 165.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001376/0.8451, allocations: 44.12 kB / 0.5719 GB, free: 165.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003103/0.8482, allocations: 2.508 MB / 0.5743 GB, free: 164.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8482, allocations: 0 / 0.5743 GB, free: 164.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003791/0.852, allocations: 1.071 MB / 0.5754 GB, free: 164.1 MB / 462.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.0003855/0.8524, allocations: 159.9 kB / 0.5755 GB, free: 163.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008366/0.8608, allocations: 6.881 MB / 0.5822 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.8608, allocations: 4 kB / 0.5822 GB, free: 157.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002327/0.8631, allocations: 2.095 MB / 0.5843 GB, free: 155.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.8657, allocations: 458 kB / 0.5847 GB, free: 155.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01254/0.8783, allocations: 11.34 MB / 0.5958 GB, free: 144.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.8807, allocations: 3.093 MB / 0.5988 GB, free: 141 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003688/0.8844, allocations: 1.819 MB / 0.6006 GB, free: 139.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006271/0.885, allocations: 243.4 kB / 0.6008 GB, free: 138.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.885, allocations: 0 / 0.6008 GB, free: 138.9 MB / 462.1 MB Notification: Performance of Templates: time 0.05787/0.9429, allocations: 45.25 MB / 0.645 GB, free: 93.73 MB / 462.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)