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.0008584/0.000858, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.0009155/0.0009155, allocations: 172.7 kB / 15.95 MB, free: 192 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.365/1.365, allocations: 205.4 MB / 222.1 MB, free: 5.641 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.0004581/0.0004581, allocations: 12 kB / 278.9 MB, free: 12.8 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2131, allocations: 47.58 MB / 326.5 MB, free: 1.227 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.02778/0.2409, allocations: 31.44 MB / 357.9 MB, free: 3.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0165/0.2574, allocations: 7.446 MB / 365.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007041/0.2645, allocations: 139.7 kB / 365.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004735/0.2693, allocations: 1.594 MB / 367.1 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01124/0.2805, allocations: 4.837 MB / 371.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002233/0.2828, allocations: 0.5772 MB / 372.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00481/0.2876, allocations: 3.814 MB / 376.3 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005071/0.2927, allocations: 3.368 MB / 379.7 MB, free: 13.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001995/0.2947, allocations: 1.055 MB / 380.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.2972, allocations: 1.655 MB / 382.4 MB, free: 11.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006141/0.2978, allocations: 120 kB / 382.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001841/0.2997, allocations: 0.8777 MB / 383.4 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.301, allocations: 1.406 MB / 384.8 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000741/0.3017, allocations: 0.7064 MB / 385.5 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004519/0.3063, allocations: 4.491 MB / 390 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3063, allocations: 0 / 390 MB, free: 3.621 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3063, allocations: 0 / 390 MB, free: 3.621 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001438/0.3065, allocations: 0 / 390 MB, free: 3.621 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.006177/0.3126, allocations: 3.431 MB / 393.4 MB, free: 128 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.3127, allocations: 8.031 kB / 393.4 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006288/0.319, allocations: 1.906 MB / 395.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005399/0.3244, allocations: 1.89 MB / 397.2 MB, free: 12.26 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002501/0.3247, allocations: 217.2 kB / 397.5 MB, free: 12.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000664/0.3254, allocations: 259.9 kB / 397.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.3434, allocations: 9.97 MB / 407.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.433e-05/0.3435, allocations: 43.69 kB / 407.7 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003215/0.3438, allocations: 135.8 kB / 407.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002767/0.3466, allocations: 1.856 MB / 409.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01609/0.3627, allocations: 8.521 MB / 418.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04532/0.4081, allocations: 36.82 MB / 455 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2015/0.6096, allocations: 3.866 MB / 458.9 MB, free: 112.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/0.6122, allocations: 1.804 MB / 460.7 MB, free: 111.8 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01003/0.6222, allocations: 7.532 MB / 468.2 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.6223, allocations: 49.5 kB / 468.3 MB, free: 107.8 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 1.762e-05/0.6223, allocations: 0 / 468.3 MB, free: 107.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04309/0.6654, allocations: 17.39 MB / 485.7 MB, free: 94.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.6655, allocations: 141.5 kB / 485.8 MB, free: 94.36 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003992/0.6695, allocations: 3.462 MB / 489.3 MB, free: 90.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003136/0.6698, allocations: 49.7 kB / 489.3 MB, free: 90.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.6711, allocations: 2.744 MB / 492.1 MB, free: 88.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/0.6716, allocations: 0.635 MB / 492.7 MB, free: 87.47 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002009/0.6718, allocations: 115.9 kB / 492.8 MB, free: 87.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.672, allocations: 0.5454 MB / 493.4 MB, free: 86.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002328/0.6744, allocations: 1.928 MB / 495.3 MB, free: 84.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003411/0.6778, allocations: 5.351 MB / 0.4889 GB, free: 77.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/0.6812, allocations: 3.119 MB / 0.492 GB, free: 74.72 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.111e-05/0.6813, allocations: 36 kB / 0.492 GB, free: 74.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01128/0.6926, allocations: 8.131 MB / 0.4999 GB, free: 66.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.335e-05/0.6927, allocations: 56 kB / 0.5 GB, free: 66.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.808e-05/0.6928, allocations: 120 kB / 0.5001 GB, free: 66.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003173/0.6959, allocations: 1.312 MB / 0.5014 GB, free: 65.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003026/0.699, allocations: 1.265 MB / 0.5026 GB, free: 63.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006645/0.7056, allocations: 6.105 MB / 0.5086 GB, free: 57.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003766/0.7094, allocations: 296.4 kB / 0.5089 GB, free: 57.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005829/0.71, allocations: 345.5 kB / 0.5092 GB, free: 56.93 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 (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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002368/0.7124, allocations: 1.803 MB / 0.511 GB, free: 55.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004574/0.7129, allocations: 308 kB / 0.5113 GB, free: 54.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00566/0.7185, allocations: 3.361 MB / 0.5145 GB, free: 51.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.612e-05/0.7186, allocations: 29.02 kB / 0.5146 GB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.7186, allocations: 4 kB / 0.5146 GB, free: 51.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.7186, allocations: 11.97 kB / 0.5146 GB, free: 51.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.7299, allocations: 7.59 MB / 0.522 GB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.73, allocations: 0 / 0.522 GB, free: 43.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/0.7314, allocations: 247.7 kB / 0.5222 GB, free: 43.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003062/0.7345, allocations: 1.116 MB / 0.5233 GB, free: 42.38 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.7347, allocations: 32.89 kB / 0.5233 GB, free: 42.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006464/0.7411, allocations: 5.72 MB / 0.5289 GB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.7412, allocations: 0 / 0.5289 GB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008076/0.7493, allocations: 5.686 MB / 0.5345 GB, free: 30.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.7506, allocations: 0.5867 MB / 0.5351 GB, free: 30.17 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005775/0.7512, allocations: 20.7 kB / 0.5351 GB, free: 30.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/0.7528, allocations: 96.5 kB / 0.5352 GB, free: 30.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002488/0.7531, allocations: 88.81 kB / 0.5353 GB, free: 29.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001173/0.7532, allocations: 49.25 kB / 0.5353 GB, free: 29.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002748/0.7559, allocations: 2.134 MB / 0.5374 GB, free: 27.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.22e-07/0.7559, allocations: 480 / 0.5374 GB, free: 27.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004198/0.7602, allocations: 0.9138 MB / 0.5383 GB, free: 26.89 MB / 382.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 (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%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003752/0.7605, allocations: 175.3 kB / 0.5384 GB, free: 26.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006458/0.767, allocations: 4.761 MB / 0.5431 GB, free: 21.96 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.767, allocations: 448 / 0.5431 GB, free: 21.96 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001828/0.7689, allocations: 1.535 MB / 0.5446 GB, free: 20.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/0.7709, allocations: 344.1 kB / 0.5449 GB, free: 20.08 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.783, allocations: 9.542 MB / 0.5542 GB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002177/0.7852, allocations: 2.851 MB / 0.557 GB, free: 7.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00357/0.7888, allocations: 1.715 MB / 0.5587 GB, free: 5.898 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005534/0.7894, allocations: 219.4 kB / 0.5589 GB, free: 5.684 MB / 382.1 MB Notification: Performance of SimCode: time 1.333e-06/0.7894, allocations: 0 / 0.5589 GB, free: 5.684 MB / 382.1 MB Notification: Performance of Templates: time 0.05571/0.8451, allocations: 31.6 MB / 0.5898 GB, free: 6.098 MB / 414.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)