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.001596/0.001596, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.348/1.348, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001214/0.001214, allocations: 59.91 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2035/0.2048, allocations: 46.63 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01512/0.2199, allocations: 13.96 MB / 339.3 MB, free: 5.91 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.2314, allocations: 4.722 MB / 344 MB, free: 1.176 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002889/0.2344, allocations: 87.75 kB / 344.1 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007763/0.2422, allocations: 4.081 MB / 348.2 MB, free: 13 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005979/0.2482, allocations: 2.066 MB / 350.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002334/0.2506, allocations: 0.8227 MB / 351.1 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006463/0.257, allocations: 4.6 MB / 355.7 MB, free: 5.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006987/0.264, allocations: 5.141 MB / 360.8 MB, free: 284 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003239/0.2673, allocations: 1.935 MB / 362.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003829/0.2712, allocations: 2.707 MB / 365.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001349/0.2725, allocations: 456 kB / 365.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002921/0.2755, allocations: 1.319 MB / 367.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002914/0.2784, allocations: 2.346 MB / 369.5 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004226/0.2826, allocations: 2.735 MB / 372.3 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01097/0.2936, allocations: 8.517 MB / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.2937, allocations: 0 / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2937, allocations: 0 / 380.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003139/0.294, allocations: 0 / 380.8 MB, free: 12.21 MB / 318.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.03061/0.3246, allocations: 6.969 MB / 387.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3247, allocations: 16.03 kB / 387.8 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0176/0.3423, allocations: 2.533 MB / 390.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008191/0.3505, allocations: 3.124 MB / 393.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003661/0.3509, allocations: 307.8 kB / 393.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.353, allocations: 399.8 kB / 394.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03028/0.3833, allocations: 13.28 MB / 407.4 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002576/0.3837, allocations: 55.53 kB / 407.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001433/0.3851, allocations: 187.8 kB / 407.6 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004384/0.3895, allocations: 2.205 MB / 409.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02676/0.4163, allocations: 12.69 MB / 422.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2914/0.7077, allocations: 49.4 MB / 471.9 MB, free: 80.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02377/0.7315, allocations: 6.444 MB / 478.4 MB, free: 79.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004278/0.7358, allocations: 3.92 MB / 482.3 MB, free: 77.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008914/0.7368, allocations: 427.2 kB / 482.7 MB, free: 77.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.076e-05/0.7368, allocations: 60.31 kB / 482.8 MB, free: 77.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.679e-06/0.7368, allocations: 1.422 kB / 482.8 MB, free: 77.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1024/0.8393, allocations: 36.18 MB / 0.5068 GB, free: 46.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.333e-05/0.8394, allocations: 213.4 kB / 0.507 GB, free: 46.07 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006663/0.8461, allocations: 4.434 MB / 0.5113 GB, free: 41.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008765/0.847, allocations: 61.7 kB / 0.5114 GB, free: 41.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.8486, allocations: 3.452 MB / 0.5148 GB, free: 38.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001179/0.8498, allocations: 0.9557 MB / 0.5157 GB, free: 37.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00205/0.8519, allocations: 1.6 MB / 0.5173 GB, free: 35.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.8519, allocations: 305.1 kB / 0.5175 GB, free: 35.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00478/0.8567, allocations: 4.331 MB / 0.5218 GB, free: 30.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006842/0.8636, allocations: 8.234 MB / 0.5298 GB, free: 20.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/0.8775, allocations: 13.38 MB / 0.5429 GB, free: 5.598 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000146/0.8777, allocations: 40 kB / 0.5429 GB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.03002/0.9077, allocations: 14.78 MB / 0.5574 GB, free: 6.75 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.9079, allocations: 64 kB / 0.5574 GB, free: 6.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002467/0.9082, allocations: 136.1 kB / 0.5576 GB, free: 6.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007466/0.9157, allocations: 2.467 MB / 0.56 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007943/0.9237, allocations: 1.786 MB / 0.5617 GB, free: 2.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02388/0.9476, allocations: 17.05 MB / 0.5784 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008331/0.956, allocations: 482.6 kB / 0.5788 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/0.958, allocations: 0.4958 MB / 0.5793 GB, free: 15.86 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.006785/0.9648, allocations: 2.38 MB / 0.5816 GB, free: 13.47 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001841/0.9667, allocations: 402.8 kB / 0.582 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/0.9851, allocations: 9.657 MB / 0.5914 GB, free: 3.379 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-05/0.9852, allocations: 28 kB / 0.5915 GB, free: 3.352 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.66e-05/0.9853, allocations: 11.98 kB / 0.5915 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.334e-05/0.9853, allocations: 7.969 kB / 0.5915 GB, free: 3.332 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04004/1.025, allocations: 18.17 MB / 0.6092 GB, free: 1.152 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.057e-05/1.025, allocations: 4 kB / 0.6092 GB, free: 1.148 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003709/1.029, allocations: 0.581 MB / 0.6098 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2205/1.25, allocations: 2.244 MB / 0.612 GB, free: 156.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009839/1.251, allocations: 128.6 kB / 0.6121 GB, free: 156.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01752/1.268, allocations: 15.63 MB / 0.6274 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.268, allocations: 3.125 kB / 0.6274 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0198/1.288, allocations: 15.16 MB / 0.6422 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00238/1.291, allocations: 1.057 MB / 0.6432 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009091/1.291, allocations: 44 kB / 0.6433 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003026/1.295, allocations: 217.2 kB / 0.6435 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007289/1.295, allocations: 236.8 kB / 0.6437 GB, free: 142.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002996/1.296, allocations: 156.4 kB / 0.6438 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00322/1.299, allocations: 2.792 MB / 0.6466 GB, free: 139.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/1.299, allocations: 4 kB / 0.6466 GB, free: 139.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005413/1.304, allocations: 1.43 MB / 0.648 GB, free: 138.2 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.0005274/1.305, allocations: 184.4 kB / 0.6481 GB, free: 138 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01673/1.321, allocations: 13.08 MB / 0.6609 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.322, allocations: 0 / 0.6609 GB, free: 125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005329/1.327, allocations: 4.627 MB / 0.6654 GB, free: 120.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003242/1.33, allocations: 0.5004 MB / 0.6659 GB, free: 119.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01816/1.348, allocations: 13.31 MB / 0.6789 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003563/1.352, allocations: 3.759 MB / 0.6826 GB, free: 102.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006002/1.358, allocations: 2.391 MB / 0.6849 GB, free: 100.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/1.36, allocations: 0.5339 MB / 0.6854 GB, free: 99.94 MB / 446.1 MB Notification: Performance of SimCode: time 1.583e-06/1.36, allocations: 0 / 0.6854 GB, free: 99.94 MB / 446.1 MB Notification: Performance of Templates: time 0.1253/1.485, allocations: 80.03 MB / 0.7636 GB, free: 19.89 MB / 446.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)