Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0009884/0.0009884, allocations: 87.3 kB / 15.06 MB, free: 1.082 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.001234/0.001234, allocations: 176.7 kB / 15.96 MB, free: 196 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.4 MB / 222.1 MB, free: 5.887 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.0004281/0.0004282, allocations: 8 kB / 278.9 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2237, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum): time 0.03016/0.2539, allocations: 34.77 MB / 361.2 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01726/0.2712, allocations: 8.198 MB / 369.4 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00613/0.2773, allocations: 167.6 kB / 369.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005824/0.2832, allocations: 1.765 MB / 371.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01442/0.2976, allocations: 5.514 MB / 376.9 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.3, allocations: 0.6357 MB / 377.5 MB, free: 364 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0449/0.345, allocations: 33.54 MB / 411.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005141/0.3501, allocations: 3.501 MB / 414.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.3521, allocations: 1.257 MB / 415.8 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002472/0.3546, allocations: 1.978 MB / 417.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003938/0.355, allocations: 128 kB / 417.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.3567, allocations: 0.9206 MB / 418.8 MB, free: 6.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001524/0.3582, allocations: 1.667 MB / 420.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007984/0.359, allocations: 0.7727 MB / 421.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004756/0.3638, allocations: 5.11 MB / 426.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3638, allocations: 0 / 426.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3638, allocations: 0 / 426.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001573/0.364, allocations: 0 / 426.4 MB, free: 15.34 MB / 366.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.007389/0.3714, allocations: 3.933 MB / 430.3 MB, free: 11.34 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3714, allocations: 12.03 kB / 430.3 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02117/0.3926, allocations: 3.162 MB / 433.5 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007063/0.3997, allocations: 3.312 MB / 436.8 MB, free: 4.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.3999, allocations: 197 kB / 437 MB, free: 4.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006204/0.4005, allocations: 271.7 kB / 437.3 MB, free: 4.324 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01409/0.4146, allocations: 8.859 MB / 446.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.4148, allocations: 47.5 kB / 446.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003579/0.4151, allocations: 127.9 kB / 446.3 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002845/0.418, allocations: 1.77 MB / 448.1 MB, free: 8.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01395/0.432, allocations: 7.772 MB / 455.8 MB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2004/0.6324, allocations: 36.05 MB / 491.9 MB, free: 85.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006896/0.6393, allocations: 3.816 MB / 495.7 MB, free: 82.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0021/0.6414, allocations: 2.156 MB / 497.9 MB, free: 80.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003069/0.6418, allocations: 336.5 kB / 498.2 MB, free: 80.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.6418, allocations: 47.56 kB / 498.2 MB, free: 80.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=160): time 4.138e-06/0.6418, allocations: 0 / 498.2 MB, free: 80.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=190): time 0.04799/0.6898, allocations: 21.43 MB / 0.5075 GB, free: 58.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.6899, allocations: 252.6 kB / 0.5077 GB, free: 58.44 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004253/0.6941, allocations: 3.935 MB / 0.5116 GB, free: 54.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003199/0.6945, allocations: 55.73 kB / 0.5116 GB, free: 54.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.6957, allocations: 2.772 MB / 0.5143 GB, free: 51.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005706/0.6963, allocations: 0.7212 MB / 0.515 GB, free: 50.98 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002415/0.6966, allocations: 115.2 kB / 0.5151 GB, free: 50.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.6968, allocations: 0.5536 MB / 0.5157 GB, free: 50.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002778/0.6996, allocations: 2.354 MB / 0.518 GB, free: 47.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003712/0.7033, allocations: 5.616 MB / 0.5235 GB, free: 40.72 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003934/0.7072, allocations: 3.574 MB / 0.527 GB, free: 37.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.002e-05/0.7073, allocations: 32 kB / 0.527 GB, free: 37.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=749) (initialization): time 0.01383/0.7211, allocations: 9.568 MB / 0.5363 GB, free: 27.53 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.147e-05/0.7212, allocations: 59.98 kB / 0.5364 GB, free: 27.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.85e-05/0.7213, allocations: 112.9 kB / 0.5365 GB, free: 27.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004598/0.7259, allocations: 2.045 MB / 0.5385 GB, free: 25.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003391/0.7293, allocations: 1.275 MB / 0.5397 GB, free: 24.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01172/0.741, allocations: 10.52 MB / 0.55 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004027/0.7451, allocations: 351.4 kB / 0.5504 GB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004769/0.7456, allocations: 344 kB / 0.5507 GB, free: 12.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,87.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002401/0.748, allocations: 1.943 MB / 0.5526 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004822/0.7485, allocations: 347.5 kB / 0.5529 GB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007967/0.7565, allocations: 4.88 MB / 0.5577 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.101e-05/0.7565, allocations: 20 kB / 0.5577 GB, free: 5.484 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.7565, allocations: 8 kB / 0.5577 GB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.7566, allocations: 11.97 kB / 0.5577 GB, free: 5.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01616/0.7727, allocations: 10.05 MB / 0.5675 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.7728, allocations: 3.984 kB / 0.5675 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.774, allocations: 263.6 kB / 0.5678 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/0.779, allocations: 1.846 MB / 0.5696 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00021/0.7792, allocations: 31.98 kB / 0.5696 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.7929, allocations: 9.701 MB / 0.5791 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7929, allocations: 0 / 0.5791 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01266/0.8056, allocations: 7.926 MB / 0.5868 GB, free: 7.426 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00173/0.8073, allocations: 0.7308 MB / 0.5875 GB, free: 6.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007767/0.8081, allocations: 32 kB / 0.5876 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/0.8099, allocations: 142.9 kB / 0.5877 GB, free: 6.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003264/0.8103, allocations: 113 kB / 0.5878 GB, free: 6.395 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001468/0.8104, allocations: 55.52 kB / 0.5879 GB, free: 6.344 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003667/0.8141, allocations: 2.484 MB / 0.5903 GB, free: 3.879 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8141, allocations: 0 / 0.5903 GB, free: 3.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004673/0.8188, allocations: 1.061 MB / 0.5913 GB, free: 2.82 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 33} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004372/0.8193, allocations: 176.3 kB / 0.5915 GB, free: 2.645 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00894/0.8282, allocations: 5.773 MB / 0.5971 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.8283, allocations: 0 / 0.5971 GB, free: 12.88 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/0.8313, allocations: 2.093 MB / 0.5992 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002721/0.834, allocations: 445.3 kB / 0.5996 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1776/1.012, allocations: 10.98 MB / 0.6103 GB, free: 148.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003785/1.015, allocations: 3.094 MB / 0.6134 GB, free: 147.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004323/1.02, allocations: 1.827 MB / 0.6151 GB, free: 147.9 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007562/1.021, allocations: 233.8 kB / 0.6154 GB, free: 147.9 MB / 430.1 MB Notification: Performance of SimCode: time 1.142e-06/1.021, allocations: 3.906 kB / 0.6154 GB, free: 147.9 MB / 430.1 MB Notification: Performance of Templates: time 0.0617/1.082, allocations: 41.79 MB / 0.6562 GB, free: 115.6 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.DoublePendulum.pipe 2>&1)