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.001175/0.001175, allocations: 101 kB / 16.5 MB, free: 6.688 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.001214/0.001214, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.421/1.421, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001194/0.001194, allocations: 51.92 kB / 279.3 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 46.62 MB / 326 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01809/0.123, allocations: 17.91 MB / 343.9 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0114/0.1345, allocations: 5.047 MB / 348.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00438/0.139, allocations: 67.81 kB / 349 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00273/0.1417, allocations: 0.9971 MB / 350 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003899/0.1457, allocations: 1.266 MB / 351.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.1468, allocations: 419.4 kB / 351.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004928/0.1517, allocations: 3.636 MB / 355.3 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.1537, allocations: 1.513 MB / 356.8 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001089/0.1548, allocations: 0.7393 MB / 357.5 MB, free: 5.172 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.1565, allocations: 1.304 MB / 358.9 MB, free: 3.863 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002496/0.1567, allocations: 116 kB / 359 MB, free: 3.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001718/0.1585, allocations: 1.018 MB / 360 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009288/0.1594, allocations: 1.079 MB / 361.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.1605, allocations: 1.269 MB / 362.3 MB, free: 380 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004048/0.1646, allocations: 4.159 MB / 366.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.1646, allocations: 0 / 366.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1646, allocations: 0 / 366.5 MB, free: 12.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.632e-05/0.1647, allocations: 0 / 366.5 MB, free: 12.2 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.005437/0.1701, allocations: 3.063 MB / 369.6 MB, free: 9.078 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1702, allocations: 8.031 kB / 369.6 MB, free: 9.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006074/0.1762, allocations: 1.732 MB / 371.3 MB, free: 7.332 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.1789, allocations: 1.437 MB / 372.7 MB, free: 5.848 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.179, allocations: 135.3 kB / 372.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006371/0.1797, allocations: 263.6 kB / 373.1 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1833/0.363, allocations: 6.646 MB / 379.8 MB, free: 50.99 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.848e-05/0.3631, allocations: 28.84 kB / 379.8 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002886/0.3634, allocations: 88.34 kB / 379.9 MB, free: 50.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002397/0.3658, allocations: 1.357 MB / 381.2 MB, free: 50.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.3793, allocations: 6.029 MB / 387.3 MB, free: 49.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02941/0.4087, allocations: 25.65 MB / 412.9 MB, free: 28.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006305/0.4151, allocations: 2.66 MB / 415.6 MB, free: 25.99 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00122/0.4164, allocations: 1.036 MB / 416.6 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00493/0.4213, allocations: 3.879 MB / 420.5 MB, free: 20.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.4214, allocations: 51.06 kB / 420.5 MB, free: 20.77 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.506e-06/0.4214, allocations: 0 / 420.5 MB, free: 20.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02331/0.4447, allocations: 10.31 MB / 430.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001034/0.4458, allocations: 1.58 MB / 432.4 MB, free: 8.555 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.4497, allocations: 2.737 MB / 435.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001852/0.4499, allocations: 47.8 kB / 435.2 MB, free: 5.746 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/0.4509, allocations: 2.084 MB / 437.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000525/0.4515, allocations: 0.5093 MB / 437.8 MB, free: 3.125 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001183/0.4526, allocations: 0.9165 MB / 438.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.4527, allocations: 305.1 kB / 439 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002021/0.4548, allocations: 1.648 MB / 440.7 MB, free: 244 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004956/0.4597, allocations: 4.456 MB / 445.1 MB, free: 10.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007825/0.4676, allocations: 6.551 MB / 451.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-05/0.4677, allocations: 28 kB / 451.7 MB, free: 2.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01952/0.4872, allocations: 7.99 MB / 459.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.516e-05/0.4873, allocations: 48 kB / 459.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01114/0.4985, allocations: 3.493 MB / 463.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/0.51, allocations: 2.588 MB / 465.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003325/0.5134, allocations: 1.01 MB / 466.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01367/0.5271, allocations: 8.873 MB / 475.7 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00368/0.5308, allocations: 339.5 kB / 476 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007235/0.5316, allocations: 284 kB / 476.3 MB, free: 9.473 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.002824/0.5344, allocations: 1.419 MB / 477.7 MB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006136/0.535, allocations: 233 kB / 478 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006723/0.5418, allocations: 2.837 MB / 480.8 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005726/0.5475, allocations: 2.513 MB / 483.3 MB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/0.5475, allocations: 4 kB / 483.3 MB, free: 2.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.5476, allocations: 11.97 kB / 483.3 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01393/0.5615, allocations: 6.874 MB / 490.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.742e-05/0.5615, allocations: 4 kB / 490.2 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008095/0.5623, allocations: 175.7 kB / 490.4 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004802/0.5672, allocations: 1.434 MB / 491.8 MB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001387/0.5673, allocations: 33.09 kB / 491.8 MB, free: 9.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009748/0.5771, allocations: 7.317 MB / 499.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001107/0.5782, allocations: 1.452 MB / 0.4889 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00889/0.5871, allocations: 4.859 MB / 0.4936 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.5882, allocations: 294 kB / 0.4939 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007374/0.589, allocations: 24 kB / 0.4939 GB, free: 11.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/0.5905, allocations: 111.8 kB / 0.494 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003074/0.5908, allocations: 80.38 kB / 0.4941 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.5909, allocations: 35.98 kB / 0.4941 GB, free: 11.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003032/0.5939, allocations: 1.701 MB / 0.4958 GB, free: 9.457 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.594, allocations: 8 kB / 0.4958 GB, free: 9.449 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003937/0.5979, allocations: 0.7877 MB / 0.4966 GB, free: 8.664 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.000441/0.5984, allocations: 156.9 kB / 0.4967 GB, free: 8.504 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007811/0.6062, allocations: 4.435 MB / 0.5011 GB, free: 4.043 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.6062, allocations: 0 / 0.5011 GB, free: 4.043 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003134/0.6093, allocations: 1.709 MB / 0.5027 GB, free: 2.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001864/0.6112, allocations: 265.1 kB / 0.503 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/0.6234, allocations: 7.816 MB / 0.5106 GB, free: 10.15 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/0.6263, allocations: 2.297 MB / 0.5129 GB, free: 7.816 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003457/0.6298, allocations: 1.406 MB / 0.5142 GB, free: 6.406 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005385/0.6304, allocations: 171.4 kB / 0.5144 GB, free: 6.238 MB / 414.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6304, allocations: 0 / 0.5144 GB, free: 6.238 MB / 414.1 MB Notification: Performance of Templates: time 0.2226/0.853, allocations: 29.71 MB / 0.5434 GB, free: 124.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)