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.001075/0.001076, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.01019/0.01019, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.681/1.681, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0004631/0.0004631, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2582, allocations: 47.59 MB / 327 MB, free: 1.52 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.06303/0.3213, allocations: 64.78 MB / 391.8 MB, free: 2.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03318/0.3545, allocations: 13.35 MB / 405.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01624/0.3708, allocations: 287.3 kB / 405.4 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002257/0.3731, allocations: 0.4935 MB / 405.9 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0062/0.3793, allocations: 1.95 MB / 407.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002653/0.382, allocations: 0.7372 MB / 408.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3924, allocations: 6.776 MB / 415.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01203/0.4045, allocations: 7.171 MB / 422.6 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003376/0.4079, allocations: 1.365 MB / 423.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004268/0.4122, allocations: 2.41 MB / 426.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.4134, allocations: 176 kB / 426.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002905/0.4163, allocations: 1.115 MB / 427.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003148/0.4195, allocations: 2.026 MB / 429.7 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003458/0.4229, allocations: 2.369 MB / 432 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009166/0.4321, allocations: 8.152 MB / 440.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.4322, allocations: 0 / 440.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.668e-06/0.4322, allocations: 0 / 440.2 MB, free: 1.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002955/0.4325, allocations: 3.938 kB / 440.2 MB, free: 1.859 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.02629/0.4588, allocations: 5.76 MB / 445.9 MB, free: 12.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.4589, allocations: 8.031 kB / 446 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01824/0.4771, allocations: 2.603 MB / 448.6 MB, free: 9.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007333/0.4845, allocations: 3.124 MB / 451.7 MB, free: 6.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002677/0.4848, allocations: 303.8 kB / 452 MB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001552/0.4863, allocations: 411.7 kB / 452.4 MB, free: 5.523 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2337/0.7201, allocations: 13.29 MB / 465.7 MB, free: 108.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001461/0.7203, allocations: 51.05 kB / 465.7 MB, free: 108.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006356/0.7209, allocations: 188.2 kB / 465.9 MB, free: 108.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00372/0.7247, allocations: 2.199 MB / 468.1 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02378/0.7484, allocations: 12.73 MB / 480.8 MB, free: 98.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0571/0.8056, allocations: 49.4 MB / 0.5178 GB, free: 48.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02208/0.8277, allocations: 6.472 MB / 0.5241 GB, free: 42.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004209/0.832, allocations: 3.935 MB / 0.528 GB, free: 38.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008319/0.8328, allocations: 426.5 kB / 0.5284 GB, free: 37.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.907e-05/0.8329, allocations: 55.81 kB / 0.5284 GB, free: 37.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.922e-06/0.8329, allocations: 0 / 0.5284 GB, free: 37.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.09191/0.9248, allocations: 36.23 MB / 0.5638 GB, free: 1.141 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.925, allocations: 207.5 kB / 0.564 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006915/0.9319, allocations: 4.433 MB / 0.5683 GB, free: 12.43 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009273/0.9328, allocations: 61.7 kB / 0.5684 GB, free: 12.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002804/0.9356, allocations: 3.447 MB / 0.5718 GB, free: 8.926 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001724/0.9374, allocations: 0.9588 MB / 0.5727 GB, free: 7.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001197/0.9386, allocations: 0.5835 MB / 0.5733 GB, free: 7.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.9387, allocations: 301.1 kB / 0.5736 GB, free: 7.086 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006797/0.9455, allocations: 4.343 MB / 0.5778 GB, free: 2.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/0.9559, allocations: 8.239 MB / 0.5858 GB, free: 8.586 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01881/0.9747, allocations: 13.41 MB / 0.5989 GB, free: 9.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/0.9749, allocations: 40 kB / 0.599 GB, free: 9.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2407/1.216, allocations: 14.8 MB / 0.6134 GB, free: 138.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.584e-05/1.216, allocations: 62.78 kB / 0.6135 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/1.216, allocations: 134.3 kB / 0.6136 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006207/1.222, allocations: 2.453 MB / 0.616 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006701/1.229, allocations: 1.793 MB / 0.6178 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/1.246, allocations: 15.87 MB / 0.6333 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007707/1.254, allocations: 479.9 kB / 0.6337 GB, free: 130.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001955/1.256, allocations: 0.4928 MB / 0.6342 GB, free: 130.3 MB / 430.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.005202/1.261, allocations: 2.391 MB / 0.6365 GB, free: 129.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001349/1.263, allocations: 401.9 kB / 0.6369 GB, free: 129.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/1.277, allocations: 9.673 MB / 0.6464 GB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.197e-05/1.278, allocations: 28 kB / 0.6464 GB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.734e-05/1.278, allocations: 8 kB / 0.6464 GB, free: 121.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.58e-05/1.278, allocations: 19.86 kB / 0.6464 GB, free: 121.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/1.305, allocations: 18.16 MB / 0.6641 GB, free: 103.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.118e-05/1.305, allocations: 0 / 0.6641 GB, free: 103.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003086/1.308, allocations: 0.5927 MB / 0.6647 GB, free: 103 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005718/1.314, allocations: 2.236 MB / 0.6669 GB, free: 100.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006609/1.314, allocations: 129 kB / 0.667 GB, free: 100.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01548/1.33, allocations: 14.58 MB / 0.6813 GB, free: 85.76 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/1.33, allocations: 7.109 kB / 0.6813 GB, free: 85.75 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0223/1.352, allocations: 15.19 MB / 0.6961 GB, free: 70.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003047/1.355, allocations: 1.066 MB / 0.6971 GB, free: 69.61 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.356, allocations: 49.97 kB / 0.6972 GB, free: 69.56 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003265/1.36, allocations: 227.8 kB / 0.6974 GB, free: 69.34 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008115/1.361, allocations: 237.6 kB / 0.6976 GB, free: 69.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003165/1.361, allocations: 147.8 kB / 0.6978 GB, free: 68.96 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003988/1.365, allocations: 2.795 MB / 0.7005 GB, free: 66.16 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.365, allocations: 0 / 0.7005 GB, free: 66.16 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007719/1.373, allocations: 1.434 MB / 0.7019 GB, free: 64.73 MB / 430.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.0007888/1.373, allocations: 196.6 kB / 0.7021 GB, free: 64.54 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01407/1.387, allocations: 10.39 MB / 0.7122 GB, free: 54.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.656e-06/1.388, allocations: 6.328 kB / 0.7122 GB, free: 54.13 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006192/1.394, allocations: 4.631 MB / 0.7168 GB, free: 49.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003724/1.397, allocations: 479.9 kB / 0.7172 GB, free: 48.99 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02365/1.421, allocations: 15.85 MB / 0.7327 GB, free: 33.11 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004204/1.425, allocations: 3.755 MB / 0.7364 GB, free: 29.32 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005981/1.431, allocations: 2.391 MB / 0.7387 GB, free: 26.92 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001991/1.433, allocations: 0.5378 MB / 0.7392 GB, free: 26.38 MB / 430.1 MB Notification: Performance of SimCode: time 1.173e-06/1.433, allocations: 0 / 0.7392 GB, free: 26.38 MB / 430.1 MB Notification: Performance of Templates: time 0.343/1.776, allocations: 75.69 MB / 0.8132 GB, free: 101.5 MB / 430.1 MB 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)