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.001345/0.001345, allocations: 109.8 kB / 16.51 MB, free: 6.707 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.001041/0.001041, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.291/1.291, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001168/0.001168, allocations: 51.92 kB / 279.3 MB, free: 3.562 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08078/0.08196, allocations: 46.63 MB / 326 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03256/0.1146, allocations: 38.41 MB / 364.4 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.1312, allocations: 8.668 MB / 373 MB, free: 5.598 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00579/0.137, allocations: 171.6 kB / 373.2 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004222/0.1413, allocations: 2.174 MB / 375.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003796/0.1451, allocations: 1.748 MB / 377.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001324/0.1465, allocations: 0.6865 MB / 377.8 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1681/0.3146, allocations: 6.721 MB / 384.5 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003905/0.3186, allocations: 2.813 MB / 387.4 MB, free: 9.469 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.3208, allocations: 1.315 MB / 388.7 MB, free: 9.465 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002712/0.3236, allocations: 2.196 MB / 390.9 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006171/0.3242, allocations: 197.6 kB / 391.1 MB, free: 9.336 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002421/0.3266, allocations: 1.146 MB / 392.2 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001827/0.3285, allocations: 1.776 MB / 394 MB, free: 9.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002374/0.3309, allocations: 1.984 MB / 396 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005536/0.3364, allocations: 6.414 MB / 402.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3364, allocations: 0 / 402.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3364, allocations: 0 / 402.4 MB, free: 6.164 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001199/0.3366, allocations: 0 / 402.4 MB, free: 6.164 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.008338/0.3449, allocations: 4.676 MB / 407.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.345, allocations: 8.969 kB / 407.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02378/0.3687, allocations: 3.092 MB / 410.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006633/0.3754, allocations: 3.372 MB / 413.5 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.3755, allocations: 205.3 kB / 413.7 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005726/0.3761, allocations: 268.5 kB / 414 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01351/0.3896, allocations: 8.865 MB / 422.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001013/0.3898, allocations: 52.2 kB / 422.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003595/0.3901, allocations: 130.8 kB / 423 MB, free: 6.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003011/0.3931, allocations: 1.767 MB / 424.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.4068, allocations: 7.783 MB / 432.6 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04153/0.4483, allocations: 36.04 MB / 468.6 MB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008464/0.4568, allocations: 3.813 MB / 472.4 MB, free: 4.387 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002634/0.4595, allocations: 2.16 MB / 474.6 MB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004183/0.4599, allocations: 334.2 kB / 474.9 MB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.46, allocations: 47.56 kB / 475 MB, free: 1.789 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.178e-06/0.46, allocations: 0 / 475 MB, free: 1.789 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.0577/0.5177, allocations: 21.43 MB / 496.4 MB, free: 12.3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.5179, allocations: 263.7 kB / 496.7 MB, free: 11.99 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005448/0.5233, allocations: 3.951 MB / 0.4889 GB, free: 8.055 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004084/0.5238, allocations: 49.7 kB / 0.4889 GB, free: 8 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/0.5256, allocations: 2.782 MB / 0.4916 GB, free: 5.223 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009014/0.5265, allocations: 0.7206 MB / 0.4923 GB, free: 4.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001495/0.528, allocations: 1.174 MB / 0.4935 GB, free: 3.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.292e-05/0.5281, allocations: 305.1 kB / 0.4938 GB, free: 3.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003111/0.5312, allocations: 2.381 MB / 0.4961 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005945/0.5372, allocations: 5.647 MB / 0.5016 GB, free: 9.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009916/0.5471, allocations: 8.573 MB / 0.51 GB, free: 15.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.566e-05/0.5472, allocations: 32 kB / 0.51 GB, free: 15.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.0183/0.5655, allocations: 9.628 MB / 0.5194 GB, free: 6.699 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001274/0.5657, allocations: 52 kB / 0.5195 GB, free: 6.648 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001763/0.5659, allocations: 112 kB / 0.5196 GB, free: 6.539 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005666/0.5716, allocations: 2.027 MB / 0.5216 GB, free: 4.508 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00403/0.5756, allocations: 1.279 MB / 0.5228 GB, free: 3.227 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.5904, allocations: 10.59 MB / 0.5332 GB, free: 8.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004259/0.5947, allocations: 347.4 kB / 0.5335 GB, free: 8.152 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000876/0.5955, allocations: 332 kB / 0.5338 GB, free: 7.828 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.003404/0.599, allocations: 1.939 MB / 0.5357 GB, free: 5.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007324/0.5997, allocations: 351.5 kB / 0.536 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009397/0.6091, allocations: 4.888 MB / 0.5408 GB, free: 0.625 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.213e-05/0.6092, allocations: 31.36 kB / 0.5408 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.6092, allocations: 12 kB / 0.5409 GB, free: 0.5859 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.278e-05/0.6092, allocations: 12.61 kB / 0.5409 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1645/0.7737, allocations: 10.04 MB / 0.5507 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.7737, allocations: 2.312 kB / 0.5507 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.775, allocations: 268.5 kB / 0.5509 GB, free: 173.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005138/0.7802, allocations: 1.846 MB / 0.5527 GB, free: 173.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002327/0.7804, allocations: 32.3 kB / 0.5528 GB, free: 173.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.7916, allocations: 9.708 MB / 0.5622 GB, free: 169.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.7916, allocations: 3.656 kB / 0.5622 GB, free: 169.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/0.8028, allocations: 7.953 MB / 0.57 GB, free: 166.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.8047, allocations: 0.7234 MB / 0.5707 GB, free: 166.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/0.8052, allocations: 31.44 kB / 0.5707 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.8067, allocations: 130.3 kB / 0.5709 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004158/0.8071, allocations: 111.9 kB / 0.571 GB, free: 166.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/0.8073, allocations: 50.12 kB / 0.571 GB, free: 166.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003266/0.8106, allocations: 2.506 MB / 0.5735 GB, free: 165.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8106, allocations: 0 / 0.5735 GB, free: 165.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004242/0.8148, allocations: 1.068 MB / 0.5745 GB, free: 165.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.0004004/0.8152, allocations: 163.3 kB / 0.5747 GB, free: 165 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006894/0.8221, allocations: 5.809 MB / 0.5803 GB, free: 159.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.8222, allocations: 0 / 0.5803 GB, free: 159.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002429/0.8246, allocations: 2.096 MB / 0.5824 GB, free: 157.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002761/0.8274, allocations: 453.1 kB / 0.5828 GB, free: 157.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/0.8402, allocations: 11.32 MB / 0.5939 GB, free: 145.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002381/0.8427, allocations: 3.095 MB / 0.5969 GB, free: 142.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003825/0.8465, allocations: 1.819 MB / 0.5987 GB, free: 140.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006212/0.8471, allocations: 239.4 kB / 0.5989 GB, free: 140.7 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.8471, allocations: 0 / 0.5989 GB, free: 140.7 MB / 462.1 MB Notification: Performance of Templates: time 0.05929/0.9064, allocations: 43.54 MB / 0.6414 GB, free: 97.2 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)