Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.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.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005733/0.005733, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001356/0.001356, allocations: 192.4 kB / 16.67 MB, free: 5.973 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.415/1.415, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001204/0.001204, allocations: 59.34 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.08547, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip): time 0.01329/0.0988, allocations: 12.32 MB / 385.5 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009791/0.1086, allocations: 4.434 MB / 389.9 MB, free: 500 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.1107, allocations: 83.69 kB / 390 MB, free: 416 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005436/0.1161, allocations: 2.904 MB / 392.9 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004941/0.1211, allocations: 2.082 MB / 395 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.1233, allocations: 1.049 MB / 396.1 MB, free: 10.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007341/0.1307, allocations: 5.335 MB / 401.4 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006144/0.1369, allocations: 4.051 MB / 405.4 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003536/0.1404, allocations: 1.779 MB / 407.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00396/0.1444, allocations: 2.395 MB / 409.6 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001255/0.1457, allocations: 380 kB / 410 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002847/0.1485, allocations: 1.26 MB / 411.2 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002804/0.1514, allocations: 2.213 MB / 413.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003851/0.1552, allocations: 2.474 MB / 415.9 MB, free: 6.359 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00903/0.1643, allocations: 8.001 MB / 423.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1643, allocations: 0 / 423.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1643, allocations: 0 / 423.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002517/0.1646, allocations: 0 / 423.9 MB, free: 14.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: 1556 * Number of variables: 1556 Notification: Performance of Generate backend data structure: time 0.01232/0.1769, allocations: 5.373 MB / 429.3 MB, free: 8.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.1769, allocations: 12.02 kB / 429.3 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02656/0.2035, allocations: 3.193 MB / 432.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01184/0.2154, allocations: 3.75 MB / 436.3 MB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005579/0.216, allocations: 246.3 kB / 436.5 MB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.218, allocations: 335.7 kB / 436.8 MB, free: 1.289 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/0.2379, allocations: 10.35 MB / 447.2 MB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001824/0.2381, allocations: 47.59 kB / 447.2 MB, free: 6.219 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009517/0.2391, allocations: 155.8 kB / 447.4 MB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003627/0.2427, allocations: 2.03 MB / 449.4 MB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1838/0.4265, allocations: 8.889 MB / 458.3 MB, free: 63.42 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04087/0.4674, allocations: 39.64 MB / 497.9 MB, free: 34.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007872/0.4753, allocations: 4.062 MB / 0.4902 GB, free: 30.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002233/0.4776, allocations: 2.234 MB / 0.4924 GB, free: 28.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005057/0.4781, allocations: 0.647 MB / 0.493 GB, free: 27.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.4782, allocations: 53.56 kB / 0.4931 GB, free: 27.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=175): time 5.56e-06/0.4782, allocations: 0 / 0.4931 GB, free: 27.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=210): time 0.05847/0.5367, allocations: 22.97 MB / 0.5155 GB, free: 4.469 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.11e-05/0.5368, allocations: 260.6 kB / 0.5158 GB, free: 4.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006377/0.5432, allocations: 4.263 MB / 0.5199 GB, free: 15.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005256/0.5437, allocations: 61.7 kB / 0.52 GB, free: 15.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002628/0.5464, allocations: 3.202 MB / 0.5231 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.5475, allocations: 0.792 MB / 0.5239 GB, free: 11.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002718/0.5503, allocations: 1.289 MB / 0.5251 GB, free: 10.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.5504, allocations: 301.1 kB / 0.5254 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004218/0.5546, allocations: 2.55 MB / 0.5279 GB, free: 7.672 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00719/0.5618, allocations: 6.124 MB / 0.5339 GB, free: 15.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01131/0.5732, allocations: 9.303 MB / 0.543 GB, free: 4.742 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000121/0.5733, allocations: 36 kB / 0.543 GB, free: 4.707 MB / 414.1 MB Notification: Performance of matching and sorting (n=819) (initialization): time 0.02261/0.5959, allocations: 10.75 MB / 0.5535 GB, free: 9.934 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.5961, allocations: 64.06 kB / 0.5536 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001882/0.5963, allocations: 124 kB / 0.5537 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007797/0.6041, allocations: 2.605 MB / 0.5562 GB, free: 7.133 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004475/0.6086, allocations: 1.349 MB / 0.5576 GB, free: 5.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02558/0.6342, allocations: 18.6 MB / 0.5757 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005455/0.6397, allocations: 371.4 kB / 0.5761 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001312/0.641, allocations: 372 kB / 0.5764 GB, free: 2.047 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 565 * Number of states: 0 () * Number of discrete variables: 33 (freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.arrowColor[1],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 (731): * Single equations (assignments): 725 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,34,87.5%), (3,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,13)} Notification: Performance of prepare postOptimizeDAE: time 0.00472/0.6458, allocations: 2.218 MB / 0.5786 GB, free: 15.82 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/0.647, allocations: 387.1 kB / 0.579 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/0.6577, allocations: 5.148 MB / 0.584 GB, free: 10.26 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.194e-05/0.6577, allocations: 24.7 kB / 0.584 GB, free: 10.24 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/0.6578, allocations: 8.094 kB / 0.584 GB, free: 10.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.272e-05/0.6578, allocations: 11.95 kB / 0.584 GB, free: 10.22 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02177/0.6796, allocations: 11.09 MB / 0.5949 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.796e-05/0.6796, allocations: 0 / 0.5949 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001515/0.6811, allocations: 307.5 kB / 0.5952 GB, free: 14.79 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005361/0.6865, allocations: 1.858 MB / 0.597 GB, free: 12.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002877/0.6868, allocations: 36 kB / 0.597 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01478/0.7016, allocations: 10.37 MB / 0.6071 GB, free: 2.375 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.7017, allocations: 4 kB / 0.6071 GB, free: 2.371 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01555/0.7172, allocations: 8.359 MB / 0.6153 GB, free: 9.984 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/0.7193, allocations: 0.7616 MB / 0.616 GB, free: 9.199 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/0.7205, allocations: 36 kB / 0.6161 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/0.7229, allocations: 139.8 kB / 0.6162 GB, free: 9.027 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005209/0.7234, allocations: 125.1 kB / 0.6163 GB, free: 8.902 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002368/0.7237, allocations: 63.67 kB / 0.6164 GB, free: 8.844 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00531/0.729, allocations: 2.688 MB / 0.619 GB, free: 6.148 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.729, allocations: 0 / 0.619 GB, free: 6.148 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006/0.735, allocations: 1.206 MB / 0.6202 GB, free: 4.945 MB / 494.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 (157): * Single equations (assignments): 153 * 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,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006563/0.7357, allocations: 169.5 kB / 0.6204 GB, free: 4.773 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1874/0.9231, allocations: 6.666 MB / 0.6269 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.936e-06/0.9231, allocations: 0.5 kB / 0.6269 GB, free: 162.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003646/0.9268, allocations: 2.232 MB / 0.629 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/0.9301, allocations: 0.5694 MB / 0.6296 GB, free: 162.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/0.948, allocations: 10.71 MB / 0.6401 GB, free: 159 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/0.9514, allocations: 3.531 MB / 0.6435 GB, free: 157.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003882/0.9553, allocations: 1.921 MB / 0.6454 GB, free: 157.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006763/0.956, allocations: 256.5 kB / 0.6456 GB, free: 157.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/0.956, allocations: 4 kB / 0.6456 GB, free: 157.5 MB / 494.1 MB Notification: Performance of Templates: time 0.07109/1.027, allocations: 49.79 MB / 0.6943 GB, free: 115.2 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulumInitTip.pipe 2>&1)