Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001157/0.001157, allocations: 196.8 kB / 16.14 MB, free: 6.707 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.45/1.45, allocations: 205.1 MB / 222 MB, free: 4.977 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.001149/0.001149, allocations: 47.92 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2631, allocations: 46.63 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01703/0.2801, allocations: 17.91 MB / 342.6 MB, free: 2.215 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01479/0.295, allocations: 5.039 MB / 347.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004508/0.2996, allocations: 67.81 kB / 347.7 MB, free: 13.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002465/0.3021, allocations: 1.005 MB / 348.7 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.3053, allocations: 1.269 MB / 350 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008919/0.3062, allocations: 415.4 kB / 350.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003712/0.3099, allocations: 3.632 MB / 354 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.3117, allocations: 1.514 MB / 355.5 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000884/0.3126, allocations: 0.7315 MB / 356.3 MB, free: 4.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.3139, allocations: 1.304 MB / 357.6 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000229/0.3141, allocations: 112 kB / 357.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001688/0.3158, allocations: 1.022 MB / 358.7 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000896/0.3167, allocations: 1.083 MB / 359.8 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.3178, allocations: 1.269 MB / 361 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003869/0.3217, allocations: 4.155 MB / 365.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3217, allocations: 0 / 365.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3217, allocations: 0 / 365.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.634e-05/0.3218, allocations: 0 / 365.2 MB, free: 11.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005432/0.3272, allocations: 3.055 MB / 368.3 MB, free: 8.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/0.3273, allocations: 12.02 kB / 368.3 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006173/0.3335, allocations: 1.729 MB / 370 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002601/0.3361, allocations: 1.441 MB / 371.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001034/0.3362, allocations: 139.3 kB / 371.6 MB, free: 5.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006144/0.3368, allocations: 255.6 kB / 371.8 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01146/0.3483, allocations: 6.656 MB / 378.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.854e-05/0.3484, allocations: 31.72 kB / 378.5 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/0.3487, allocations: 87.89 kB / 378.6 MB, free: 13.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002022/0.3507, allocations: 1.359 MB / 380 MB, free: 12.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01167/0.3624, allocations: 6.041 MB / 386 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.394, allocations: 25.63 MB / 411.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006796/0.4008, allocations: 2.659 MB / 414.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001393/0.4022, allocations: 1.044 MB / 415.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006063/0.4083, allocations: 3.892 MB / 419.2 MB, free: 3.738 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.4084, allocations: 55.06 kB / 419.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.516e-06/0.4084, allocations: 0 / 419.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02652/0.4349, allocations: 10.3 MB / 429.6 MB, free: 9.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001528/0.4365, allocations: 1.588 MB / 431.2 MB, free: 7.453 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.4406, allocations: 2.733 MB / 433.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002817/0.4409, allocations: 37.7 kB / 433.9 MB, free: 4.656 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/0.4424, allocations: 2.087 MB / 436 MB, free: 2.535 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000712/0.4431, allocations: 0.5054 MB / 436.5 MB, free: 2.023 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001208/0.4443, allocations: 0.9165 MB / 437.4 MB, free: 1.094 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.811e-05/0.4444, allocations: 309.2 kB / 437.7 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.4468, allocations: 1.648 MB / 439.4 MB, free: 15.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004072/0.4509, allocations: 4.456 MB / 443.8 MB, free: 9.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006907/0.4579, allocations: 6.54 MB / 450.4 MB, free: 1.336 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.083e-05/0.4579, allocations: 35.94 kB / 450.4 MB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.2112/0.6691, allocations: 7.998 MB / 458.4 MB, free: 108.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.396e-05/0.6693, allocations: 47.34 kB / 458.5 MB, free: 108.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01027/0.6795, allocations: 3.49 MB / 462 MB, free: 107.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01132/0.6909, allocations: 2.585 MB / 464.5 MB, free: 106.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003279/0.6942, allocations: 1.005 MB / 465.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01144/0.7057, allocations: 8.88 MB / 474.4 MB, free: 98.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0045/0.7103, allocations: 331.5 kB / 474.7 MB, free: 98.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006493/0.7109, allocations: 284 kB / 475 MB, free: 97.92 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00199/0.7129, allocations: 1.425 MB / 476.5 MB, free: 96.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/0.7133, allocations: 231.3 kB / 476.7 MB, free: 96.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/0.7191, allocations: 2.838 MB / 479.5 MB, free: 93.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005096/0.7243, allocations: 2.519 MB / 482 MB, free: 91.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.7243, allocations: 9.5 kB / 482 MB, free: 91.03 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.876e-05/0.7243, allocations: 3.984 kB / 482 MB, free: 91.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.7362, allocations: 6.868 MB / 488.9 MB, free: 84.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.7362, allocations: 0 / 488.9 MB, free: 84.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007902/0.737, allocations: 183.7 kB / 489.1 MB, free: 83.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004304/0.7413, allocations: 1.431 MB / 490.5 MB, free: 82.53 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001458/0.7415, allocations: 35.97 kB / 490.6 MB, free: 82.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007791/0.7493, allocations: 7.326 MB / 497.9 MB, free: 74.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006833/0.75, allocations: 1.449 MB / 499.3 MB, free: 73.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007444/0.7575, allocations: 4.854 MB / 0.4924 GB, free: 68.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006339/0.7581, allocations: 294 kB / 0.4927 GB, free: 68.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002904/0.7584, allocations: 27.98 kB / 0.4927 GB, free: 68.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001069/0.7595, allocations: 107.8 kB / 0.4928 GB, free: 68.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.7598, allocations: 76.44 kB / 0.4929 GB, free: 68.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/0.7599, allocations: 35.98 kB / 0.4929 GB, free: 67.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002177/0.7621, allocations: 1.705 MB / 0.4946 GB, free: 66.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7621, allocations: 2.719 kB / 0.4946 GB, free: 66.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003621/0.7657, allocations: 0.7878 MB / 0.4953 GB, free: 65.49 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004128/0.7662, allocations: 169.7 kB / 0.4955 GB, free: 65.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006694/0.7729, allocations: 4.426 MB / 0.4998 GB, free: 60.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.7729, allocations: 0 / 0.4998 GB, free: 60.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.7756, allocations: 1.708 MB / 0.5015 GB, free: 59.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001788/0.7774, allocations: 261.8 kB / 0.5017 GB, free: 58.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009805/0.7872, allocations: 7.822 MB / 0.5094 GB, free: 51.01 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001747/0.789, allocations: 2.305 MB / 0.5116 GB, free: 48.67 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00299/0.792, allocations: 1.408 MB / 0.513 GB, free: 47.26 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004241/0.7924, allocations: 167.4 kB / 0.5132 GB, free: 47.09 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/0.7924, allocations: 0 / 0.5132 GB, free: 47.09 MB / 382.1 MB Notification: Performance of Templates: time 0.0431/0.8355, allocations: 29.71 MB / 0.5422 GB, free: 17.39 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)