Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001025/0.001025, allocations: 93.23 kB / 16.65 MB, free: 6.348 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.001472/0.001472, allocations: 177.8 kB / 17.56 MB, free: 5.949 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.483/1.483, allocations: 205.4 MB / 223.7 MB, free: 13.05 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.0004909/0.0004906, allocations: 12 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1067, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01558/0.1223, allocations: 17.26 MB / 345.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.1332, allocations: 4.981 MB / 350.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003188/0.1364, allocations: 71.81 kB / 350.6 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008935/0.1374, allocations: 282.6 kB / 350.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003215/0.1406, allocations: 1.269 MB / 352.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000972/0.1416, allocations: 423.3 kB / 352.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004843/0.1464, allocations: 3.632 MB / 356.2 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002947/0.1494, allocations: 2.031 MB / 358.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001087/0.1505, allocations: 0.6651 MB / 358.9 MB, free: 5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0016/0.1521, allocations: 1.226 MB / 360.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002398/0.1524, allocations: 88 kB / 360.2 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.1541, allocations: 0.9944 MB / 361.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00092/0.155, allocations: 1.052 MB / 362.3 MB, free: 1.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.1561, allocations: 1.232 MB / 363.5 MB, free: 396 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004059/0.1602, allocations: 4.08 MB / 367.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1602, allocations: 7.875 kB / 367.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1602, allocations: 0 / 367.6 MB, free: 12.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.386e-05/0.1603, allocations: 4 kB / 367.6 MB, free: 12.28 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.004731/0.165, allocations: 2.525 MB / 370.1 MB, free: 9.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1651, allocations: 8.031 kB / 370.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006492/0.1716, allocations: 1.783 MB / 371.9 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002555/0.1742, allocations: 1.437 MB / 373.3 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/0.1743, allocations: 135.3 kB / 373.5 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007914/0.1751, allocations: 251.7 kB / 373.7 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2012/0.3763, allocations: 6.666 MB / 380.4 MB, free: 49.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.641e-05/0.3765, allocations: 31.31 kB / 380.4 MB, free: 49.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003116/0.3768, allocations: 87.8 kB / 380.5 MB, free: 49.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.3795, allocations: 1.366 MB / 381.9 MB, free: 49.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/0.3938, allocations: 6.044 MB / 387.9 MB, free: 48.59 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02824/0.4221, allocations: 25.63 MB / 413.6 MB, free: 28.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006225/0.4283, allocations: 2.659 MB / 416.2 MB, free: 25.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.4295, allocations: 1.042 MB / 417.3 MB, free: 24.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004853/0.4344, allocations: 3.887 MB / 421.1 MB, free: 20.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.652e-05/0.4345, allocations: 43.12 kB / 421.2 MB, free: 20.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.246e-06/0.4345, allocations: 3.938 kB / 421.2 MB, free: 20.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02387/0.4584, allocations: 10.33 MB / 431.5 MB, free: 9.574 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009587/0.4594, allocations: 1.583 MB / 433.1 MB, free: 7.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.4627, allocations: 2.739 MB / 435.8 MB, free: 5.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002893/0.463, allocations: 42.41 kB / 435.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.4642, allocations: 2.083 MB / 438 MB, free: 2.938 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006101/0.4648, allocations: 0.5039 MB / 438.5 MB, free: 2.438 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.4652, allocations: 396.5 kB / 438.9 MB, free: 2.043 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.4653, allocations: 305.1 kB / 439.2 MB, free: 1.742 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002076/0.4674, allocations: 1.652 MB / 440.8 MB, free: 84 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004679/0.4721, allocations: 4.452 MB / 445.3 MB, free: 10.22 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008923/0.481, allocations: 6.549 MB / 451.8 MB, free: 2.281 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/0.4812, allocations: 28 kB / 451.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02198/0.5032, allocations: 7.993 MB / 459.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.962e-05/0.5033, allocations: 48 kB / 459.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01203/0.5153, allocations: 3.495 MB / 463.4 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01271/0.5281, allocations: 2.593 MB / 466 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003355/0.5315, allocations: 1.002 MB / 467 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/0.5464, allocations: 8.87 MB / 475.8 MB, free: 9.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006475/0.5529, allocations: 337.1 kB / 476.2 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/0.5544, allocations: 280 kB / 476.4 MB, free: 9.348 MB / 366.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.005292/0.5597, allocations: 1.421 MB / 477.9 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009606/0.5607, allocations: 237 kB / 478.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01254/0.5732, allocations: 2.844 MB / 480.9 MB, free: 4.809 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01202/0.5853, allocations: 2.515 MB / 483.5 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.142e-05/0.5854, allocations: 4 kB / 483.5 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.835e-05/0.5855, allocations: 8.438 kB / 483.5 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02683/0.6123, allocations: 6.876 MB / 490.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.889e-05/0.6124, allocations: 0 / 490.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0019/0.6144, allocations: 179.8 kB / 490.5 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01009/0.6245, allocations: 1.445 MB / 492 MB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003596/0.6249, allocations: 31.91 kB / 492 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0127/0.6376, allocations: 7.335 MB / 499.3 MB, free: 2.082 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001135/0.6388, allocations: 1.439 MB / 0.489 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009961/0.6488, allocations: 4.861 MB / 0.4938 GB, free: 11.61 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000737/0.6496, allocations: 298 kB / 0.4941 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005375/0.6501, allocations: 31.97 kB / 0.4941 GB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001453/0.6516, allocations: 111.8 kB / 0.4942 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/0.652, allocations: 73.61 kB / 0.4943 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.6521, allocations: 39.98 kB / 0.4943 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003456/0.6556, allocations: 1.705 MB / 0.496 GB, free: 9.328 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6556, allocations: 0 / 0.496 GB, free: 9.328 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004442/0.66, allocations: 0.7888 MB / 0.4967 GB, free: 8.543 MB / 398.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.0005475/0.6606, allocations: 171.6 kB / 0.4969 GB, free: 8.371 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008957/0.6696, allocations: 4.412 MB / 0.5012 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/0.6696, allocations: 0 / 0.5012 GB, free: 3.934 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00354/0.6732, allocations: 1.723 MB / 0.5029 GB, free: 2.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/0.6759, allocations: 263.1 kB / 0.5031 GB, free: 1.898 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01309/0.689, allocations: 7.986 MB / 0.5109 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002929/0.692, allocations: 2.293 MB / 0.5132 GB, free: 7.539 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003867/0.6959, allocations: 1.412 MB / 0.5146 GB, free: 6.121 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006242/0.6965, allocations: 171.4 kB / 0.5147 GB, free: 5.953 MB / 414.1 MB Notification: Performance of SimCode: time 1.212e-06/0.6966, allocations: 0 / 0.5147 GB, free: 5.953 MB / 414.1 MB Notification: Performance of Templates: time 0.2245/0.921, allocations: 29.21 MB / 0.5433 GB, free: 123.6 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)