Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001303/0.001303, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001266/0.001266, allocations: 192.9 kB / 16.25 MB, free: 6.617 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.415/1.415, allocations: 205.1 MB / 222.1 MB, free: 4.707 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.001236/0.001236, allocations: 51.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2309/0.2321, allocations: 46.63 MB / 324.9 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03373/0.2659, allocations: 34.76 MB / 359.6 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0196/0.2856, allocations: 7.822 MB / 367.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006934/0.2926, allocations: 143.6 kB / 367.6 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004545/0.2971, allocations: 1.994 MB / 369.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005251/0.3024, allocations: 1.534 MB / 371.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001776/0.3042, allocations: 0.6397 MB / 371.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005031/0.3093, allocations: 3.428 MB / 375.2 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004076/0.3134, allocations: 2.842 MB / 378 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.3158, allocations: 1.285 MB / 379.3 MB, free: 13.4 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002797/0.3186, allocations: 1.955 MB / 381.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008438/0.3194, allocations: 264 kB / 381.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002171/0.3216, allocations: 1.123 MB / 382.6 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001513/0.3232, allocations: 1.609 MB / 384.2 MB, free: 8.445 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001772/0.3249, allocations: 1.887 MB / 386.1 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005633/0.3306, allocations: 5.779 MB / 391.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3306, allocations: 0 / 391.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3306, allocations: 4 kB / 391.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001011/0.3307, allocations: 0 / 391.9 MB, free: 0.7461 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.007794/0.3385, allocations: 4.129 MB / 396 MB, free: 12.55 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.3386, allocations: 11.97 kB / 396.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006172/0.3448, allocations: 1.856 MB / 397.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003441/0.3482, allocations: 1.937 MB / 399.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000151/0.3484, allocations: 205.2 kB / 400 MB, free: 8.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004714/0.3489, allocations: 271.8 kB / 400.3 MB, free: 8.223 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01684/0.3657, allocations: 9.966 MB / 410.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-05/0.3659, allocations: 39.69 kB / 410.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/0.3662, allocations: 139.8 kB / 410.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002733/0.3689, allocations: 1.856 MB / 412.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01575/0.3847, allocations: 8.54 MB / 420.9 MB, free: 3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2433/0.6281, allocations: 36.84 MB / 457.7 MB, free: 90.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01052/0.6387, allocations: 3.872 MB / 461.6 MB, free: 89.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002203/0.6409, allocations: 1.81 MB / 463.4 MB, free: 89.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01009/0.651, allocations: 7.533 MB / 470.9 MB, free: 85.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.6511, allocations: 53.12 kB / 471 MB, free: 85.9 MB / 382.1 MB Notification: Performance of pre-optimization done (n=150): time 4.839e-06/0.6512, allocations: 2.938 kB / 471 MB, free: 85.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=166): time 0.04488/0.696, allocations: 17.45 MB / 488.4 MB, free: 73.01 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.676e-05/0.6961, allocations: 148.1 kB / 488.6 MB, free: 72.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.7003, allocations: 3.487 MB / 492 MB, free: 69.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002775/0.7006, allocations: 53.7 kB / 492.1 MB, free: 69.29 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.7017, allocations: 2.731 MB / 494.8 MB, free: 66.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005167/0.7023, allocations: 0.6432 MB / 495.5 MB, free: 65.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001119/0.7034, allocations: 1.117 MB / 496.6 MB, free: 64.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.443e-05/0.7035, allocations: 313 kB / 496.9 MB, free: 64.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002222/0.7057, allocations: 1.947 MB / 498.8 MB, free: 62.54 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004142/0.7099, allocations: 5.375 MB / 0.4924 GB, free: 55.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006949/0.7168, allocations: 7.934 MB / 0.5001 GB, free: 46.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.722e-05/0.7169, allocations: 32 kB / 0.5002 GB, free: 46.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01418/0.7311, allocations: 8.176 MB / 0.5082 GB, free: 37.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.212e-05/0.7313, allocations: 56 kB / 0.5082 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001407/0.7314, allocations: 123.9 kB / 0.5083 GB, free: 37.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003682/0.7351, allocations: 1.301 MB / 0.5096 GB, free: 36.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003789/0.7389, allocations: 1.263 MB / 0.5108 GB, free: 35.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007414/0.7463, allocations: 6.545 MB / 0.5172 GB, free: 28.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004776/0.7512, allocations: 299.6 kB / 0.5175 GB, free: 28.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007522/0.7519, allocations: 340 kB / 0.5178 GB, free: 27.83 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.003088/0.755, allocations: 1.81 MB / 0.5196 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006514/0.7557, allocations: 305 kB / 0.5199 GB, free: 25.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006322/0.762, allocations: 3.368 MB / 0.5232 GB, free: 22.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.88e-05/0.7621, allocations: 23.75 kB / 0.5232 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.55e-05/0.7621, allocations: 7.938 kB / 0.5232 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.588e-05/0.7622, allocations: 19.47 kB / 0.5232 GB, free: 22.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01292/0.7751, allocations: 7.593 MB / 0.5306 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.528e-05/0.7751, allocations: 0 / 0.5306 GB, free: 14.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001063/0.7762, allocations: 239.7 kB / 0.5309 GB, free: 14.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003287/0.7795, allocations: 1.128 MB / 0.532 GB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/0.7797, allocations: 31.98 kB / 0.532 GB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006722/0.7864, allocations: 6.165 MB / 0.538 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.7865, allocations: 0 / 0.538 GB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008185/0.7947, allocations: 5.705 MB / 0.5436 GB, free: 1.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.7963, allocations: 0.5751 MB / 0.5442 GB, free: 0.6094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004014/0.7967, allocations: 28 kB / 0.5442 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.798, allocations: 91.81 kB / 0.5443 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000291/0.7983, allocations: 88.81 kB / 0.5444 GB, free: 416 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001219/0.7984, allocations: 40 kB / 0.5444 GB, free: 376 kB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004165/0.8026, allocations: 2.158 MB / 0.5465 GB, free: 14.22 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.92e-07/0.8026, allocations: 3.938 kB / 0.5465 GB, free: 14.21 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005123/0.8077, allocations: 0.9227 MB / 0.5474 GB, free: 13.3 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.0004584/0.8082, allocations: 176.5 kB / 0.5476 GB, free: 13.13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0107/0.8189, allocations: 5.543 MB / 0.553 GB, free: 7.609 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.819, allocations: 3.938 kB / 0.553 GB, free: 7.605 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002463/0.8214, allocations: 1.535 MB / 0.5545 GB, free: 6.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.8239, allocations: 353.9 kB / 0.5548 GB, free: 5.711 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01745/0.8414, allocations: 9.83 MB / 0.5644 GB, free: 11.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003112/0.8445, allocations: 2.851 MB / 0.5672 GB, free: 8.973 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004254/0.8488, allocations: 1.707 MB / 0.5689 GB, free: 7.262 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006191/0.8494, allocations: 219.4 kB / 0.5691 GB, free: 7.047 MB / 414.1 MB Notification: Performance of SimCode: time 1.633e-06/0.8495, allocations: 0 / 0.5691 GB, free: 7.047 MB / 414.1 MB Notification: Performance of Templates: time 0.06473/0.9142, allocations: 34.07 MB / 0.6024 GB, free: 4.988 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1)