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.001681/0.001681, allocations: 108 kB / 15.61 MB, free: 152 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.002635/0.002635, allocations: 196 kB / 16.53 MB, free: 6.664 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.543/1.543, 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.001663/0.001663, allocations: 60.39 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2862, allocations: 46.63 MB / 325.3 MB, free: 1.832 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01487/0.3011, allocations: 13.95 MB / 339.3 MB, free: 5.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01052/0.3117, allocations: 4.733 MB / 344 MB, free: 1.172 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003432/0.3152, allocations: 87.75 kB / 344.1 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008048/0.3232, allocations: 4.073 MB / 348.2 MB, free: 13 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00637/0.3297, allocations: 2.073 MB / 350.2 MB, free: 10.92 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002355/0.332, allocations: 0.8189 MB / 351 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007049/0.3391, allocations: 4.611 MB / 355.7 MB, free: 5.473 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006168/0.3453, allocations: 5.133 MB / 360.8 MB, free: 280 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003099/0.3484, allocations: 1.932 MB / 362.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003522/0.352, allocations: 2.711 MB / 365.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008937/0.3529, allocations: 455.9 kB / 365.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002579/0.3555, allocations: 1.319 MB / 367.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002274/0.3577, allocations: 2.346 MB / 369.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003424/0.3612, allocations: 2.735 MB / 372.3 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009899/0.3711, allocations: 8.521 MB / 380.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3711, allocations: 0 / 380.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3712, allocations: 0 / 380.8 MB, free: 12.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003153/0.3715, allocations: 0 / 380.8 MB, free: 12.2 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.03166/0.4031, allocations: 6.961 MB / 387.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.677e-05/0.4032, allocations: 8.031 kB / 387.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01799/0.4212, allocations: 2.541 MB / 390.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0081/0.4293, allocations: 3.128 MB / 393.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003063/0.4297, allocations: 303.8 kB / 393.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002105/0.4318, allocations: 403.8 kB / 394.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02913/0.461, allocations: 13.28 MB / 407.4 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001684/0.4612, allocations: 43.59 kB / 407.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000852/0.462, allocations: 187.9 kB / 407.6 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004722/0.4668, allocations: 2.213 MB / 409.8 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03207/0.4989, allocations: 12.68 MB / 422.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3146/0.8136, allocations: 49.42 MB / 471.9 MB, free: 80.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02285/0.8365, allocations: 6.446 MB / 478.4 MB, free: 79.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004043/0.8406, allocations: 3.918 MB / 482.3 MB, free: 77.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007901/0.8414, allocations: 429.9 kB / 482.7 MB, free: 77.56 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.8414, allocations: 56.53 kB / 482.8 MB, free: 77.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.619e-06/0.8414, allocations: 0 / 482.8 MB, free: 77.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.09307/0.9345, allocations: 36.18 MB / 0.5068 GB, free: 46.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.703e-05/0.9346, allocations: 209.4 kB / 0.507 GB, free: 46.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005332/0.94, allocations: 4.431 MB / 0.5113 GB, free: 41.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007307/0.9407, allocations: 61.7 kB / 0.5114 GB, free: 41.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.9422, allocations: 3.456 MB / 0.5148 GB, free: 38.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009129/0.9431, allocations: 0.9525 MB / 0.5157 GB, free: 37.12 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001837/0.9449, allocations: 1.599 MB / 0.5173 GB, free: 35.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.945, allocations: 309.1 kB / 0.5176 GB, free: 35.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004496/0.9495, allocations: 4.335 MB / 0.5218 GB, free: 30.87 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005991/0.9555, allocations: 8.228 MB / 0.5298 GB, free: 20.79 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/0.9678, allocations: 13.4 MB / 0.5429 GB, free: 5.547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.786e-05/0.9679, allocations: 36 kB / 0.5429 GB, free: 5.512 MB / 382.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02563/0.9936, allocations: 14.78 MB / 0.5574 GB, free: 6.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001494/0.9937, allocations: 64 kB / 0.5574 GB, free: 6.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002294/0.994, allocations: 136 kB / 0.5576 GB, free: 6.508 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006722/1.001, allocations: 2.452 MB / 0.56 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006763/1.007, allocations: 1.793 MB / 0.5617 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02204/1.03, allocations: 17.05 MB / 0.5784 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009158/1.039, allocations: 479.2 kB / 0.5788 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001876/1.041, allocations: 499.7 kB / 0.5793 GB, free: 15.84 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.005662/1.046, allocations: 2.395 MB / 0.5816 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001516/1.048, allocations: 398.8 kB / 0.582 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01851/1.066, allocations: 9.661 MB / 0.5914 GB, free: 3.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.595e-05/1.067, allocations: 28 kB / 0.5915 GB, free: 3.312 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.412e-05/1.067, allocations: 8 kB / 0.5915 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.068e-05/1.067, allocations: 11.95 kB / 0.5915 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04127/1.108, allocations: 18.16 MB / 0.6092 GB, free: 1.121 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.85e-05/1.108, allocations: 4 kB / 0.6092 GB, free: 1.117 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003458/1.111, allocations: 0.585 MB / 0.6098 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2789/1.39, allocations: 2.247 MB / 0.612 GB, free: 156.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001289/1.392, allocations: 125.5 kB / 0.6121 GB, free: 156.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01993/1.412, allocations: 15.63 MB / 0.6274 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.412, allocations: 0 / 0.6274 GB, free: 149.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02214/1.434, allocations: 15.16 MB / 0.6422 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003469/1.437, allocations: 1.055 MB / 0.6432 GB, free: 142.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001696/1.439, allocations: 47.28 kB / 0.6433 GB, free: 142.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004544/1.444, allocations: 224.2 kB / 0.6435 GB, free: 142.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001087/1.445, allocations: 235.7 kB / 0.6437 GB, free: 142.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004192/1.445, allocations: 150 kB / 0.6438 GB, free: 142.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006127/1.451, allocations: 2.795 MB / 0.6466 GB, free: 139.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.262e-06/1.451, allocations: 0 / 0.6466 GB, free: 139.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009451/1.461, allocations: 1.43 MB / 0.648 GB, free: 138.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.001018/1.462, allocations: 186.6 kB / 0.6481 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01924/1.481, allocations: 13.08 MB / 0.6609 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.387e-06/1.481, allocations: 0 / 0.6609 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006494/1.488, allocations: 4.626 MB / 0.6654 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005882/1.494, allocations: 0.4916 MB / 0.6659 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02498/1.519, allocations: 13.31 MB / 0.6789 GB, free: 106.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004217/1.523, allocations: 3.755 MB / 0.6826 GB, free: 102.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00644/1.529, allocations: 2.385 MB / 0.6849 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002744/1.532, allocations: 0.5417 MB / 0.6854 GB, free: 99.86 MB / 446.1 MB Notification: Performance of SimCode: time 3.126e-06/1.532, allocations: 0 / 0.6854 GB, free: 99.86 MB / 446.1 MB Notification: Performance of Templates: time 0.1376/1.67, allocations: 80.03 MB / 0.7636 GB, free: 19.8 MB / 446.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)