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.004687/0.004687, allocations: 105.3 kB / 15.73 MB, free: 6.043 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.001043/0.001043, allocations: 191.1 kB / 16.67 MB, free: 5.977 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.337/1.337, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001192/0.001192, allocations: 50.84 kB / 326.5 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08439, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.01096/0.09539, allocations: 10.46 MB / 383.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007485/0.1029, allocations: 3.957 MB / 387.6 MB, free: 2.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.1045, allocations: 63.81 kB / 387.7 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00395/0.1084, allocations: 2.207 MB / 389.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004716/0.1132, allocations: 1.868 MB / 391.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001545/0.1147, allocations: 0.7409 MB / 392.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005696/0.1204, allocations: 4.847 MB / 397.3 MB, free: 9.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003089/0.1235, allocations: 2.897 MB / 400.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001931/0.1255, allocations: 1.483 MB / 401.7 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002354/0.1279, allocations: 2.041 MB / 403.7 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004998/0.1284, allocations: 304 kB / 404 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.1303, allocations: 1.186 MB / 405.2 MB, free: 1.121 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.1319, allocations: 1.851 MB / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001939/0.1338, allocations: 2.074 MB / 409.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006346/0.1402, allocations: 6.692 MB / 415.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1402, allocations: 0 / 415.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1402, allocations: 4 kB / 415.8 MB, free: 6.461 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001573/0.1404, allocations: 0 / 415.8 MB, free: 6.461 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.00931/0.1497, allocations: 4.678 MB / 420.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.1498, allocations: 12.03 kB / 420.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02602/0.1758, allocations: 3.081 MB / 423.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007963/0.1838, allocations: 3.44 MB / 427 MB, free: 11.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/0.184, allocations: 193 kB / 427.2 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008263/0.1848, allocations: 271.8 kB / 427.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01336/0.1982, allocations: 8.855 MB / 436.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.1983, allocations: 59.48 kB / 436.4 MB, free: 1.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003518/0.1987, allocations: 127.9 kB / 436.5 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003072/0.2018, allocations: 1.77 MB / 438.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01319/0.215, allocations: 7.78 MB / 446.1 MB, free: 7.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2246/0.4397, allocations: 35.86 MB / 482 MB, free: 42.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007562/0.4473, allocations: 3.825 MB / 485.8 MB, free: 40.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002232/0.4495, allocations: 2.158 MB / 487.9 MB, free: 39.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/0.4499, allocations: 333.2 kB / 488.3 MB, free: 39.51 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.4499, allocations: 47.78 kB / 488.3 MB, free: 39.46 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 3.957e-06/0.4499, allocations: 0 / 488.3 MB, free: 39.46 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04966/0.4996, allocations: 21.45 MB / 0.4978 GB, free: 23.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.816e-05/0.4997, allocations: 256.3 kB / 0.4981 GB, free: 22.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004148/0.5039, allocations: 3.962 MB / 0.5019 GB, free: 18.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003775/0.5043, allocations: 49.7 kB / 0.502 GB, free: 18.93 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.5054, allocations: 2.778 MB / 0.5047 GB, free: 16.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005421/0.5059, allocations: 0.724 MB / 0.5054 GB, free: 15.45 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001182/0.5071, allocations: 1.178 MB / 0.5065 GB, free: 14.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.856e-05/0.5072, allocations: 309.1 kB / 0.5068 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/0.5097, allocations: 2.381 MB / 0.5092 GB, free: 11.57 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003652/0.5134, allocations: 5.632 MB / 0.5147 GB, free: 4.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008468/0.5219, allocations: 8.571 MB / 0.523 GB, free: 10.16 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.068e-05/0.522, allocations: 32 kB / 0.5231 GB, free: 10.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01876/0.5408, allocations: 9.632 MB / 0.5325 GB, free: 492 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.791e-05/0.5409, allocations: 56.91 kB / 0.5325 GB, free: 436 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001347/0.541, allocations: 112 kB / 0.5326 GB, free: 324 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005679/0.5467, allocations: 2.022 MB / 0.5346 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004123/0.5509, allocations: 1.283 MB / 0.5359 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01501/0.5659, allocations: 11.35 MB / 0.5469 GB, free: 1.512 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004365/0.5703, allocations: 335.5 kB / 0.5473 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006505/0.571, allocations: 342.3 kB / 0.5476 GB, free: 0.8516 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.002885/0.5739, allocations: 1.943 MB / 0.5495 GB, free: 14.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006743/0.5745, allocations: 347.5 kB / 0.5498 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009474/0.584, allocations: 4.88 MB / 0.5546 GB, free: 9.652 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.371e-05/0.5841, allocations: 24 kB / 0.5546 GB, free: 9.629 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/0.5841, allocations: 8 kB / 0.5546 GB, free: 9.621 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.772e-05/0.5842, allocations: 7.969 kB / 0.5546 GB, free: 9.613 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01804/0.6022, allocations: 10.02 MB / 0.5644 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.384e-05/0.6023, allocations: 4.062 kB / 0.5644 GB, free: 15.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00128/0.6036, allocations: 267.6 kB / 0.5647 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005284/0.6089, allocations: 1.846 MB / 0.5665 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/0.6091, allocations: 36 kB / 0.5665 GB, free: 13.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01401/0.6231, allocations: 10.39 MB / 0.5767 GB, free: 2.875 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.6232, allocations: 3.938 kB / 0.5767 GB, free: 2.871 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01353/0.6367, allocations: 7.959 MB / 0.5844 GB, free: 10.89 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/0.6386, allocations: 0.7191 MB / 0.5851 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005204/0.6392, allocations: 35.56 kB / 0.5852 GB, free: 10.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.6408, allocations: 139.2 kB / 0.5853 GB, free: 9.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004042/0.6412, allocations: 121 kB / 0.5854 GB, free: 9.859 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.6414, allocations: 44.56 kB / 0.5855 GB, free: 9.816 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003591/0.645, allocations: 2.504 MB / 0.5879 GB, free: 7.332 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.645, allocations: 4 kB / 0.5879 GB, free: 7.328 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004858/0.6499, allocations: 1.064 MB / 0.5889 GB, free: 6.27 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.0005214/0.6504, allocations: 171.7 kB / 0.5891 GB, free: 6.102 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008784/0.6592, allocations: 5.826 MB / 0.5948 GB, free: 292 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.6592, allocations: 0 / 0.5948 GB, free: 292 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003049/0.6623, allocations: 2.096 MB / 0.5968 GB, free: 14.18 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.6652, allocations: 470 kB / 0.5973 GB, free: 13.73 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01531/0.6805, allocations: 9.455 MB / 0.6065 GB, free: 4.242 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00365/0.6842, allocations: 3.099 MB / 0.6096 GB, free: 1.113 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004037/0.6883, allocations: 1.815 MB / 0.6113 GB, free: 15.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007024/0.689, allocations: 235.3 kB / 0.6116 GB, free: 15.06 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/0.689, allocations: 0 / 0.6116 GB, free: 15.06 MB / 494.1 MB Notification: Performance of Templates: time 0.2652/0.9542, allocations: 42.33 MB / 0.6529 GB, free: 154.3 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)