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.001303/0.001304, allocations: 102.6 kB / 16.62 MB, free: 6.805 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.001167/0.001167, allocations: 193.8 kB / 17.55 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.404/1.404, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001119/0.001119, allocations: 47.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1016, allocations: 46.63 MB / 326.1 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01666/0.1183, allocations: 17.91 MB / 344.1 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.1295, allocations: 4.942 MB / 349 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004057/0.1337, allocations: 71.81 kB / 349.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002271/0.136, allocations: 0.962 MB / 350 MB, free: 12.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00391/0.1399, allocations: 1.293 MB / 351.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.141, allocations: 423.4 kB / 351.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003403/0.1444, allocations: 2.672 MB / 354.4 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002296/0.1467, allocations: 1.625 MB / 356 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001176/0.1479, allocations: 0.8485 MB / 356.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001409/0.1493, allocations: 1.367 MB / 358.2 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002403/0.1496, allocations: 172 kB / 358.4 MB, free: 4.371 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001587/0.1512, allocations: 1.037 MB / 359.4 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009167/0.1521, allocations: 1.134 MB / 360.6 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.1532, allocations: 1.332 MB / 361.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004389/0.1576, allocations: 4.225 MB / 366.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1576, allocations: 0 / 366.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1576, allocations: 0 / 366.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.757e-05/0.1577, allocations: 0 / 366.1 MB, free: 12.62 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.005281/0.163, allocations: 3.059 MB / 369.2 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.163, allocations: 12.03 kB / 369.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006192/0.1692, allocations: 1.732 MB / 370.9 MB, free: 7.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002777/0.172, allocations: 1.429 MB / 372.4 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001179/0.1722, allocations: 135.3 kB / 372.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006903/0.1729, allocations: 255.6 kB / 372.8 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2062/0.3791, allocations: 6.658 MB / 379.4 MB, free: 50.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.763e-05/0.3792, allocations: 26.25 kB / 379.4 MB, free: 50.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002857/0.3795, allocations: 89.5 kB / 379.5 MB, free: 50.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002472/0.382, allocations: 1.364 MB / 380.9 MB, free: 50.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01307/0.3951, allocations: 6.027 MB / 386.9 MB, free: 49.22 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02723/0.4223, allocations: 25.64 MB / 412.6 MB, free: 28.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005944/0.4283, allocations: 2.66 MB / 415.2 MB, free: 26.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.4294, allocations: 1.032 MB / 416.2 MB, free: 25.01 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004417/0.4338, allocations: 3.889 MB / 420.1 MB, free: 20.88 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.4339, allocations: 47.06 kB / 420.2 MB, free: 20.82 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.266e-06/0.4339, allocations: 0 / 420.2 MB, free: 20.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02221/0.4561, allocations: 10.31 MB / 430.5 MB, free: 10.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008892/0.457, allocations: 1.679 MB / 432.2 MB, free: 8.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002755/0.4598, allocations: 2.733 MB / 434.9 MB, free: 5.754 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.46, allocations: 41.7 kB / 435 MB, free: 5.707 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008596/0.4608, allocations: 2.09 MB / 437 MB, free: 3.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003664/0.4612, allocations: 0.5015 MB / 437.5 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009826/0.4622, allocations: 0.9244 MB / 438.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.813e-05/0.4623, allocations: 301.1 kB / 438.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.4641, allocations: 1.648 MB / 440.4 MB, free: 204 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004926/0.4691, allocations: 4.456 MB / 444.9 MB, free: 10.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009045/0.4781, allocations: 6.545 MB / 451.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.314e-05/0.4783, allocations: 28 kB / 451.4 MB, free: 2.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01971/0.498, allocations: 7.994 MB / 459.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.881e-05/0.4981, allocations: 51.94 kB / 459.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01147/0.5096, allocations: 3.5 MB / 463 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01199/0.5216, allocations: 2.585 MB / 465.6 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003192/0.5249, allocations: 1.014 MB / 466.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01453/0.5394, allocations: 9.694 MB / 476.3 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003934/0.5434, allocations: 341.4 kB / 476.6 MB, free: 8.875 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004257/0.5438, allocations: 284 kB / 476.9 MB, free: 8.598 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.002246/0.5461, allocations: 1.427 MB / 478.3 MB, free: 7.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004313/0.5465, allocations: 229 kB / 478.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006577/0.5531, allocations: 2.838 MB / 481.4 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005728/0.5588, allocations: 2.505 MB / 483.9 MB, free: 1.539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/0.5589, allocations: 8 kB / 483.9 MB, free: 1.531 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.5589, allocations: 7.969 kB / 483.9 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01271/0.5716, allocations: 6.878 MB / 490.8 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.5716, allocations: 0 / 490.8 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008259/0.5725, allocations: 175.7 kB / 490.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004928/0.5774, allocations: 1.442 MB / 492.4 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001306/0.5775, allocations: 31.97 kB / 492.4 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01022/0.5878, allocations: 7.923 MB / 0.4886 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009772/0.5888, allocations: 1.533 MB / 0.4901 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008606/0.5974, allocations: 4.86 MB / 0.4949 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000738/0.5982, allocations: 297.9 kB / 0.4951 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003049/0.5985, allocations: 24 kB / 0.4952 GB, free: 9.797 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.5996, allocations: 119.7 kB / 0.4953 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002788/0.5999, allocations: 84.38 kB / 0.4954 GB, free: 9.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/0.6, allocations: 35.98 kB / 0.4954 GB, free: 9.562 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002493/0.6025, allocations: 1.701 MB / 0.4971 GB, free: 7.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6025, allocations: 0 / 0.4971 GB, free: 7.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00377/0.6063, allocations: 0.7902 MB / 0.4978 GB, free: 7.066 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.0003803/0.6067, allocations: 157.9 kB / 0.498 GB, free: 6.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007601/0.6143, allocations: 4.761 MB / 0.5026 GB, free: 2.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6143, allocations: 4 kB / 0.5026 GB, free: 2.121 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002975/0.6173, allocations: 1.717 MB / 0.5043 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001633/0.619, allocations: 270.4 kB / 0.5046 GB, free: 88 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01049/0.6295, allocations: 7.819 MB / 0.5122 GB, free: 8.215 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/0.6316, allocations: 2.301 MB / 0.5145 GB, free: 5.879 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003051/0.6347, allocations: 1.415 MB / 0.5158 GB, free: 4.457 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003758/0.6351, allocations: 171.3 kB / 0.516 GB, free: 4.289 MB / 414.1 MB Notification: Performance of SimCode: time 7.22e-07/0.6351, allocations: 0 / 0.516 GB, free: 4.289 MB / 414.1 MB Notification: Performance of Templates: time 0.2559/0.891, allocations: 30.96 MB / 0.5462 GB, free: 122.7 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)