Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001268/0.001268, allocations: 195.9 kB / 16.14 MB, free: 6.664 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.391/1.391, allocations: 205.1 MB / 222 MB, free: 4.758 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.001153/0.001153, allocations: 47.94 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2342, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03371/0.268, allocations: 34.77 MB / 359.4 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.287, allocations: 7.919 MB / 367.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007033/0.2941, allocations: 147.6 kB / 367.5 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004229/0.2983, allocations: 2.053 MB / 369.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003974/0.3023, allocations: 1.526 MB / 371.1 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.3037, allocations: 0.6397 MB / 371.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005013/0.3088, allocations: 4.801 MB / 376.5 MB, free: 132 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003006/0.3118, allocations: 2.684 MB / 379.2 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001793/0.3136, allocations: 1.129 MB / 380.3 MB, free: 12.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.3159, allocations: 1.888 MB / 382.2 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004835/0.3164, allocations: 192 kB / 382.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001984/0.3184, allocations: 1.119 MB / 383.5 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001373/0.3198, allocations: 1.535 MB / 385.1 MB, free: 7.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001881/0.3217, allocations: 1.817 MB / 386.9 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.3277, allocations: 5.685 MB / 392.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.273e-06/0.3277, allocations: 4 kB / 392.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3277, allocations: 0 / 392.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001455/0.3279, allocations: 0 / 392.6 MB, free: 15.98 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008118/0.336, allocations: 4.126 MB / 396.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3361, allocations: 8.031 kB / 396.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006144/0.3422, allocations: 1.852 MB / 398.6 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003587/0.3458, allocations: 1.937 MB / 400.5 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.346, allocations: 209.1 kB / 400.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004879/0.3465, allocations: 271.8 kB / 401 MB, free: 7.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.3654, allocations: 9.973 MB / 410.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001068/0.3656, allocations: 35.69 kB / 411 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004017/0.366, allocations: 135.9 kB / 411.1 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002882/0.3689, allocations: 1.852 MB / 413 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01817/0.3871, allocations: 8.532 MB / 421.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2397/0.6268, allocations: 36.85 MB / 458.3 MB, free: 90.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00933/0.6362, allocations: 3.876 MB / 462.2 MB, free: 89.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00213/0.6384, allocations: 1.813 MB / 464 MB, free: 89.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009077/0.6475, allocations: 7.536 MB / 471.6 MB, free: 85.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.6475, allocations: 47.19 kB / 471.6 MB, free: 85.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 3.787e-06/0.6475, allocations: 0 / 471.6 MB, free: 85.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.0464/0.6939, allocations: 17.44 MB / 489.1 MB, free: 72.85 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.694, allocations: 150.9 kB / 489.2 MB, free: 72.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/0.6979, allocations: 3.489 MB / 492.7 MB, free: 69.19 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003411/0.6983, allocations: 53.38 kB / 492.7 MB, free: 69.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/0.6996, allocations: 2.736 MB / 495.5 MB, free: 66.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005946/0.7002, allocations: 0.644 MB / 496.1 MB, free: 65.77 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001154/0.7013, allocations: 1.111 MB / 497.2 MB, free: 64.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.016e-05/0.7014, allocations: 309.1 kB / 497.5 MB, free: 64.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002627/0.704, allocations: 1.943 MB / 499.5 MB, free: 62.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003679/0.7077, allocations: 5.379 MB / 0.493 GB, free: 55.39 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00633/0.7141, allocations: 7.934 MB / 0.5008 GB, free: 45.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.755e-05/0.7142, allocations: 32 kB / 0.5008 GB, free: 45.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01332/0.7275, allocations: 8.173 MB / 0.5088 GB, free: 37.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.305e-05/0.7276, allocations: 60 kB / 0.5088 GB, free: 37.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-05/0.7277, allocations: 124 kB / 0.509 GB, free: 37.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003754/0.7314, allocations: 1.297 MB / 0.5102 GB, free: 36.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003678/0.7351, allocations: 1.259 MB / 0.5115 GB, free: 34.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007094/0.7422, allocations: 6.106 MB / 0.5174 GB, free: 28.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003863/0.7461, allocations: 299.6 kB / 0.5177 GB, free: 28.47 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005923/0.7467, allocations: 340 kB / 0.518 GB, free: 28.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (685): * Single equations (assignments): 681 * 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,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002117/0.7489, allocations: 1.816 MB / 0.5198 GB, free: 26.31 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004819/0.7494, allocations: 304 kB / 0.5201 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005938/0.7553, allocations: 3.366 MB / 0.5234 GB, free: 22.63 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.376e-05/0.7553, allocations: 16 kB / 0.5234 GB, free: 22.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/0.7554, allocations: 11.94 kB / 0.5234 GB, free: 22.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.435e-05/0.7554, allocations: 9.984 kB / 0.5234 GB, free: 22.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01121/0.7666, allocations: 7.604 MB / 0.5308 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.422e-06/0.7666, allocations: 3.938 kB / 0.5309 GB, free: 14.93 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000963/0.7676, allocations: 235.7 kB / 0.5311 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003273/0.7709, allocations: 1.12 MB / 0.5322 GB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.771, allocations: 24 kB / 0.5322 GB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006483/0.7775, allocations: 5.735 MB / 0.5378 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7775, allocations: 0 / 0.5378 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007786/0.7853, allocations: 5.708 MB / 0.5434 GB, free: 1.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.7864, allocations: 0.5712 MB / 0.5439 GB, free: 1.363 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003338/0.7867, allocations: 28 kB / 0.544 GB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.7878, allocations: 87.88 kB / 0.544 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002476/0.7881, allocations: 92.81 kB / 0.5441 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.7882, allocations: 43.98 kB / 0.5442 GB, free: 1.117 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002611/0.7908, allocations: 2.158 MB / 0.5463 GB, free: 14.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.7908, allocations: 0 / 0.5463 GB, free: 14.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003815/0.7947, allocations: 0.9114 MB / 0.5472 GB, free: 14.06 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004486/0.7951, allocations: 175.5 kB / 0.5473 GB, free: 13.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007333/0.8025, allocations: 4.79 MB / 0.552 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.8025, allocations: 0 / 0.552 GB, free: 9.105 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002191/0.8047, allocations: 1.534 MB / 0.5535 GB, free: 7.562 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.8069, allocations: 343.9 kB / 0.5538 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01453/0.8214, allocations: 9.817 MB / 0.5634 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002734/0.8242, allocations: 2.859 MB / 0.5662 GB, free: 10.49 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003912/0.8281, allocations: 1.719 MB / 0.5679 GB, free: 8.766 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005745/0.8287, allocations: 219.4 kB / 0.5681 GB, free: 8.551 MB / 414.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8287, allocations: 0 / 0.5681 GB, free: 8.551 MB / 414.1 MB Notification: Performance of Templates: time 0.05668/0.8854, allocations: 32.78 MB / 0.6001 GB, free: 7.785 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)