Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005754/0.005754, allocations: 101.5 kB / 15.73 MB, free: 6.469 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.001205/0.001205, allocations: 192.5 kB / 16.67 MB, free: 6.379 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.509/1.509, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001352/0.001352, allocations: 50.36 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1302, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01656/0.1468, allocations: 13.96 MB / 387.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.1599, allocations: 4.72 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003998/0.164, allocations: 79.81 kB / 391.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009761/0.1738, allocations: 4.096 MB / 396 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008401/0.1823, allocations: 2.116 MB / 398.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003105/0.1854, allocations: 0.8149 MB / 399 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008998/0.1945, allocations: 4.608 MB / 403.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00931/0.2038, allocations: 5.141 MB / 408.7 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004828/0.2087, allocations: 1.951 MB / 410.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005038/0.2138, allocations: 2.715 MB / 413.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002168/0.216, allocations: 452 kB / 413.8 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004488/0.2205, allocations: 1.334 MB / 415.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004976/0.2255, allocations: 2.334 MB / 417.5 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008736/0.2343, allocations: 2.735 MB / 420.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01636/0.2507, allocations: 8.756 MB / 429 MB, free: 9.266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.666e-05/0.2508, allocations: 0 / 429 MB, free: 9.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.2508, allocations: 3.938 kB / 429 MB, free: 9.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005932/0.2514, allocations: 0 / 429 MB, free: 9.262 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.03797/0.2894, allocations: 6.965 MB / 435.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.656e-05/0.2895, allocations: 8.031 kB / 436 MB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0181/0.3076, allocations: 2.525 MB / 438.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009916/0.3176, allocations: 3.187 MB / 441.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005342/0.3182, allocations: 299.8 kB / 442 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003117/0.3213, allocations: 407.7 kB / 442.4 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3251/0.6465, allocations: 13.28 MB / 455.6 MB, free: 62.58 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005301/0.6471, allocations: 43.27 kB / 455.7 MB, free: 62.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002177/0.6493, allocations: 190.2 kB / 455.9 MB, free: 62.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00613/0.6554, allocations: 2.2 MB / 458.1 MB, free: 62.53 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03088/0.6863, allocations: 12.7 MB / 470.8 MB, free: 58.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06038/0.7468, allocations: 49.21 MB / 0.5078 GB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02227/0.7691, allocations: 6.435 MB / 0.5141 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004204/0.7733, allocations: 3.921 MB / 0.5179 GB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000803/0.7742, allocations: 434.1 kB / 0.5183 GB, free: 1.656 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/0.7742, allocations: 55.88 kB / 0.5184 GB, free: 1.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.25e-06/0.7742, allocations: 0 / 0.5184 GB, free: 1.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1146/0.8888, allocations: 36.16 MB / 0.5537 GB, free: 13.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.889, allocations: 209.9 kB / 0.5539 GB, free: 12.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008347/0.8974, allocations: 4.427 MB / 0.5582 GB, free: 8.523 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001048/0.8985, allocations: 61.7 kB / 0.5583 GB, free: 8.457 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002716/0.9012, allocations: 3.454 MB / 0.5616 GB, free: 4.973 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002177/0.9034, allocations: 0.9639 MB / 0.5626 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006817/0.9102, allocations: 1.595 MB / 0.5641 GB, free: 2.391 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.9104, allocations: 305.1 kB / 0.5644 GB, free: 2.09 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008242/0.9187, allocations: 4.331 MB / 0.5687 GB, free: 13.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01308/0.9318, allocations: 8.232 MB / 0.5767 GB, free: 3.602 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02098/0.9528, allocations: 13.39 MB / 0.5898 GB, free: 4.301 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001581/0.953, allocations: 40 kB / 0.5898 GB, free: 4.262 MB / 462.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.03287/0.9859, allocations: 14.77 MB / 0.6042 GB, free: 5.465 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001697/0.9861, allocations: 71.94 kB / 0.6043 GB, free: 5.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002363/0.9864, allocations: 139.7 kB / 0.6044 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007378/0.9938, allocations: 2.46 MB / 0.6068 GB, free: 2.789 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00789/1.002, allocations: 1.793 MB / 0.6086 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3179/1.32, allocations: 17.02 MB / 0.6252 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00808/1.328, allocations: 473.3 kB / 0.6257 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001819/1.33, allocations: 0.4939 MB / 0.6261 GB, free: 153.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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 (830): * Single equations (assignments): 824 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005533/1.335, allocations: 2.387 MB / 0.6285 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001283/1.336, allocations: 396.9 kB / 0.6289 GB, free: 153.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01727/1.354, allocations: 9.664 MB / 0.6383 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.983e-05/1.354, allocations: 28.42 kB / 0.6383 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/1.354, allocations: 11.59 kB / 0.6383 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.692e-05/1.354, allocations: 11.25 kB / 0.6383 GB, free: 151.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02857/1.382, allocations: 18.05 MB / 0.656 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.031e-05/1.383, allocations: 1.406 kB / 0.656 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002985/1.386, allocations: 0.5921 MB / 0.6566 GB, free: 145.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005762/1.391, allocations: 2.239 MB / 0.6587 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004675/1.392, allocations: 130 kB / 0.6589 GB, free: 145.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/1.408, allocations: 15.66 MB / 0.6742 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.408, allocations: 4 kB / 0.6742 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01895/1.427, allocations: 15.19 MB / 0.689 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002581/1.43, allocations: 1.066 MB / 0.69 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006766/1.43, allocations: 40 kB / 0.6901 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002893/1.433, allocations: 223.6 kB / 0.6903 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008908/1.434, allocations: 241.5 kB / 0.6905 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004673/1.435, allocations: 151.8 kB / 0.6907 GB, free: 115.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003638/1.438, allocations: 2.784 MB / 0.6934 GB, free: 112.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.438, allocations: 7.094 kB / 0.6934 GB, free: 112.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007099/1.445, allocations: 1.438 MB / 0.6948 GB, free: 111.1 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (198): * Single equations (assignments): 192 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007381/1.446, allocations: 193.2 kB / 0.695 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0136/1.46, allocations: 10.42 MB / 0.7052 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.622e-06/1.46, allocations: 0 / 0.7052 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005655/1.465, allocations: 4.635 MB / 0.7097 GB, free: 95.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003812/1.469, allocations: 496.3 kB / 0.7102 GB, free: 95.45 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01874/1.488, allocations: 13.17 MB / 0.723 GB, free: 82.3 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003185/1.491, allocations: 3.759 MB / 0.7267 GB, free: 78.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005513/1.497, allocations: 2.387 MB / 0.729 GB, free: 76.11 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/1.499, allocations: 0.5378 MB / 0.7295 GB, free: 75.57 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/1.499, allocations: 0 / 0.7295 GB, free: 75.57 MB / 494.1 MB Notification: Performance of Templates: time 0.1211/1.62, allocations: 76.86 MB / 0.8046 GB, free: 14.7 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)