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.0009217/0.0009217, allocations: 90.11 kB / 16.65 MB, free: 6.535 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.0009731/0.0009731, allocations: 175.5 kB / 17.56 MB, free: 6.18 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.531/1.531, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004411/0.0004409, allocations: 12 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08769/0.08815, allocations: 47.59 MB / 328.3 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.3088/0.397, allocations: 64.77 MB / 393.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03423/0.4312, allocations: 13.36 MB / 406.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01616/0.4474, allocations: 278.7 kB / 406.7 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002127/0.4496, allocations: 0.4969 MB / 407.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006739/0.4564, allocations: 1.955 MB / 409.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.4587, allocations: 0.728 MB / 409.9 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007349/0.4661, allocations: 6.786 MB / 416.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009734/0.4758, allocations: 7.172 MB / 423.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003203/0.4791, allocations: 1.367 MB / 425.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004564/0.4837, allocations: 2.418 MB / 427.6 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001008/0.4847, allocations: 172 kB / 427.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.4878, allocations: 1.117 MB / 428.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002366/0.4902, allocations: 2.021 MB / 431 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003011/0.4933, allocations: 2.366 MB / 433.3 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009533/0.5028, allocations: 8.151 MB / 441.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.5028, allocations: 4 kB / 441.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5029, allocations: 0 / 441.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003005/0.5032, allocations: 0 / 441.5 MB, free: 12.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: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.02611/0.5293, allocations: 5.761 MB / 447.2 MB, free: 6.824 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.5293, allocations: 8.031 kB / 447.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01745/0.5468, allocations: 2.59 MB / 449.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008011/0.5548, allocations: 3.142 MB / 453 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003177/0.5552, allocations: 299.6 kB / 453.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/0.5569, allocations: 404.6 kB / 453.7 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02994/0.5869, allocations: 13.31 MB / 467 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001635/0.5871, allocations: 47.53 kB / 467 MB, free: 2.438 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008564/0.5879, allocations: 190.2 kB / 467.2 MB, free: 2.289 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004525/0.5925, allocations: 2.195 MB / 469.4 MB, free: 100 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02852/0.621, allocations: 12.73 MB / 482.1 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07783/0.6989, allocations: 49.39 MB / 0.5191 GB, free: 1.004 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02558/0.7245, allocations: 6.494 MB / 0.5254 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005664/0.7302, allocations: 3.927 MB / 0.5292 GB, free: 6.426 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001074/0.7314, allocations: 425.3 kB / 0.5296 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.322e-05/0.7315, allocations: 59.81 kB / 0.5297 GB, free: 5.906 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 7.384e-06/0.7315, allocations: 7.984 kB / 0.5297 GB, free: 5.898 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.3384/1.07, allocations: 36.2 MB / 0.5651 GB, free: 155.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.885e-05/1.07, allocations: 213.8 kB / 0.5653 GB, free: 154.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006091/1.076, allocations: 4.422 MB / 0.5696 GB, free: 150.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001008/1.077, allocations: 67.09 kB / 0.5696 GB, free: 150.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/1.079, allocations: 3.451 MB / 0.573 GB, free: 147 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001453/1.081, allocations: 0.9622 MB / 0.574 GB, free: 146 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008911/1.081, allocations: 0.5835 MB / 0.5745 GB, free: 145.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.036e-05/1.082, allocations: 301.1 kB / 0.5748 GB, free: 145.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005359/1.087, allocations: 4.339 MB / 0.579 GB, free: 140.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006732/1.094, allocations: 8.248 MB / 0.5871 GB, free: 130.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01379/1.107, allocations: 13.4 MB / 0.6002 GB, free: 115.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/1.108, allocations: 47.94 kB / 0.6002 GB, free: 115.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02453/1.132, allocations: 14.8 MB / 0.6147 GB, free: 100.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.309e-05/1.132, allocations: 64 kB / 0.6147 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/1.132, allocations: 132.6 kB / 0.6149 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006281/1.139, allocations: 2.452 MB / 0.6173 GB, free: 97.89 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00645/1.145, allocations: 1.793 MB / 0.619 GB, free: 96.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/1.162, allocations: 15.88 MB / 0.6345 GB, free: 79.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007857/1.17, allocations: 467.2 kB / 0.635 GB, free: 79.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001922/1.172, allocations: 0.505 MB / 0.6355 GB, free: 78.86 MB / 446.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.005669/1.178, allocations: 2.382 MB / 0.6378 GB, free: 76.46 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001447/1.179, allocations: 394.9 kB / 0.6382 GB, free: 76.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01515/1.194, allocations: 9.682 MB / 0.6476 GB, free: 66.36 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.07e-05/1.194, allocations: 33.11 kB / 0.6477 GB, free: 66.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.546e-05/1.194, allocations: 8 kB / 0.6477 GB, free: 66.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.694e-05/1.194, allocations: 12.89 kB / 0.6477 GB, free: 66.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02775/1.222, allocations: 18.18 MB / 0.6654 GB, free: 48.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.646e-05/1.222, allocations: 0 / 0.6654 GB, free: 48.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003215/1.226, allocations: 0.5889 MB / 0.666 GB, free: 47.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005994/1.232, allocations: 2.238 MB / 0.6682 GB, free: 45.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009437/1.233, allocations: 123.8 kB / 0.6683 GB, free: 45.15 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01606/1.249, allocations: 14.57 MB / 0.6825 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/1.249, allocations: 48 / 0.6825 GB, free: 30.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02083/1.27, allocations: 15.19 MB / 0.6974 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/1.272, allocations: 1.066 MB / 0.6984 GB, free: 13.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001077/1.274, allocations: 51.98 kB / 0.6985 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003823/1.277, allocations: 222.1 kB / 0.6987 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009213/1.278, allocations: 237.5 kB / 0.6989 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003408/1.279, allocations: 152.7 kB / 0.699 GB, free: 13.18 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004442/1.283, allocations: 2.784 MB / 0.7018 GB, free: 10.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.283, allocations: 4 kB / 0.7018 GB, free: 10.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.2274/1.51, allocations: 1.44 MB / 0.7032 GB, free: 150.1 MB / 446.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.0009389/1.511, allocations: 183.9 kB / 0.7033 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01853/1.53, allocations: 10.4 MB / 0.7135 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/1.53, allocations: 0 / 0.7135 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00741/1.537, allocations: 4.63 MB / 0.718 GB, free: 147 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003831/1.541, allocations: 480.4 kB / 0.7185 GB, free: 146.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/1.563, allocations: 15.85 MB / 0.734 GB, free: 138.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003829/1.567, allocations: 3.759 MB / 0.7376 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00647/1.573, allocations: 2.384 MB / 0.74 GB, free: 135 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001927/1.575, allocations: 0.5407 MB / 0.7405 GB, free: 134.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.725e-06/1.575, allocations: 0 / 0.7405 GB, free: 134.6 MB / 446.1 MB Notification: Performance of Templates: time 0.1347/1.71, allocations: 75.7 MB / 0.8144 GB, free: 60.54 MB / 446.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)