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.005922/0.005922, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001192/0.001192, allocations: 191.9 kB / 16.67 MB, free: 5.969 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.455/1.455, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001128/0.001128, allocations: 53.98 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1022, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008516/0.1107, allocations: 7.429 MB / 380.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006376/0.1171, allocations: 3.238 MB / 383.8 MB, free: 6.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008221/0.118, allocations: 39.94 kB / 383.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002057/0.1201, allocations: 1.024 MB / 384.9 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003002/0.1231, allocations: 1.393 MB / 386.3 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009263/0.124, allocations: 459.1 kB / 386.7 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003019/0.1271, allocations: 2.637 MB / 389.4 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001717/0.1288, allocations: 1.527 MB / 390.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.1299, allocations: 0.8485 MB / 391.8 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001353/0.1312, allocations: 1.223 MB / 393 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002801/0.1315, allocations: 175.9 kB / 393.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001575/0.1331, allocations: 1.018 MB / 394.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009848/0.1341, allocations: 1.11 MB / 395.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001206/0.1353, allocations: 1.297 MB / 396.6 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004667/0.14, allocations: 4.384 MB / 401 MB, free: 5.391 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.14, allocations: 4 kB / 401 MB, free: 5.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.14, allocations: 3.938 kB / 401 MB, free: 5.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.675e-05/0.1401, allocations: 3.938 kB / 401 MB, free: 5.379 MB / 334.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.005819/0.1459, allocations: 3.136 MB / 404.1 MB, free: 2.18 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.244e-05/0.146, allocations: 12.03 kB / 404.1 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006518/0.1525, allocations: 1.75 MB / 405.9 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003429/0.1559, allocations: 1.457 MB / 407.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.1561, allocations: 135.2 kB / 407.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006354/0.1567, allocations: 263.7 kB / 407.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/0.1688, allocations: 6.648 MB / 414.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001402/0.169, allocations: 31.75 kB / 414.4 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006386/0.1696, allocations: 91.88 kB / 414.5 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/0.1728, allocations: 1.367 MB / 415.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.1901, allocations: 6.029 MB / 421.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04591/0.2361, allocations: 25.58 MB / 447.5 MB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007452/0.2436, allocations: 2.664 MB / 450.1 MB, free: 2.73 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.2451, allocations: 1.036 MB / 451.2 MB, free: 1.684 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2172/0.4624, allocations: 3.888 MB / 455.1 MB, free: 69.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.4624, allocations: 48.09 kB / 455.1 MB, free: 69.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.228e-06/0.4624, allocations: 0 / 455.1 MB, free: 69.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02789/0.4903, allocations: 10.45 MB / 465.6 MB, free: 66.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001173/0.4915, allocations: 1.682 MB / 467.2 MB, free: 64.69 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004349/0.4959, allocations: 2.735 MB / 470 MB, free: 63.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002243/0.4962, allocations: 48.27 kB / 470 MB, free: 63.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000923/0.4971, allocations: 2.17 MB / 472.2 MB, free: 62.09 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000407/0.4975, allocations: 0.5289 MB / 472.7 MB, free: 61.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000917/0.4984, allocations: 0.9278 MB / 473.6 MB, free: 61.26 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.595e-05/0.4985, allocations: 302.7 kB / 473.9 MB, free: 60.96 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00188/0.5004, allocations: 1.656 MB / 475.6 MB, free: 60.44 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002616/0.503, allocations: 4.454 MB / 480 MB, free: 55.83 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005047/0.508, allocations: 6.55 MB / 486.6 MB, free: 48.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.565e-05/0.5081, allocations: 31.94 kB / 486.6 MB, free: 48.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0177/0.5258, allocations: 8.003 MB / 494.6 MB, free: 40.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.179e-05/0.5259, allocations: 48.66 kB / 494.7 MB, free: 40.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01045/0.5364, allocations: 3.488 MB / 498.2 MB, free: 37.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01116/0.5475, allocations: 2.589 MB / 0.489 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003255/0.5508, allocations: 1.01 MB / 0.49 GB, free: 33.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/0.5636, allocations: 9.704 MB / 0.4995 GB, free: 23.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004601/0.5683, allocations: 331.7 kB / 0.4998 GB, free: 23.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/0.5695, allocations: 280 kB / 0.5001 GB, free: 23.15 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.002921/0.5724, allocations: 1.427 MB / 0.5015 GB, free: 21.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007713/0.5732, allocations: 246.3 kB / 0.5017 GB, free: 21.47 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006609/0.5798, allocations: 2.835 MB / 0.5045 GB, free: 18.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005409/0.5853, allocations: 2.513 MB / 0.5069 GB, free: 16.08 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-05/0.5853, allocations: 4 kB / 0.5069 GB, free: 16.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.5854, allocations: 11.92 kB / 0.5069 GB, free: 16.06 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01399/0.5993, allocations: 6.879 MB / 0.5137 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.5994, allocations: 4 kB / 0.5137 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008099/0.6002, allocations: 171.7 kB / 0.5138 GB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004522/0.6048, allocations: 1.438 MB / 0.5152 GB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.6049, allocations: 27.98 kB / 0.5152 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009169/0.6141, allocations: 7.917 MB / 0.523 GB, free: 15.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001275/0.6154, allocations: 1.545 MB / 0.5245 GB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/0.6259, allocations: 4.878 MB / 0.5293 GB, free: 8.691 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/0.6271, allocations: 299.4 kB / 0.5295 GB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008494/0.6279, allocations: 27.98 kB / 0.5296 GB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001987/0.6299, allocations: 111.3 kB / 0.5297 GB, free: 8.246 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004943/0.6305, allocations: 84.38 kB / 0.5298 GB, free: 8.164 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002162/0.6307, allocations: 39.98 kB / 0.5298 GB, free: 8.125 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004249/0.635, allocations: 1.697 MB / 0.5314 GB, free: 6.418 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.635, allocations: 0 / 0.5314 GB, free: 6.418 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005554/0.6405, allocations: 0.7889 MB / 0.5322 GB, free: 5.629 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.0006368/0.6412, allocations: 171.1 kB / 0.5324 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.009094/0.6503, allocations: 4.465 MB / 0.5367 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.6503, allocations: 0 / 0.5367 GB, free: 0.9727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003674/0.654, allocations: 1.724 MB / 0.5384 GB, free: 15.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002914/0.6569, allocations: 276 kB / 0.5387 GB, free: 14.94 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.6702, allocations: 6.635 MB / 0.5452 GB, free: 8.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003535/0.6738, allocations: 2.301 MB / 0.5474 GB, free: 5.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003573/0.6774, allocations: 1.4 MB / 0.5488 GB, free: 4.527 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005968/0.678, allocations: 171.4 kB / 0.5489 GB, free: 4.359 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.678, allocations: 0 / 0.5489 GB, free: 4.359 MB / 414.1 MB Notification: Performance of Templates: time 0.05828/0.7363, allocations: 28.6 MB / 0.5769 GB, free: 7.773 MB / 446.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)