Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.005568/0.005568, allocations: 102.5 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.001344/0.001344, allocations: 196.8 kB / 16.67 MB, free: 5.969 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.342/1.342, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001261/0.001261, allocations: 50.42 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08072/0.08199, allocations: 46.61 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01066/0.09269, allocations: 10.46 MB / 383.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007538/0.1003, allocations: 3.972 MB / 387.6 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001491/0.1018, allocations: 63.81 kB / 387.7 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004008/0.1059, allocations: 2.196 MB / 389.9 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004413/0.1103, allocations: 1.876 MB / 391.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001591/0.1119, allocations: 0.7409 MB / 392.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006185/0.1181, allocations: 4.831 MB / 397.3 MB, free: 9.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003843/0.122, allocations: 2.901 MB / 400.2 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002508/0.1245, allocations: 1.491 MB / 401.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002975/0.1275, allocations: 2.048 MB / 403.7 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006746/0.1282, allocations: 300 kB / 404 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.1305, allocations: 1.19 MB / 405.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.1323, allocations: 1.878 MB / 407.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00224/0.1346, allocations: 2.062 MB / 409.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007155/0.1418, allocations: 6.7 MB / 415.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1418, allocations: 0 / 415.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1418, allocations: 0 / 415.9 MB, free: 6.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001292/0.142, allocations: 0 / 415.9 MB, free: 6.438 MB / 350.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.009742/0.1517, allocations: 4.682 MB / 420.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.1518, allocations: 8.031 kB / 420.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02755/0.1793, allocations: 3.092 MB / 423.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009207/0.1886, allocations: 3.432 MB / 427.1 MB, free: 11.08 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.1888, allocations: 197 kB / 427.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008207/0.1896, allocations: 271.8 kB / 427.5 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01371/0.2033, allocations: 8.859 MB / 436.4 MB, free: 1.113 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001311/0.2035, allocations: 47.5 kB / 436.4 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003523/0.2039, allocations: 127.9 kB / 436.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003106/0.207, allocations: 1.778 MB / 438.4 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.222, allocations: 7.78 MB / 446.1 MB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2169/0.4389, allocations: 35.87 MB / 482 MB, free: 42.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006947/0.4459, allocations: 3.822 MB / 485.8 MB, free: 40.62 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001889/0.4478, allocations: 2.154 MB / 488 MB, free: 39.74 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/0.4481, allocations: 338.1 kB / 488.3 MB, free: 39.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.4482, allocations: 54.72 kB / 488.4 MB, free: 39.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 2.975e-06/0.4482, allocations: 0 / 488.4 MB, free: 39.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.0478/0.496, allocations: 21.45 MB / 0.4979 GB, free: 23.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.598e-05/0.4961, allocations: 252.6 kB / 0.4981 GB, free: 23.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004229/0.5003, allocations: 3.959 MB / 0.502 GB, free: 19.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003552/0.5007, allocations: 49.7 kB / 0.502 GB, free: 19.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.502, allocations: 2.776 MB / 0.5047 GB, free: 16.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005521/0.5026, allocations: 0.7358 MB / 0.5054 GB, free: 15.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001178/0.5037, allocations: 1.174 MB / 0.5066 GB, free: 14.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.5038, allocations: 301.1 kB / 0.5069 GB, free: 14.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002482/0.5063, allocations: 2.385 MB / 0.5092 GB, free: 11.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.5098, allocations: 5.636 MB / 0.5147 GB, free: 4.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009662/0.5195, allocations: 8.575 MB / 0.5231 GB, free: 10.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001578/0.5197, allocations: 32 kB / 0.5231 GB, free: 10.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01948/0.5392, allocations: 9.617 MB / 0.5325 GB, free: 0.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.5393, allocations: 60.19 kB / 0.5326 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/0.5395, allocations: 116 kB / 0.5327 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005531/0.5451, allocations: 2.018 MB / 0.5346 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00419/0.5493, allocations: 1.275 MB / 0.5359 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01546/0.5648, allocations: 11.35 MB / 0.547 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005898/0.5707, allocations: 339.5 kB / 0.5473 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009663/0.5717, allocations: 343.2 kB / 0.5476 GB, free: 0.9922 MB / 414.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.003657/0.5754, allocations: 1.943 MB / 0.5495 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008802/0.5763, allocations: 343.5 kB / 0.5499 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009703/0.586, allocations: 4.891 MB / 0.5546 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.744e-05/0.5861, allocations: 24 kB / 0.5547 GB, free: 9.766 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.697e-05/0.5861, allocations: 4 kB / 0.5547 GB, free: 9.762 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/0.5861, allocations: 12.91 kB / 0.5547 GB, free: 9.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02194/0.6081, allocations: 10.02 MB / 0.5645 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-05/0.6081, allocations: 0 / 0.5645 GB, free: 15.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001315/0.6094, allocations: 263.6 kB / 0.5647 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005125/0.6146, allocations: 1.85 MB / 0.5665 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000241/0.6148, allocations: 35.98 kB / 0.5665 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01367/0.6285, allocations: 10.39 MB / 0.5767 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.6285, allocations: 0 / 0.5767 GB, free: 3.012 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/0.6415, allocations: 7.963 MB / 0.5845 GB, free: 11.03 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002259/0.6438, allocations: 0.723 MB / 0.5852 GB, free: 10.28 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007817/0.6446, allocations: 28.66 kB / 0.5852 GB, free: 10.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002044/0.6466, allocations: 143.3 kB / 0.5853 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003558/0.647, allocations: 117 kB / 0.5855 GB, free: 10 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001584/0.6471, allocations: 52 kB / 0.5855 GB, free: 9.949 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004608/0.6518, allocations: 2.5 MB / 0.5879 GB, free: 7.469 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6518, allocations: 0 / 0.5879 GB, free: 7.469 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004929/0.6567, allocations: 1.061 MB / 0.589 GB, free: 6.41 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.0004556/0.6572, allocations: 172 kB / 0.5891 GB, free: 6.242 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009468/0.6667, allocations: 5.837 MB / 0.5948 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.6667, allocations: 4.062 kB / 0.5949 GB, free: 424 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003274/0.67, allocations: 2.084 MB / 0.5969 GB, free: 14.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004069/0.6741, allocations: 481.2 kB / 0.5973 GB, free: 13.87 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/0.693, allocations: 9.436 MB / 0.6066 GB, free: 4.391 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004484/0.6976, allocations: 3.099 MB / 0.6096 GB, free: 1.262 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004443/0.702, allocations: 1.823 MB / 0.6114 GB, free: 15.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.7031, allocations: 235.3 kB / 0.6116 GB, free: 15.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.022e-06/0.7031, allocations: 0 / 0.6116 GB, free: 15.2 MB / 494.1 MB Notification: Performance of Templates: time 0.2545/0.9575, allocations: 42.5 MB / 0.6531 GB, free: 153.9 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)