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.0007686/0.0007686, allocations: 90.72 kB / 16.65 MB, free: 6.535 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.0007781/0.0007781, allocations: 177 kB / 17.56 MB, free: 6.18 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.311/1.311, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004707/0.0004707, allocations: 8 kB / 280.7 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.08872, allocations: 47.59 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03211/0.1209, allocations: 37.35 MB / 365.7 MB, free: 14.26 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.1376, allocations: 8.598 MB / 374.3 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006018/0.1437, allocations: 163.6 kB / 374.4 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001283/0.145, allocations: 394 kB / 374.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003995/0.149, allocations: 1.748 MB / 376.6 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001375/0.1504, allocations: 0.702 MB / 377.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.169/0.3194, allocations: 6.708 MB / 384 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005356/0.3248, allocations: 3.884 MB / 387.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001719/0.3265, allocations: 1.156 MB / 389 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002398/0.3289, allocations: 1.988 MB / 391 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003636/0.3293, allocations: 132.8 kB / 391.1 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.331, allocations: 1.082 MB / 392.2 MB, free: 9.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.3324, allocations: 1.692 MB / 393.9 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001473/0.3339, allocations: 1.883 MB / 395.8 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004535/0.3384, allocations: 6.241 MB / 402 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.3385, allocations: 0 / 402 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3385, allocations: 0 / 402 MB, free: 5.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001122/0.3386, allocations: 0 / 402 MB, free: 5.641 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.007084/0.3457, allocations: 3.885 MB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.3457, allocations: 9.281 kB / 405.9 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02739/0.3731, allocations: 3.166 MB / 409.1 MB, free: 1.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007033/0.3802, allocations: 3.374 MB / 412.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.3804, allocations: 200.6 kB / 412.7 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006576/0.381, allocations: 271.6 kB / 412.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01352/0.3946, allocations: 8.874 MB / 421.8 MB, free: 8.922 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.3947, allocations: 55.39 kB / 421.9 MB, free: 8.887 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003581/0.3951, allocations: 129.8 kB / 422 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003041/0.3981, allocations: 1.768 MB / 423.8 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01399/0.4121, allocations: 7.8 MB / 431.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04061/0.4528, allocations: 36.07 MB / 467.6 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008148/0.461, allocations: 3.811 MB / 471.4 MB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002805/0.4638, allocations: 2.155 MB / 473.6 MB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005021/0.4644, allocations: 330.2 kB / 473.9 MB, free: 4.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.005e-05/0.4644, allocations: 57.62 kB / 474 MB, free: 4.176 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 5.531e-06/0.4645, allocations: 0 / 474 MB, free: 4.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.0557/0.5202, allocations: 21.45 MB / 495.4 MB, free: 14.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5204, allocations: 259.5 kB / 495.7 MB, free: 14.37 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006229/0.5266, allocations: 3.955 MB / 499.6 MB, free: 10.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005613/0.5272, allocations: 49.7 kB / 499.7 MB, free: 10.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002051/0.5292, allocations: 2.781 MB / 0.4907 GB, free: 7.598 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009415/0.5302, allocations: 0.7241 MB / 0.4914 GB, free: 6.879 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006446/0.5309, allocations: 0.497 MB / 0.4919 GB, free: 6.375 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.209e-05/0.531, allocations: 306.3 kB / 0.4922 GB, free: 6.074 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003531/0.5345, allocations: 2.381 MB / 0.4945 GB, free: 3.688 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00545/0.54, allocations: 5.638 MB / 0.5 GB, free: 12.49 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00981/0.5498, allocations: 8.571 MB / 0.5084 GB, free: 2.797 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.208e-05/0.5499, allocations: 32 kB / 0.5084 GB, free: 2.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01738/0.5673, allocations: 9.642 MB / 0.5178 GB, free: 9.805 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.849e-05/0.5674, allocations: 52 kB / 0.5179 GB, free: 9.754 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001105/0.5675, allocations: 112 kB / 0.518 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005529/0.573, allocations: 2.023 MB / 0.5199 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004186/0.5772, allocations: 1.282 MB / 0.5212 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01434/0.5916, allocations: 10.59 MB / 0.5315 GB, free: 11.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004523/0.5962, allocations: 346.2 kB / 0.5319 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007504/0.5969, allocations: 343.9 kB / 0.5322 GB, free: 10.99 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.003478/0.6004, allocations: 1.951 MB / 0.5341 GB, free: 9.027 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007843/0.6012, allocations: 347.5 kB / 0.5344 GB, free: 8.684 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009629/0.6109, allocations: 4.888 MB / 0.5392 GB, free: 3.781 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.469e-05/0.6109, allocations: 20 kB / 0.5392 GB, free: 3.762 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.611, allocations: 8 kB / 0.5392 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.82e-05/0.611, allocations: 7.969 kB / 0.5392 GB, free: 3.746 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1822/0.7932, allocations: 10.03 MB / 0.549 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/0.7933, allocations: 3.328 kB / 0.549 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.7946, allocations: 275.8 kB / 0.5493 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005427/0.8, allocations: 1.842 MB / 0.5511 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002529/0.8003, allocations: 31.42 kB / 0.5511 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/0.8131, allocations: 9.715 MB / 0.5606 GB, free: 169.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.8131, allocations: 2.797 kB / 0.5606 GB, free: 169.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01209/0.8252, allocations: 7.947 MB / 0.5684 GB, free: 166.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/0.827, allocations: 0.7352 MB / 0.5691 GB, free: 166.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/0.8274, allocations: 27.88 kB / 0.5691 GB, free: 166.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00163/0.8291, allocations: 139.7 kB / 0.5692 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004149/0.8295, allocations: 115.9 kB / 0.5694 GB, free: 166.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/0.8297, allocations: 44.05 kB / 0.5694 GB, free: 166.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004287/0.834, allocations: 2.506 MB / 0.5718 GB, free: 165.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.834, allocations: 0 / 0.5718 GB, free: 165.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005573/0.8396, allocations: 1.066 MB / 0.5729 GB, free: 165.4 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.0006091/0.8402, allocations: 173 kB / 0.5731 GB, free: 165.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008226/0.8484, allocations: 5.8 MB / 0.5787 GB, free: 161.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/0.8485, allocations: 0 / 0.5787 GB, free: 161.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002741/0.8512, allocations: 2.088 MB / 0.5808 GB, free: 159.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003749/0.855, allocations: 451.6 kB / 0.5812 GB, free: 159.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01509/0.8701, allocations: 11.43 MB / 0.5924 GB, free: 148.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002858/0.873, allocations: 3.106 MB / 0.5954 GB, free: 145 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004099/0.8771, allocations: 1.819 MB / 0.5972 GB, free: 143.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008121/0.878, allocations: 235.4 kB / 0.5974 GB, free: 143 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.878, allocations: 0 / 0.5974 GB, free: 143 MB / 462.1 MB Notification: Performance of Templates: time 0.0643/0.9423, allocations: 42.67 MB / 0.6391 GB, free: 100.3 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)