Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001958/0.001958, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001921/0.001921, allocations: 187.8 kB / 16.25 MB, free: 6.621 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.585/1.585, allocations: 205.1 MB / 222.1 MB, free: 4.703 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.001449/0.001449, allocations: 55.92 kB / 278.2 MB, free: 12.62 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.278, allocations: 46.63 MB / 324.9 MB, free: 1.977 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.06364/0.3416, allocations: 66.4 MB / 391.3 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03593/0.3776, allocations: 13.32 MB / 404.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01835/0.3961, allocations: 287.3 kB / 404.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008/0.4041, allocations: 3.947 MB / 408.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006741/0.4109, allocations: 1.927 MB / 410.7 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.4134, allocations: 0.7606 MB / 411.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008739/0.4222, allocations: 4.732 MB / 416.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007791/0.43, allocations: 5.398 MB / 421.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.4335, allocations: 1.97 MB / 423.6 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004525/0.438, allocations: 2.98 MB / 426.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001228/0.4393, allocations: 452 kB / 427 MB, free: 13.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002825/0.4421, allocations: 1.342 MB / 428.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002486/0.4446, allocations: 2.377 MB / 430.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003489/0.4481, allocations: 2.758 MB / 433.5 MB, free: 7.023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01007/0.4582, allocations: 8.564 MB / 442.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.371e-06/0.4582, allocations: 0 / 442.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.887e-06/0.4582, allocations: 0 / 442.1 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002154/0.4585, allocations: 3.938 kB / 442.1 MB, free: 14.43 MB / 382.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.03105/0.4895, allocations: 6.957 MB / 449 MB, free: 7.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.803e-05/0.4896, allocations: 12.02 kB / 449 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01586/0.5055, allocations: 2.533 MB / 451.6 MB, free: 4.844 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008866/0.5144, allocations: 3.132 MB / 454.7 MB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002592/0.5147, allocations: 303.8 kB / 455 MB, free: 1.355 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001517/0.5162, allocations: 399.8 kB / 455.4 MB, free: 0.9648 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2663/0.7825, allocations: 13.28 MB / 468.7 MB, free: 108.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001624/0.7828, allocations: 52.12 kB / 468.7 MB, free: 108.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007152/0.7835, allocations: 183.8 kB / 468.9 MB, free: 108.7 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003917/0.7874, allocations: 2.201 MB / 471.1 MB, free: 107.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02398/0.8114, allocations: 12.7 MB / 483.8 MB, free: 94.76 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07982/0.8913, allocations: 49.42 MB / 0.5207 GB, free: 44.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03115/0.9225, allocations: 6.448 MB / 0.527 GB, free: 38.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004305/0.9269, allocations: 3.926 MB / 0.5308 GB, free: 34.11 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009656/0.9278, allocations: 428.2 kB / 0.5312 GB, free: 33.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.9279, allocations: 63.81 kB / 0.5313 GB, free: 33.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.791e-06/0.9279, allocations: 0 / 0.5313 GB, free: 33.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1003/1.028, allocations: 36.17 MB / 0.5666 GB, free: 13.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000146/1.028, allocations: 205.9 kB / 0.5668 GB, free: 12.92 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009038/1.038, allocations: 4.431 MB / 0.5712 GB, free: 8.461 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001014/1.039, allocations: 65.7 kB / 0.5712 GB, free: 8.391 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002977/1.042, allocations: 3.45 MB / 0.5746 GB, free: 4.895 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001923/1.043, allocations: 0.9593 MB / 0.5755 GB, free: 3.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004152/1.048, allocations: 1.599 MB / 0.5771 GB, free: 2.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/1.048, allocations: 301.1 kB / 0.5774 GB, free: 2.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006081/1.054, allocations: 4.339 MB / 0.5816 GB, free: 13.68 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009203/1.063, allocations: 8.224 MB / 0.5896 GB, free: 3.539 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01792/1.081, allocations: 13.4 MB / 0.6027 GB, free: 4.23 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001126/1.081, allocations: 40 kB / 0.6028 GB, free: 4.191 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2441/1.325, allocations: 14.77 MB / 0.6172 GB, free: 140.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/1.325, allocations: 65.5 kB / 0.6173 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001299/1.326, allocations: 134.1 kB / 0.6174 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005923/1.332, allocations: 2.467 MB / 0.6198 GB, free: 139.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006525/1.338, allocations: 1.795 MB / 0.6215 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01767/1.356, allocations: 17.03 MB / 0.6382 GB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007868/1.364, allocations: 480.4 kB / 0.6386 GB, free: 129 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001738/1.366, allocations: 0.4919 MB / 0.6391 GB, free: 128.5 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.00462/1.37, allocations: 2.388 MB / 0.6414 GB, free: 126.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/1.371, allocations: 395.9 kB / 0.6418 GB, free: 126 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.385, allocations: 9.665 MB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.569e-05/1.385, allocations: 28 kB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-05/1.385, allocations: 8 kB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.675e-05/1.385, allocations: 15.95 kB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0266/1.411, allocations: 18.15 MB / 0.669 GB, free: 98.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.68e-05/1.411, allocations: 0 / 0.669 GB, free: 98.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003384/1.415, allocations: 0.5889 MB / 0.6696 GB, free: 97.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005693/1.421, allocations: 2.243 MB / 0.6718 GB, free: 95.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00103/1.422, allocations: 127.8 kB / 0.6719 GB, free: 95.21 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/1.437, allocations: 15.62 MB / 0.6872 GB, free: 79.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/1.437, allocations: 96 / 0.6872 GB, free: 79.28 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0187/1.456, allocations: 15.18 MB / 0.702 GB, free: 64.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002857/1.459, allocations: 1.062 MB / 0.703 GB, free: 62.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001098/1.46, allocations: 40 kB / 0.7031 GB, free: 62.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003054/1.463, allocations: 223.7 kB / 0.7033 GB, free: 62.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007874/1.464, allocations: 237.5 kB / 0.7035 GB, free: 62.44 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003197/1.464, allocations: 155.7 kB / 0.7037 GB, free: 62.29 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003749/1.468, allocations: 2.791 MB / 0.7064 GB, free: 59.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.468, allocations: 0 / 0.7064 GB, free: 59.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007022/1.475, allocations: 1.428 MB / 0.7078 GB, free: 58.07 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.0006958/1.476, allocations: 191.4 kB / 0.708 GB, free: 57.88 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01873/1.495, allocations: 13.06 MB / 0.7207 GB, free: 44.83 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.495, allocations: 0 / 0.7207 GB, free: 44.83 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005684/1.5, allocations: 4.633 MB / 0.7253 GB, free: 40.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003382/1.504, allocations: 0.5003 MB / 0.7257 GB, free: 39.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01962/1.523, allocations: 15.68 MB / 0.7411 GB, free: 23.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003821/1.527, allocations: 3.759 MB / 0.7447 GB, free: 20.17 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005764/1.533, allocations: 2.388 MB / 0.7471 GB, free: 17.78 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002007/1.535, allocations: 0.5339 MB / 0.7476 GB, free: 17.24 MB / 430.1 MB Notification: Performance of SimCode: time 1.543e-06/1.535, allocations: 3.938 kB / 0.7476 GB, free: 17.24 MB / 430.1 MB Notification: Performance of Templates: time 0.3536/1.889, allocations: 80.02 MB / 0.8257 GB, free: 90.68 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)