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.00138/0.00138, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001613/0.001613, allocations: 190.6 kB / 16.14 MB, free: 6.707 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 MB, free: 4.766 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.001125/0.001125, allocations: 56.3 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1914/0.1925, allocations: 46.63 MB / 324.7 MB, free: 2.148 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03197/0.2245, allocations: 38.42 MB / 363.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01918/0.2437, allocations: 8.656 MB / 371.8 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007843/0.2516, allocations: 167.6 kB / 371.9 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004818/0.2565, allocations: 2.197 MB / 374.1 MB, free: 2.699 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004422/0.2609, allocations: 1.74 MB / 375.9 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001635/0.2626, allocations: 0.6787 MB / 376.5 MB, free: 280 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007611/0.2702, allocations: 6.742 MB / 383.3 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003556/0.2738, allocations: 2.81 MB / 386.1 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002329/0.2761, allocations: 1.315 MB / 387.4 MB, free: 5.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003161/0.2793, allocations: 2.196 MB / 389.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007875/0.2801, allocations: 196 kB / 389.8 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002747/0.2829, allocations: 1.147 MB / 390.9 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00179/0.2847, allocations: 1.784 MB / 392.7 MB, free: 0 / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00196/0.2867, allocations: 1.976 MB / 394.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005523/0.2922, allocations: 6.402 MB / 401.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2922, allocations: 0 / 401.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2922, allocations: 0 / 401.1 MB, free: 7.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001092/0.2923, allocations: 0 / 401.1 MB, free: 7.59 MB / 334.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.008122/0.3005, allocations: 4.69 MB / 405.8 MB, free: 2.828 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3005, allocations: 8.031 kB / 405.8 MB, free: 2.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02378/0.3243, allocations: 3.085 MB / 408.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00752/0.3319, allocations: 3.374 MB / 412.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.3321, allocations: 204.9 kB / 412.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001072/0.3332, allocations: 267.8 kB / 412.7 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.3477, allocations: 8.859 MB / 421.6 MB, free: 2.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001222/0.3479, allocations: 43.56 kB / 421.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003612/0.3482, allocations: 131.9 kB / 421.7 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002779/0.351, allocations: 1.778 MB / 423.5 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01373/0.3648, allocations: 7.78 MB / 431.3 MB, free: 8.582 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2005/0.5654, allocations: 36.03 MB / 467.3 MB, free: 90.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007534/0.5729, allocations: 3.81 MB / 471.1 MB, free: 90.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002086/0.5751, allocations: 2.16 MB / 473.3 MB, free: 89.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.5754, allocations: 324 kB / 473.6 MB, free: 88.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.5755, allocations: 50.2 kB / 473.7 MB, free: 88.79 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.028e-06/0.5755, allocations: 7.5 kB / 473.7 MB, free: 88.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.049/0.6245, allocations: 21.45 MB / 495.1 MB, free: 73.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.351e-05/0.6246, allocations: 252.2 kB / 495.4 MB, free: 73.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00526/0.6299, allocations: 3.957 MB / 499.3 MB, free: 69.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002321/0.6301, allocations: 57.7 kB / 499.4 MB, free: 69.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.6314, allocations: 2.775 MB / 0.4904 GB, free: 66.56 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005865/0.632, allocations: 0.7259 MB / 0.4911 GB, free: 65.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001252/0.6332, allocations: 1.174 MB / 0.4923 GB, free: 64.65 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.707e-05/0.6333, allocations: 305.1 kB / 0.4925 GB, free: 64.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.6357, allocations: 2.383 MB / 0.4949 GB, free: 61.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003343/0.6391, allocations: 5.638 MB / 0.5004 GB, free: 54.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006967/0.6461, allocations: 8.574 MB / 0.5087 GB, free: 44.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.3e-05/0.6461, allocations: 32 kB / 0.5088 GB, free: 44.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01305/0.6592, allocations: 9.624 MB / 0.5182 GB, free: 35.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.6593, allocations: 59.98 kB / 0.5182 GB, free: 34.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-05/0.6593, allocations: 112 kB / 0.5183 GB, free: 34.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004651/0.664, allocations: 2.014 MB / 0.5203 GB, free: 32.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003098/0.6671, allocations: 1.293 MB / 0.5216 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01099/0.6781, allocations: 10.58 MB / 0.5319 GB, free: 20.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003442/0.6816, allocations: 351.4 kB / 0.5322 GB, free: 20.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004231/0.682, allocations: 344 kB / 0.5326 GB, free: 20.17 MB / 382.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.002178/0.6842, allocations: 1.936 MB / 0.5345 GB, free: 18.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005498/0.6847, allocations: 347.5 kB / 0.5348 GB, free: 17.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007349/0.6921, allocations: 4.891 MB / 0.5396 GB, free: 12.97 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-05/0.6921, allocations: 24 kB / 0.5396 GB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.6921, allocations: 8 kB / 0.5396 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.6922, allocations: 7.969 kB / 0.5396 GB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01371/0.7059, allocations: 10.05 MB / 0.5494 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/0.7059, allocations: 0 / 0.5494 GB, free: 2.844 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.707, allocations: 267.6 kB / 0.5497 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004504/0.7116, allocations: 1.842 MB / 0.5515 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001938/0.7118, allocations: 35.98 kB / 0.5515 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/0.7251, allocations: 9.699 MB / 0.561 GB, free: 6.848 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.7251, allocations: 4.031 kB / 0.561 GB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01304/0.7381, allocations: 7.958 MB / 0.5688 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001625/0.7398, allocations: 0.7268 MB / 0.5695 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007558/0.7406, allocations: 28 kB / 0.5695 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/0.7423, allocations: 139.8 kB / 0.5696 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000397/0.7427, allocations: 113 kB / 0.5697 GB, free: 13.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.7429, allocations: 51.94 kB / 0.5698 GB, free: 13.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004058/0.747, allocations: 2.504 MB / 0.5722 GB, free: 11.3 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.747, allocations: 0 / 0.5722 GB, free: 11.3 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00436/0.7514, allocations: 1.073 MB / 0.5733 GB, free: 10.23 MB / 414.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.0004068/0.7518, allocations: 165.3 kB / 0.5734 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.008099/0.7599, allocations: 5.806 MB / 0.5791 GB, free: 4.273 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.008e-06/0.7599, allocations: 0 / 0.5791 GB, free: 4.273 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/0.7626, allocations: 2.094 MB / 0.5812 GB, free: 2.172 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/0.7653, allocations: 431.4 kB / 0.5816 GB, free: 1.75 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/0.782, allocations: 11.34 MB / 0.5926 GB, free: 6.355 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/0.7851, allocations: 3.095 MB / 0.5957 GB, free: 3.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004481/0.7896, allocations: 1.815 MB / 0.5974 GB, free: 1.406 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006637/0.7903, allocations: 239.4 kB / 0.5977 GB, free: 1.172 MB / 430.1 MB Notification: Performance of SimCode: time 2.164e-06/0.7903, allocations: 0 / 0.5977 GB, free: 1.172 MB / 430.1 MB Notification: Performance of Templates: time 0.2151/1.005, allocations: 43.54 MB / 0.6402 GB, free: 150.2 MB / 446.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)