Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001642/0.001642, allocations: 104 kB / 17.06 MB, free: 6.027 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.001834/0.001834, allocations: 195 kB / 18 MB, free: 5.105 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.369/1.369, allocations: 205.1 MB / 223.9 MB, free: 12.26 MB / 190.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.001271/0.001271, allocations: 59.86 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09124/0.09252, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2343/0.3269, allocations: 13.96 MB / 388.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.3391, allocations: 4.727 MB / 393.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003956/0.3432, allocations: 86.31 kB / 393.3 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008552/0.3517, allocations: 4.08 MB / 397.3 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008624/0.3604, allocations: 2.079 MB / 399.4 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002945/0.3634, allocations: 0.8098 MB / 400.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009394/0.3728, allocations: 4.599 MB / 404.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01049/0.3833, allocations: 5.139 MB / 410 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005082/0.3884, allocations: 1.944 MB / 411.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007254/0.3957, allocations: 2.723 MB / 414.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002525/0.3983, allocations: 458.7 kB / 415.1 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004517/0.4028, allocations: 1.323 MB / 416.4 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004572/0.4074, allocations: 2.338 MB / 418.7 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007225/0.4147, allocations: 2.742 MB / 421.5 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0144/0.4291, allocations: 8.752 MB / 430.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.4291, allocations: 4 kB / 430.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4291, allocations: 4 kB / 430.2 MB, free: 7.809 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000339/0.4295, allocations: 0 / 430.2 MB, free: 7.809 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: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.0336/0.4631, allocations: 6.958 MB / 437.2 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.2e-05/0.4632, allocations: 8.031 kB / 437.2 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01786/0.481, allocations: 2.529 MB / 439.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/0.4919, allocations: 3.194 MB / 442.9 MB, free: 10.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004992/0.4925, allocations: 303.8 kB / 443.2 MB, free: 10.68 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002918/0.4954, allocations: 403.7 kB / 443.6 MB, free: 10.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03575/0.5312, allocations: 13.28 MB / 456.9 MB, free: 12.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002204/0.5315, allocations: 43.58 kB / 456.9 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008104/0.5323, allocations: 191.8 kB / 457.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00483/0.5371, allocations: 2.194 MB / 459.3 MB, free: 9.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02943/0.5666, allocations: 12.7 MB / 472 MB, free: 13.11 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07586/0.6425, allocations: 49.2 MB / 0.509 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02423/0.6668, allocations: 6.445 MB / 0.5153 GB, free: 4.113 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00558/0.6724, allocations: 3.919 MB / 0.5191 GB, free: 192 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/0.6736, allocations: 436.2 kB / 0.5195 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.361e-05/0.6737, allocations: 51.88 kB / 0.5196 GB, free: 15.64 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 7.874e-06/0.6737, allocations: 0 / 0.5196 GB, free: 15.64 MB / 462.1 MB Notification: Performance of matching and sorting (n=255): time 0.3909/1.065, allocations: 36.16 MB / 0.5549 GB, free: 148.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001839/1.065, allocations: 210.1 kB / 0.5551 GB, free: 148 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0098/1.075, allocations: 4.427 MB / 0.5594 GB, free: 146.5 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001286/1.076, allocations: 62.2 kB / 0.5595 GB, free: 146.4 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002581/1.079, allocations: 3.455 MB / 0.5629 GB, free: 144.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001651/1.08, allocations: 0.9555 MB / 0.5638 GB, free: 143.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002794/1.083, allocations: 1.601 MB / 0.5654 GB, free: 143 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.435e-05/1.083, allocations: 306.3 kB / 0.5657 GB, free: 142.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006385/1.09, allocations: 4.333 MB / 0.5699 GB, free: 141.3 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008249/1.098, allocations: 8.237 MB / 0.5779 GB, free: 134.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01449/1.112, allocations: 13.4 MB / 0.591 GB, free: 125.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001439/1.113, allocations: 39.22 kB / 0.591 GB, free: 125.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02896/1.141, allocations: 14.77 MB / 0.6055 GB, free: 116.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002873/1.142, allocations: 67.98 kB / 0.6055 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000323/1.142, allocations: 132 kB / 0.6057 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006614/1.149, allocations: 2.465 MB / 0.6081 GB, free: 113.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006891/1.156, allocations: 1.786 MB / 0.6098 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01806/1.174, allocations: 17.05 MB / 0.6265 GB, free: 94.58 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008242/1.182, allocations: 475 kB / 0.6269 GB, free: 94.12 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00225/1.184, allocations: 499.7 kB / 0.6274 GB, free: 93.63 MB / 478.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.006734/1.191, allocations: 2.392 MB / 0.6297 GB, free: 91.23 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002312/1.193, allocations: 398.8 kB / 0.6301 GB, free: 90.84 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01683/1.21, allocations: 9.661 MB / 0.6395 GB, free: 81.14 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.623e-05/1.21, allocations: 27.94 kB / 0.6396 GB, free: 81.11 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-05/1.21, allocations: 12 kB / 0.6396 GB, free: 81.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-05/1.21, allocations: 11.95 kB / 0.6396 GB, free: 81.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03528/1.246, allocations: 18.04 MB / 0.6572 GB, free: 63.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.632e-05/1.246, allocations: 0 / 0.6572 GB, free: 63.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003305/1.249, allocations: 0.5888 MB / 0.6578 GB, free: 62.46 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006043/1.255, allocations: 2.24 MB / 0.66 GB, free: 60.21 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009487/1.256, allocations: 133.8 kB / 0.6601 GB, free: 60.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/1.273, allocations: 15.66 MB / 0.6754 GB, free: 44 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/1.273, allocations: 0 / 0.6754 GB, free: 44 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02301/1.296, allocations: 15.19 MB / 0.6902 GB, free: 28.73 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004862/1.301, allocations: 1.058 MB / 0.6913 GB, free: 27.65 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00227/1.303, allocations: 39.98 kB / 0.6913 GB, free: 27.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005174/1.309, allocations: 227.6 kB / 0.6915 GB, free: 27.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001451/1.31, allocations: 237.5 kB / 0.6917 GB, free: 27.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008373/1.311, allocations: 151.8 kB / 0.6919 GB, free: 27.01 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.006625/1.318, allocations: 2.784 MB / 0.6946 GB, free: 24.22 MB / 478.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.318, allocations: 4 kB / 0.6946 GB, free: 24.22 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01105/1.329, allocations: 1.436 MB / 0.696 GB, free: 22.79 MB / 478.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.001745/1.33, allocations: 200 kB / 0.6962 GB, free: 22.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01838/1.349, allocations: 10.41 MB / 0.7064 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.349, allocations: 3.938 kB / 0.7064 GB, free: 12.16 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006763/1.356, allocations: 4.64 MB / 0.7109 GB, free: 7.488 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006869/1.363, allocations: 0.5009 MB / 0.7114 GB, free: 7.004 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02991/1.393, allocations: 13.16 MB / 0.7242 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006626/1.399, allocations: 3.755 MB / 0.7279 GB, free: 6.039 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.2872/1.686, allocations: 2.392 MB / 0.7302 GB, free: 147.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00319/1.69, allocations: 0.5352 MB / 0.7308 GB, free: 147.7 MB / 494.1 MB Notification: Performance of SimCode: time 1.914e-06/1.69, allocations: 0.5312 kB / 0.7308 GB, free: 147.7 MB / 494.1 MB Notification: Performance of Templates: time 0.151/1.841, allocations: 77.39 MB / 0.8063 GB, free: 99.71 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)