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.008621/0.008621, allocations: 98.92 kB / 15.73 MB, free: 6.055 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.00196/0.001961, allocations: 198.2 kB / 16.68 MB, free: 5.977 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.434/1.434, allocations: 205.1 MB / 222.5 MB, free: 12.24 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.001345/0.001345, allocations: 51.92 kB / 326.6 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1163, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.238/0.3543, allocations: 7.121 MB / 380.3 MB, free: 9.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006095/0.3604, allocations: 3.161 MB / 383.4 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.3615, allocations: 31.69 kB / 383.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001813/0.3634, allocations: 0.7852 MB / 384.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003691/0.3671, allocations: 1.319 MB / 385.6 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.3684, allocations: 0.4973 MB / 386.1 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004119/0.3726, allocations: 2.531 MB / 388.6 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002015/0.3746, allocations: 1.164 MB / 389.8 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.3763, allocations: 0.7646 MB / 390.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001985/0.3783, allocations: 1.104 MB / 391.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004849/0.3788, allocations: 134.6 kB / 391.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002268/0.3811, allocations: 0.8771 MB / 392.7 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.3822, allocations: 1.002 MB / 393.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001109/0.3833, allocations: 1.197 MB / 394.9 MB, free: 3.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005494/0.3888, allocations: 3.975 MB / 398.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3889, allocations: 1.156 kB / 398.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3889, allocations: 0 / 398.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001156/0.389, allocations: 3.938 kB / 398.8 MB, free: 1.371 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.007583/0.3966, allocations: 2.967 MB / 401.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.3966, allocations: 9.094 kB / 401.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006326/0.403, allocations: 1.652 MB / 403.5 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/0.406, allocations: 1.393 MB / 404.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.4061, allocations: 124.6 kB / 405 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000382/0.4065, allocations: 152.3 kB / 405.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009716/0.4162, allocations: 6.368 MB / 411.5 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.263e-05/0.4163, allocations: 27.75 kB / 411.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002434/0.4166, allocations: 79.89 kB / 411.6 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002582/0.4191, allocations: 1.437 MB / 413 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01054/0.4297, allocations: 5.67 MB / 418.7 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0306/0.4603, allocations: 26.25 MB / 445 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004585/0.465, allocations: 2.266 MB / 447.2 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001344/0.4663, allocations: 1.027 MB / 448.2 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.184e-05/0.4664, allocations: 11.98 kB / 448.3 MB, free: 2.809 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.4665, allocations: 46.56 kB / 448.3 MB, free: 2.754 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 3.717e-06/0.4665, allocations: 0 / 448.3 MB, free: 2.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.02113/0.4876, allocations: 8.749 MB / 457.1 MB, free: 9.879 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.776e-05/0.4877, allocations: 140.5 kB / 457.2 MB, free: 9.711 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003818/0.4915, allocations: 2.836 MB / 460 MB, free: 6.859 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.4917, allocations: 33.7 kB / 460.1 MB, free: 6.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001381/0.4931, allocations: 2.166 MB / 462.2 MB, free: 4.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004447/0.4935, allocations: 460.7 kB / 462.7 MB, free: 4.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.4946, allocations: 0.8894 MB / 463.6 MB, free: 3.277 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.4947, allocations: 301.1 kB / 463.9 MB, free: 2.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002054/0.4968, allocations: 1.418 MB / 465.3 MB, free: 1.555 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003932/0.5008, allocations: 4.242 MB / 469.5 MB, free: 11.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006303/0.5071, allocations: 6.143 MB / 475.7 MB, free: 4.328 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-05/0.5071, allocations: 28 kB / 475.7 MB, free: 4.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01048/0.5176, allocations: 6.11 MB / 481.8 MB, free: 14.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.429e-05/0.5177, allocations: 52.03 kB / 481.8 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-05/0.5178, allocations: 100 kB / 481.9 MB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002237/0.5201, allocations: 0.7966 MB / 482.7 MB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/0.523, allocations: 0.9941 MB / 483.7 MB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006038/0.529, allocations: 4.493 MB / 488.2 MB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004971/0.534, allocations: 251.6 kB / 488.5 MB, free: 7.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008699/0.5349, allocations: 276 kB / 488.7 MB, free: 7.086 MB / 414.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.003388/0.5383, allocations: 1.364 MB / 490.1 MB, free: 5.711 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000737/0.5391, allocations: 254.3 kB / 490.4 MB, free: 5.461 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005674/0.5448, allocations: 1.845 MB / 492.2 MB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.15e-05/0.5448, allocations: 12 kB / 492.2 MB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.5449, allocations: 7.938 kB / 492.2 MB, free: 3.578 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.5449, allocations: 3.984 kB / 492.2 MB, free: 3.574 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01245/0.5574, allocations: 4.794 MB / 497 MB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/0.5574, allocations: 8 kB / 497 MB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009641/0.5584, allocations: 135.8 kB / 497.2 MB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003073/0.5615, allocations: 0.6444 MB / 497.8 MB, free: 13.91 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.5617, allocations: 27.97 kB / 497.8 MB, free: 13.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007456/0.5691, allocations: 3.949 MB / 0.49 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5692, allocations: 0 / 0.49 GB, free: 9.789 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009226/0.5784, allocations: 3.71 MB / 0.4936 GB, free: 6.047 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001532/0.58, allocations: 459.3 kB / 0.4941 GB, free: 5.578 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004563/0.5805, allocations: 16 kB / 0.4941 GB, free: 5.562 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.5818, allocations: 63.84 kB / 0.4942 GB, free: 5.5 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/0.5821, allocations: 59.91 kB / 0.4942 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.5822, allocations: 28 kB / 0.4942 GB, free: 5.414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003059/0.5853, allocations: 1.762 MB / 0.496 GB, free: 3.645 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5853, allocations: 0 / 0.496 GB, free: 3.645 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003891/0.5892, allocations: 0.6484 MB / 0.4966 GB, free: 2.996 MB / 430.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.0003886/0.5896, allocations: 139 kB / 0.4967 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005386/0.595, allocations: 3.437 MB / 0.5001 GB, free: 15.42 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.595, allocations: 4 kB / 0.5001 GB, free: 15.42 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.5962, allocations: 0.9203 MB / 0.501 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001621/0.5978, allocations: 255.7 kB / 0.5012 GB, free: 14.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01032/0.6082, allocations: 5.527 MB / 0.5066 GB, free: 8.66 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002242/0.6105, allocations: 2.188 MB / 0.5088 GB, free: 6.441 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003097/0.6136, allocations: 1.4 MB / 0.5101 GB, free: 5.035 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003779/0.614, allocations: 171.3 kB / 0.5103 GB, free: 4.867 MB / 446.1 MB Notification: Performance of SimCode: time 8.42e-07/0.614, allocations: 0 / 0.5103 GB, free: 4.867 MB / 446.1 MB Notification: Performance of Templates: time 0.04135/0.6553, allocations: 20.7 MB / 0.5305 GB, free: 136 kB / 462.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)