Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001437/0.001437, allocations: 109.2 kB / 16.51 MB, free: 6.707 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.001677/0.001677, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.324/1.324, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001102/0.001103, allocations: 47.94 kB / 279.3 MB, free: 3.562 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08508/0.08619, allocations: 46.62 MB / 326 MB, free: 4.875 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03444/0.1207, allocations: 38.41 MB / 364.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01825/0.139, allocations: 8.535 MB / 372.9 MB, free: 5.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007702/0.1467, allocations: 167.6 kB / 373.1 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004973/0.1518, allocations: 2.295 MB / 375.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004364/0.1562, allocations: 1.58 MB / 376.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001833/0.158, allocations: 0.5539 MB / 377.5 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1967/0.3547, allocations: 4.986 MB / 382.5 MB, free: 9.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005933/0.3607, allocations: 2.994 MB / 385.5 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003047/0.3638, allocations: 1.214 MB / 386.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003885/0.3677, allocations: 1.927 MB / 388.6 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007427/0.3684, allocations: 200.9 kB / 388.8 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002358/0.3708, allocations: 1.102 MB / 389.9 MB, free: 9.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00172/0.3726, allocations: 1.622 MB / 391.5 MB, free: 9.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002148/0.3747, allocations: 1.881 MB / 393.4 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006207/0.3809, allocations: 5.972 MB / 399.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.381, allocations: 2.406 kB / 399.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.381, allocations: 0 / 399.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001765/0.3812, allocations: 0 / 399.4 MB, free: 7.117 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.007902/0.3891, allocations: 4.229 MB / 403.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.3891, allocations: 8.844 kB / 403.6 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005944/0.3951, allocations: 1.833 MB / 405.5 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.3994, allocations: 2.067 MB / 407.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.3995, allocations: 208.5 kB / 407.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008642/0.4004, allocations: 377 kB / 408.1 MB, free: 2.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/0.4147, allocations: 8.862 MB / 417 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.323e-05/0.4148, allocations: 42.69 kB / 417 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004098/0.4152, allocations: 140.6 kB / 417.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002437/0.4177, allocations: 1.637 MB / 418.8 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.4326, allocations: 7.499 MB / 426.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04198/0.4746, allocations: 35.19 MB / 461.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008104/0.4828, allocations: 3.436 MB / 464.9 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001793/0.4846, allocations: 1.451 MB / 466.4 MB, free: 10.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008746/0.4933, allocations: 6.815 MB / 473.2 MB, free: 3.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.12e-05/0.4934, allocations: 50.41 kB / 473.2 MB, free: 3.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 3.056e-06/0.4934, allocations: 0 / 473.2 MB, free: 3.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.02429/0.5177, allocations: 11.12 MB / 484.3 MB, free: 7.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00116/0.5189, allocations: 1.615 MB / 486 MB, free: 6.035 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004714/0.5236, allocations: 3.555 MB / 489.5 MB, free: 2.48 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/0.5239, allocations: 45.7 kB / 489.6 MB, free: 2.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002585/0.5265, allocations: 2.783 MB / 492.3 MB, free: 15.65 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.5276, allocations: 0.5741 MB / 492.9 MB, free: 15.08 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/0.5292, allocations: 1.109 MB / 494 MB, free: 13.96 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.952e-05/0.5293, allocations: 301.1 kB / 494.3 MB, free: 13.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002715/0.5321, allocations: 1.924 MB / 496.2 MB, free: 11.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004681/0.5368, allocations: 5.362 MB / 0.4899 GB, free: 4.695 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008425/0.5452, allocations: 7.832 MB / 0.4975 GB, free: 11.66 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.511e-05/0.5453, allocations: 40 kB / 0.4975 GB, free: 11.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02021/0.5655, allocations: 8.748 MB / 0.5061 GB, free: 3.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.314e-05/0.5656, allocations: 60.94 kB / 0.5061 GB, free: 3.504 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01029/0.5759, allocations: 3.436 MB / 0.5095 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01064/0.5866, allocations: 2.235 MB / 0.5117 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004252/0.5909, allocations: 1.255 MB / 0.5129 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009594/0.6005, allocations: 6.811 MB / 0.5196 GB, free: 5.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004553/0.6051, allocations: 387.2 kB / 0.5199 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001011/0.6062, allocations: 339.4 kB / 0.5202 GB, free: 4.762 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0037/0.6099, allocations: 1.854 MB / 0.5221 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007768/0.6107, allocations: 304 kB / 0.5223 GB, free: 2.594 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00557/0.6162, allocations: 2.756 MB / 0.525 GB, free: 15.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004561/0.6208, allocations: 2.359 MB / 0.5273 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/0.6209, allocations: 7.938 kB / 0.5273 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.333e-05/0.6209, allocations: 7.969 kB / 0.5274 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01677/0.6377, allocations: 7.859 MB / 0.535 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.237e-05/0.6378, allocations: 0 / 0.535 GB, free: 5.473 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001261/0.639, allocations: 219.8 kB / 0.5352 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003224/0.6423, allocations: 1.057 MB / 0.5363 GB, free: 4.188 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002624/0.6426, allocations: 35.97 kB / 0.5363 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.155/0.7975, allocations: 4.945 MB / 0.5411 GB, free: 173.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007627/0.7983, allocations: 1.482 MB / 0.5426 GB, free: 172.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007088/0.8054, allocations: 4.949 MB / 0.5474 GB, free: 171.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007393/0.8062, allocations: 366.9 kB / 0.5478 GB, free: 171.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003457/0.8065, allocations: 32.36 kB / 0.5478 GB, free: 171.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/0.8078, allocations: 127.3 kB / 0.5479 GB, free: 171.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002635/0.8081, allocations: 89.12 kB / 0.548 GB, free: 171.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001105/0.8082, allocations: 44.27 kB / 0.548 GB, free: 171.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003178/0.8114, allocations: 2.2 MB / 0.5502 GB, free: 171.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8114, allocations: 0 / 0.5502 GB, free: 171.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004418/0.8158, allocations: 0.9699 MB / 0.5511 GB, free: 171 MB / 462.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.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003573/0.8162, allocations: 166.2 kB / 0.5513 GB, free: 170.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007841/0.824, allocations: 5.208 MB / 0.5564 GB, free: 169 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.8241, allocations: 0 / 0.5564 GB, free: 169 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003589/0.8277, allocations: 2.016 MB / 0.5584 GB, free: 168.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002416/0.8301, allocations: 377.1 kB / 0.5587 GB, free: 168 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.8431, allocations: 10.23 MB / 0.5687 GB, free: 162.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002375/0.8455, allocations: 2.904 MB / 0.5715 GB, free: 161.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003475/0.849, allocations: 1.703 MB / 0.5732 GB, free: 161.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004983/0.8495, allocations: 215.3 kB / 0.5734 GB, free: 161.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.41e-07/0.8495, allocations: 0 / 0.5734 GB, free: 161.1 MB / 462.1 MB Notification: Performance of Templates: time 0.04765/0.8972, allocations: 34.9 MB / 0.6075 GB, free: 129.3 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1)