Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008008/0.0008008, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0008775/0.0008776, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.383/1.383, allocations: 205.4 MB / 222.1 MB, free: 5.891 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.0004307/0.0004308, allocations: 12 kB / 278.9 MB, free: 13.05 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2395, allocations: 47.58 MB / 326.5 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.04306/0.2826, allocations: 42.54 MB / 369 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.3067, allocations: 9.45 MB / 378.5 MB, free: 15.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009333/0.3161, allocations: 199.5 kB / 378.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007326/0.3235, allocations: 2.185 MB / 380.9 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02036/0.3439, allocations: 6.584 MB / 387.4 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003995/0.3479, allocations: 0.6943 MB / 388.1 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008333/0.3562, allocations: 5.221 MB / 393.4 MB, free: 484 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008009/0.3643, allocations: 4.524 MB / 397.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002838/0.3671, allocations: 1.393 MB / 399.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003486/0.3706, allocations: 2.192 MB / 401.5 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.3717, allocations: 160 kB / 401.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002843/0.3745, allocations: 0.9908 MB / 402.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002903/0.3775, allocations: 1.874 MB / 404.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00174/0.3792, allocations: 0.8972 MB / 405.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006977/0.3862, allocations: 5.705 MB / 411.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3863, allocations: 0 / 411.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.17e-06/0.3863, allocations: 0 / 411.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003867/0.3867, allocations: 3.938 kB / 411.1 MB, free: 14.63 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0104/0.3971, allocations: 4.4 MB / 415.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.3972, allocations: 8.031 kB / 415.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008123/0.4053, allocations: 2.166 MB / 417.7 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006436/0.4118, allocations: 2.536 MB / 420.2 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/0.4121, allocations: 274.8 kB / 420.5 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001701/0.4138, allocations: 435.5 kB / 420.9 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02608/0.4399, allocations: 12.21 MB / 433.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001608/0.4401, allocations: 51.53 kB / 433.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007656/0.4409, allocations: 179.8 kB / 433.3 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003305/0.4442, allocations: 2.158 MB / 435.5 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02229/0.4665, allocations: 10.18 MB / 445.7 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2354/0.702, allocations: 44.29 MB / 490 MB, free: 79.85 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009906/0.7119, allocations: 4.603 MB / 494.6 MB, free: 77.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002193/0.7142, allocations: 1.724 MB / 496.3 MB, free: 76.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01016/0.7243, allocations: 8.234 MB / 0.4927 GB, free: 70.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.238e-05/0.7244, allocations: 54.97 kB / 0.4927 GB, free: 70.63 MB / 382.1 MB Notification: Performance of pre-optimization done (n=183): time 4.619e-06/0.7244, allocations: 0 / 0.4927 GB, free: 70.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=205): time 0.03312/0.7576, allocations: 15.95 MB / 0.5083 GB, free: 54.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008777/0.7585, allocations: 1.593 MB / 0.5099 GB, free: 52.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004567/0.7631, allocations: 4.195 MB / 0.514 GB, free: 48.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003636/0.7634, allocations: 58.88 kB / 0.514 GB, free: 48.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001606/0.7651, allocations: 3.399 MB / 0.5174 GB, free: 45.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007368/0.7658, allocations: 0.8113 MB / 0.5181 GB, free: 44.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002439/0.7661, allocations: 140.1 kB / 0.5183 GB, free: 44.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002531/0.7663, allocations: 0.5953 MB / 0.5189 GB, free: 43.58 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002678/0.769, allocations: 2.235 MB / 0.521 GB, free: 41.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004044/0.7731, allocations: 6.371 MB / 0.5273 GB, free: 32.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004339/0.7774, allocations: 3.659 MB / 0.5308 GB, free: 29.26 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.811e-05/0.7775, allocations: 44 kB / 0.5309 GB, free: 29.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01864/0.7962, allocations: 10 MB / 0.5406 GB, free: 19.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.025e-05/0.7963, allocations: 68.22 kB / 0.5407 GB, free: 19.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009149/0.8054, allocations: 3.788 MB / 0.5444 GB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008166/0.8136, allocations: 2.191 MB / 0.5466 GB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004492/0.8182, allocations: 1.579 MB / 0.5481 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006475/0.8247, allocations: 6.048 MB / 0.554 GB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00481/0.8295, allocations: 427.5 kB / 0.5544 GB, free: 4.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007889/0.8303, allocations: 412 kB / 0.5548 GB, free: 4.398 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002969/0.8333, allocations: 2.223 MB / 0.557 GB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000534/0.8339, allocations: 383.1 kB / 0.5573 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005551/0.8394, allocations: 3.284 MB / 0.5605 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004753/0.8442, allocations: 2.734 MB / 0.5632 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.339e-05/0.8442, allocations: 4 kB / 0.5632 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.501e-05/0.8443, allocations: 7.969 kB / 0.5632 GB, free: 11.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01889/0.8632, allocations: 10.35 MB / 0.5733 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.503e-05/0.8632, allocations: 12 kB / 0.5733 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/0.8647, allocations: 371.4 kB / 0.5737 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002772/0.8675, allocations: 0.9828 MB / 0.5747 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003545/0.8678, allocations: 59.97 kB / 0.5747 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004985/0.8728, allocations: 4.601 MB / 0.5792 GB, free: 10.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001074/0.8739, allocations: 1.47 MB / 0.5806 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00908/0.883, allocations: 5.895 MB / 0.5864 GB, free: 3.105 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001915/0.885, allocations: 0.6639 MB / 0.587 GB, free: 2.418 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005589/0.8856, allocations: 59.98 kB / 0.5871 GB, free: 2.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/0.8871, allocations: 147.8 kB / 0.5872 GB, free: 2.215 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003041/0.8874, allocations: 168.5 kB / 0.5874 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/0.8876, allocations: 83.97 kB / 0.5875 GB, free: 1.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004321/0.8919, allocations: 2.578 MB / 0.59 GB, free: 15.38 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.8919, allocations: 0 / 0.59 GB, free: 15.38 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005989/0.8979, allocations: 1.169 MB / 0.5911 GB, free: 14.22 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005639/0.8985, allocations: 215.8 kB / 0.5914 GB, free: 14.01 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/0.9094, allocations: 5.937 MB / 0.5971 GB, free: 8.031 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.548e-05/0.9094, allocations: 4 kB / 0.5972 GB, free: 8.027 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004032/0.9135, allocations: 2.181 MB / 0.5993 GB, free: 5.773 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003501/0.917, allocations: 488.4 kB / 0.5997 GB, free: 5.293 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2204/1.137, allocations: 12.64 MB / 0.6121 GB, free: 143.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003367/1.141, allocations: 3.459 MB / 0.6155 GB, free: 142.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004996/1.146, allocations: 2.028 MB / 0.6175 GB, free: 142.8 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006065/1.146, allocations: 270.1 kB / 0.6177 GB, free: 142.8 MB / 430.1 MB Notification: Performance of SimCode: time 1.503e-06/1.146, allocations: 2 kB / 0.6177 GB, free: 142.8 MB / 430.1 MB Notification: Performance of Templates: time 0.06381/1.21, allocations: 39.42 MB / 0.6562 GB, free: 109.1 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)