Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001663/0.001663, allocations: 112.5 kB / 15.74 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001662/0.001662, allocations: 198 kB / 16.67 MB, free: 6.582 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.502/1.502, 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.001317/0.001317, allocations: 51 kB / 326.5 MB, free: 14.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1171, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01271/0.1299, allocations: 7.117 MB / 380.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009343/0.1393, allocations: 3.158 MB / 383.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001418/0.1407, allocations: 31.94 kB / 383.5 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002718/0.1435, allocations: 0.782 MB / 384.3 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004066/0.1476, allocations: 1.339 MB / 385.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001742/0.1494, allocations: 0.4912 MB / 386.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004907/0.1543, allocations: 2.543 MB / 388.6 MB, free: 1.793 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002626/0.157, allocations: 1.173 MB / 389.8 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001857/0.1589, allocations: 0.7627 MB / 390.6 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00246/0.1613, allocations: 1.106 MB / 391.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007191/0.1621, allocations: 132 kB / 391.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002705/0.1648, allocations: 0.8814 MB / 392.7 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002158/0.167, allocations: 1.001 MB / 393.7 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003019/0.17, allocations: 1.195 MB / 394.9 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007247/0.1773, allocations: 3.979 MB / 398.9 MB, free: 7.508 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.1773, allocations: 4 kB / 398.9 MB, free: 7.504 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1774, allocations: 3.938 kB / 398.9 MB, free: 7.5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001135/0.1775, allocations: 0 / 398.9 MB, free: 7.5 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.007534/0.185, allocations: 2.959 MB / 401.8 MB, free: 4.477 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.1851, allocations: 12.03 kB / 401.8 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006022/0.1911, allocations: 1.656 MB / 403.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003139/0.1943, allocations: 1.387 MB / 404.9 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.1944, allocations: 118.9 kB / 405 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003926/0.1948, allocations: 155.8 kB / 405.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.2053, allocations: 6.359 MB / 411.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.2054, allocations: 35.69 kB / 411.5 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003325/0.2058, allocations: 79.89 kB / 411.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002675/0.2085, allocations: 1.441 MB / 413.1 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01144/0.2199, allocations: 5.67 MB / 418.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03427/0.2542, allocations: 26.26 MB / 445 MB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004564/0.2588, allocations: 2.266 MB / 447.3 MB, free: 5.488 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.2603, allocations: 1.018 MB / 448.3 MB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.955e-05/0.2604, allocations: 19.92 kB / 448.3 MB, free: 4.438 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.2604, allocations: 46.5 kB / 448.3 MB, free: 4.383 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.807e-06/0.2604, allocations: 0 / 448.3 MB, free: 4.383 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.2405/0.5009, allocations: 8.733 MB / 457.1 MB, free: 69.47 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.087e-05/0.501, allocations: 138.2 kB / 457.2 MB, free: 69.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.5053, allocations: 2.837 MB / 460 MB, free: 68.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001542/0.5055, allocations: 41.05 kB / 460.1 MB, free: 68.56 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001219/0.5067, allocations: 2.155 MB / 462.2 MB, free: 67.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/0.5072, allocations: 460.2 kB / 462.7 MB, free: 66.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001017/0.5082, allocations: 0.8903 MB / 463.6 MB, free: 66.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.5082, allocations: 307.1 kB / 463.9 MB, free: 66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001977/0.5102, allocations: 1.411 MB / 465.3 MB, free: 65.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002855/0.5131, allocations: 4.254 MB / 469.5 MB, free: 61.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004733/0.5178, allocations: 6.133 MB / 475.7 MB, free: 55.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.316e-05/0.5179, allocations: 31.44 kB / 475.7 MB, free: 55.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.00847/0.5264, allocations: 6.12 MB / 481.8 MB, free: 53.79 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.117e-05/0.5264, allocations: 51.44 kB / 481.9 MB, free: 53.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.286e-05/0.5265, allocations: 104.3 kB / 482 MB, free: 53.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001986/0.5285, allocations: 0.7921 MB / 482.8 MB, free: 53.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002234/0.5308, allocations: 0.9903 MB / 483.8 MB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004332/0.5351, allocations: 4.487 MB / 488.2 MB, free: 47.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003359/0.5385, allocations: 243.6 kB / 488.5 MB, free: 47.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002783/0.5388, allocations: 276 kB / 488.7 MB, free: 47.35 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (537): * Single equations (assignments): 533 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001568/0.5404, allocations: 1.37 MB / 490.1 MB, free: 45.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.5407, allocations: 249.9 kB / 490.4 MB, free: 45.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.5438, allocations: 1.853 MB / 492.2 MB, free: 43.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.5438, allocations: 18.56 kB / 492.2 MB, free: 43.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.5438, allocations: 4 kB / 492.2 MB, free: 43.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.365e-06/0.5438, allocations: 4.531 kB / 492.2 MB, free: 43.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007209/0.5511, allocations: 4.786 MB / 497 MB, free: 39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.5511, allocations: 4 kB / 497 MB, free: 39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000539/0.5516, allocations: 131.8 kB / 497.2 MB, free: 38.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001743/0.5534, allocations: 0.6483 MB / 497.8 MB, free: 38.22 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.284e-05/0.5535, allocations: 21.05 kB / 497.8 MB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003682/0.5571, allocations: 3.956 MB / 0.49 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.5572, allocations: 0 / 0.49 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004601/0.5618, allocations: 3.71 MB / 0.4937 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.5628, allocations: 459.1 kB / 0.4941 GB, free: 29.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/0.563, allocations: 16.06 kB / 0.4941 GB, free: 29.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008535/0.5639, allocations: 63.91 kB / 0.4942 GB, free: 29.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.564, allocations: 55.08 kB / 0.4942 GB, free: 29.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.986e-05/0.5641, allocations: 31.98 kB / 0.4942 GB, free: 29.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001909/0.566, allocations: 1.762 MB / 0.496 GB, free: 27.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.566, allocations: 0 / 0.496 GB, free: 27.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003196/0.5692, allocations: 0.6406 MB / 0.4966 GB, free: 27.33 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (75): * Single equations (assignments): 71 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000294/0.5695, allocations: 150.2 kB / 0.4967 GB, free: 27.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004156/0.5737, allocations: 3.427 MB / 0.5001 GB, free: 23.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.5737, allocations: 0 / 0.5001 GB, free: 23.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000893/0.5746, allocations: 0.9251 MB / 0.501 GB, free: 22.82 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001419/0.5761, allocations: 270.2 kB / 0.5012 GB, free: 22.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006314/0.5824, allocations: 5.529 MB / 0.5066 GB, free: 16.99 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001476/0.5839, allocations: 2.188 MB / 0.5088 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002274/0.5862, allocations: 1.4 MB / 0.5101 GB, free: 13.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003031/0.5865, allocations: 159.4 kB / 0.5103 GB, free: 13.22 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.5865, allocations: 4 kB / 0.5103 GB, free: 13.21 MB / 382.1 MB Notification: Performance of Templates: time 0.03766/0.6241, allocations: 20.72 MB / 0.5305 GB, free: 8.531 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)