Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.00595/0.00595, allocations: 101.1 kB / 15.73 MB, free: 6.473 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.001152/0.001152, allocations: 195 kB / 16.67 MB, free: 6.379 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.473/1.473, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.00115/0.00115, allocations: 58.28 kB / 326.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1038, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008403/0.1122, allocations: 7.121 MB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007713/0.12, allocations: 3.147 MB / 383.4 MB, free: 7.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.1213, allocations: 31.94 kB / 383.5 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.1232, allocations: 0.786 MB / 384.3 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00357/0.1268, allocations: 1.339 MB / 385.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.128, allocations: 0.499 MB / 386.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004269/0.1323, allocations: 2.543 MB / 388.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001644/0.1339, allocations: 1.165 MB / 389.8 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001213/0.1352, allocations: 0.7666 MB / 390.6 MB, free: 15.85 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.1366, allocations: 1.109 MB / 391.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002896/0.1369, allocations: 136 kB / 391.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.1386, allocations: 0.8736 MB / 392.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008824/0.1395, allocations: 1.005 MB / 393.7 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001123/0.1406, allocations: 1.188 MB / 394.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.145, allocations: 3.966 MB / 398.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.145, allocations: 0 / 398.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.145, allocations: 0 / 398.8 MB, free: 7.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.11e-05/0.1451, allocations: 0 / 398.8 MB, free: 7.547 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.005461/0.1505, allocations: 2.886 MB / 401.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1506, allocations: 11.97 kB / 401.7 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00563/0.1562, allocations: 1.639 MB / 403.4 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.1588, allocations: 1.39 MB / 404.8 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.841e-05/0.1589, allocations: 118.9 kB / 404.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003264/0.1592, allocations: 151.8 kB / 405 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008894/0.1681, allocations: 6.367 MB / 411.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.022e-05/0.1682, allocations: 35.66 kB / 411.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002311/0.1685, allocations: 83.81 kB / 411.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002298/0.1708, allocations: 1.433 MB / 413 MB, free: 8.801 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009898/0.1807, allocations: 5.666 MB / 418.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/0.2105, allocations: 26.2 MB / 444.8 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004309/0.2149, allocations: 2.27 MB / 447.1 MB, free: 5.672 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/0.2163, allocations: 1.026 MB / 448.1 MB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.794e-05/0.2163, allocations: 15.98 kB / 448.1 MB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.2164, allocations: 42.56 kB / 448.2 MB, free: 4.566 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.857e-06/0.2164, allocations: 0 / 448.2 MB, free: 4.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.229/0.4454, allocations: 8.6 MB / 456.8 MB, free: 69.62 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.503e-05/0.4455, allocations: 140.3 kB / 456.9 MB, free: 69.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003927/0.4494, allocations: 2.825 MB / 459.7 MB, free: 68.71 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.4496, allocations: 40.95 kB / 459.8 MB, free: 68.67 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.4506, allocations: 2.075 MB / 461.9 MB, free: 67.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003658/0.451, allocations: 442 kB / 462.3 MB, free: 66.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009818/0.452, allocations: 0.8838 MB / 463.2 MB, free: 66.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.818e-05/0.452, allocations: 302.1 kB / 463.5 MB, free: 66.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.454, allocations: 1.416 MB / 464.9 MB, free: 65.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003226/0.4573, allocations: 4.252 MB / 469.1 MB, free: 61.35 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004854/0.4621, allocations: 6.127 MB / 475.3 MB, free: 56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.035e-05/0.4622, allocations: 31.38 kB / 475.3 MB, free: 56 MB / 382.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.008244/0.4705, allocations: 6.104 MB / 481.4 MB, free: 53.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.802e-05/0.4706, allocations: 52.56 kB / 481.4 MB, free: 53.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.385e-05/0.4706, allocations: 100.8 kB / 481.5 MB, free: 53.85 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001907/0.4725, allocations: 0.797 MB / 482.3 MB, free: 53.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002244/0.4748, allocations: 0.9886 MB / 483.3 MB, free: 52.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.4791, allocations: 4.48 MB / 487.8 MB, free: 48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003015/0.4821, allocations: 247.4 kB / 488.1 MB, free: 47.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002966/0.4824, allocations: 280 kB / 488.3 MB, free: 47.49 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.001839/0.4842, allocations: 1.373 MB / 489.7 MB, free: 46.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003828/0.4846, allocations: 232.9 kB / 489.9 MB, free: 45.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/0.4878, allocations: 1.854 MB / 491.8 MB, free: 44.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.4878, allocations: 12 kB / 491.8 MB, free: 44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.595e-05/0.4878, allocations: 4 kB / 491.8 MB, free: 44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4878, allocations: 10.22 kB / 491.8 MB, free: 43.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006483/0.4943, allocations: 4.789 MB / 496.6 MB, free: 39.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.4944, allocations: 4 kB / 496.6 MB, free: 39.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005141/0.4949, allocations: 139.7 kB / 496.7 MB, free: 39.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001658/0.4965, allocations: 0.6483 MB / 497.4 MB, free: 38.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.705e-05/0.4966, allocations: 20 kB / 497.4 MB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003668/0.5003, allocations: 3.956 MB / 0.4896 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5003, allocations: 0 / 0.4896 GB, free: 34.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00441/0.5047, allocations: 3.685 MB / 0.4932 GB, free: 30.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006783/0.5054, allocations: 437.8 kB / 0.4936 GB, free: 30.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002122/0.5056, allocations: 16.86 kB / 0.4936 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007806/0.5064, allocations: 63.98 kB / 0.4937 GB, free: 30 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.5066, allocations: 59.86 kB / 0.4938 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.539e-05/0.5066, allocations: 27.44 kB / 0.4938 GB, free: 29.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.5085, allocations: 1.766 MB / 0.4955 GB, free: 28.15 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5085, allocations: 0 / 0.4955 GB, free: 28.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00293/0.5115, allocations: 0.6445 MB / 0.4961 GB, free: 27.5 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.000263/0.5117, allocations: 147.6 kB / 0.4963 GB, free: 27.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.5159, allocations: 3.418 MB / 0.4996 GB, free: 23.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5159, allocations: 0 / 0.4996 GB, free: 23.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009801/0.5169, allocations: 0.9249 MB / 0.5005 GB, free: 23.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.5182, allocations: 283.5 kB / 0.5008 GB, free: 22.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00684/0.5251, allocations: 5.428 MB / 0.5061 GB, free: 17.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.5267, allocations: 2.191 MB / 0.5082 GB, free: 15.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002463/0.5291, allocations: 1.402 MB / 0.5096 GB, free: 13.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003158/0.5295, allocations: 163.4 kB / 0.5098 GB, free: 13.5 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5295, allocations: 0 / 0.5098 GB, free: 13.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03577/0.5652, allocations: 20.73 MB / 0.53 GB, free: 8.809 MB / 398.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1)