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.006046/0.006046, allocations: 101.5 kB / 15.73 MB, free: 6.016 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.001459/0.001459, allocations: 198.4 kB / 16.68 MB, free: 5.938 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.5/1.5, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001548/0.001548, allocations: 51.12 kB / 326.5 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1108, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009671/0.1205, allocations: 7.437 MB / 380.6 MB, free: 9.844 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007463/0.128, allocations: 3.242 MB / 383.8 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001268/0.1293, allocations: 35.88 kB / 383.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0026/0.132, allocations: 1.02 MB / 384.9 MB, free: 5.531 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003938/0.1359, allocations: 1.374 MB / 386.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001201/0.1371, allocations: 459.1 kB / 386.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003726/0.1409, allocations: 2.641 MB / 389.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002221/0.1431, allocations: 1.527 MB / 390.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001489/0.1446, allocations: 0.8485 MB / 391.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001918/0.1466, allocations: 1.219 MB / 393 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005836/0.1472, allocations: 172 kB / 393.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002226/0.1494, allocations: 1.022 MB / 394.2 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001207/0.1506, allocations: 1.106 MB / 395.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.1518, allocations: 1.304 MB / 396.6 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004176/0.156, allocations: 4.36 MB / 400.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.156, allocations: 0 / 400.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.156, allocations: 0 / 400.9 MB, free: 5.438 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.498e-05/0.1561, allocations: 3.938 kB / 400.9 MB, free: 5.434 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.005699/0.1618, allocations: 3.059 MB / 404 MB, free: 2.316 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1619, allocations: 15.97 kB / 404 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006476/0.1684, allocations: 1.733 MB / 405.7 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00376/0.1722, allocations: 1.456 MB / 407.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001252/0.1723, allocations: 135.3 kB / 407.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007275/0.173, allocations: 259.6 kB / 407.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01084/0.1839, allocations: 6.656 MB / 414.2 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.904e-05/0.184, allocations: 23.81 kB / 414.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002598/0.1843, allocations: 83.89 kB / 414.3 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/0.1863, allocations: 1.367 MB / 415.7 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01132/0.1977, allocations: 6.037 MB / 421.7 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03349/0.2312, allocations: 25.54 MB / 447.3 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007045/0.2383, allocations: 2.664 MB / 449.9 MB, free: 2.922 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.2398, allocations: 1.036 MB / 451 MB, free: 1.875 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2252/0.4651, allocations: 3.882 MB / 454.9 MB, free: 69.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.4651, allocations: 45.03 kB / 454.9 MB, free: 69.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.809e-06/0.4651, allocations: 4.812 kB / 454.9 MB, free: 69.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02618/0.4913, allocations: 10.3 MB / 465.2 MB, free: 66.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001041/0.4924, allocations: 1.682 MB / 466.9 MB, free: 64.77 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003779/0.4962, allocations: 2.73 MB / 469.6 MB, free: 63.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002117/0.4964, allocations: 41.58 kB / 469.7 MB, free: 63.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009009/0.4973, allocations: 2.084 MB / 471.7 MB, free: 62.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004103/0.4978, allocations: 0.5013 MB / 472.2 MB, free: 61.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009086/0.4987, allocations: 0.9242 MB / 473.2 MB, free: 61.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.094e-05/0.4987, allocations: 305 kB / 473.5 MB, free: 61 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001959/0.5007, allocations: 1.653 MB / 475.1 MB, free: 60.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002782/0.5035, allocations: 4.451 MB / 479.6 MB, free: 55.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005153/0.5087, allocations: 6.551 MB / 486.1 MB, free: 49.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.84e-05/0.5087, allocations: 28 kB / 486.2 MB, free: 49.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01676/0.5255, allocations: 7.997 MB / 494.1 MB, free: 41.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.274e-05/0.5256, allocations: 48 kB / 494.2 MB, free: 41.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01048/0.5361, allocations: 3.492 MB / 497.7 MB, free: 37.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01138/0.5475, allocations: 2.578 MB / 0.4885 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002981/0.5505, allocations: 1.014 MB / 0.4895 GB, free: 33.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01175/0.5623, allocations: 9.692 MB / 0.499 GB, free: 23.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003625/0.5659, allocations: 331.5 kB / 0.4993 GB, free: 23.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004273/0.5664, allocations: 284 kB / 0.4996 GB, free: 23.37 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.001732/0.5681, allocations: 1.423 MB / 0.501 GB, free: 21.93 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003569/0.5685, allocations: 232.9 kB / 0.5012 GB, free: 21.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005717/0.5742, allocations: 2.844 MB / 0.504 GB, free: 18.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005212/0.5794, allocations: 2.517 MB / 0.5064 GB, free: 16.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.54e-05/0.5795, allocations: 6 kB / 0.5064 GB, free: 16.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.89e-05/0.5795, allocations: 7.922 kB / 0.5064 GB, free: 16.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.5913, allocations: 6.878 MB / 0.5132 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.5913, allocations: 0 / 0.5132 GB, free: 9.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007278/0.5921, allocations: 179.7 kB / 0.5133 GB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004323/0.5964, allocations: 1.431 MB / 0.5147 GB, free: 7.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001385/0.5965, allocations: 31.97 kB / 0.5148 GB, free: 7.719 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008532/0.6051, allocations: 7.921 MB / 0.5225 GB, free: 15.54 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00125/0.6064, allocations: 1.533 MB / 0.524 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009237/0.6156, allocations: 4.861 MB / 0.5287 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008414/0.6165, allocations: 293.9 kB / 0.529 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002724/0.6168, allocations: 28 kB / 0.529 GB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.6179, allocations: 111.8 kB / 0.5292 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002634/0.6182, allocations: 84.38 kB / 0.5292 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6183, allocations: 39.5 kB / 0.5293 GB, free: 8.395 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002435/0.6208, allocations: 1.697 MB / 0.5309 GB, free: 6.688 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6208, allocations: 0 / 0.5309 GB, free: 6.688 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003621/0.6244, allocations: 0.7839 MB / 0.5317 GB, free: 5.906 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.0003819/0.6248, allocations: 179 kB / 0.5319 GB, free: 5.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007875/0.6327, allocations: 4.453 MB / 0.5362 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.6327, allocations: 0 / 0.5362 GB, free: 1.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003401/0.6361, allocations: 1.73 MB / 0.5379 GB, free: 15.48 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.6383, allocations: 261.2 kB / 0.5382 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.6492, allocations: 6.539 MB / 0.5445 GB, free: 8.656 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002295/0.6515, allocations: 2.305 MB / 0.5468 GB, free: 6.324 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002991/0.6545, allocations: 1.404 MB / 0.5482 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.655, allocations: 171.4 kB / 0.5483 GB, free: 4.746 MB / 414.1 MB Notification: Performance of SimCode: time 9.62e-07/0.655, allocations: 0 / 0.5483 GB, free: 4.746 MB / 414.1 MB Notification: Performance of Templates: time 0.05145/0.7065, allocations: 28.62 MB / 0.5763 GB, free: 8.191 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)