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.001505/0.001505, allocations: 98.64 kB / 16.5 MB, free: 6.641 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.001613/0.001613, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.516/1.516, allocations: 205.1 MB / 223.3 MB, free: 12.37 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.001284/0.001284, allocations: 48.25 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 46.63 MB / 326 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2314/0.3429, allocations: 66.4 MB / 392.4 MB, free: 9.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02558/0.3686, allocations: 13.43 MB / 405.8 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01232/0.3809, allocations: 285 kB / 406.1 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006565/0.3875, allocations: 4.095 MB / 410.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.3936, allocations: 1.939 MB / 412.1 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002872/0.3964, allocations: 0.7281 MB / 412.8 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008206/0.4047, allocations: 6.785 MB / 419.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006045/0.4108, allocations: 5.061 MB / 424.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003535/0.4143, allocations: 1.722 MB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004727/0.4191, allocations: 2.881 MB / 429.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001366/0.4205, allocations: 328 kB / 429.6 MB, free: 7.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.424, allocations: 1.265 MB / 430.9 MB, free: 6.301 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002839/0.4269, allocations: 2.255 MB / 433.1 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003958/0.4308, allocations: 2.627 MB / 435.8 MB, free: 1.418 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01114/0.442, allocations: 8.423 MB / 444.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.4421, allocations: 0 / 444.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4421, allocations: 3.938 kB / 444.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002692/0.4423, allocations: 0 / 444.2 MB, free: 9.176 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.03809/0.4804, allocations: 6.955 MB / 451.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/0.4805, allocations: 8.031 kB / 451.1 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02064/0.5012, allocations: 2.535 MB / 453.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007259/0.5085, allocations: 3.13 MB / 456.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002398/0.5088, allocations: 299.7 kB / 457.1 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001655/0.5104, allocations: 409.2 kB / 457.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02731/0.5378, allocations: 13.27 MB / 470.8 MB, free: 14.01 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001568/0.5379, allocations: 55.38 kB / 470.8 MB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000737/0.5387, allocations: 198.5 kB / 471 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004391/0.5431, allocations: 2.195 MB / 473.2 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02832/0.5714, allocations: 12.69 MB / 485.9 MB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07004/0.6415, allocations: 49.42 MB / 0.5228 GB, free: 12.54 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02492/0.6665, allocations: 6.461 MB / 0.5291 GB, free: 5.926 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005127/0.6716, allocations: 3.923 MB / 0.5329 GB, free: 2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009085/0.6726, allocations: 429.3 kB / 0.5333 GB, free: 1.535 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.355e-05/0.6726, allocations: 55.81 kB / 0.5334 GB, free: 1.473 MB / 446.1 MB Notification: Performance of pre-optimization done (n=217): time 4.368e-06/0.6726, allocations: 0 / 0.5334 GB, free: 1.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=255): time 0.2806/0.9533, allocations: 36.15 MB / 0.5687 GB, free: 151.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.9535, allocations: 205.9 kB / 0.5689 GB, free: 151.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00612/0.9596, allocations: 4.431 MB / 0.5732 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001002/0.9606, allocations: 61.7 kB / 0.5733 GB, free: 146.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001563/0.9622, allocations: 3.459 MB / 0.5766 GB, free: 143.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.9634, allocations: 0.9622 MB / 0.5776 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001865/0.9652, allocations: 1.591 MB / 0.5791 GB, free: 140.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.132e-05/0.9653, allocations: 305.1 kB / 0.5794 GB, free: 140.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004586/0.9699, allocations: 4.331 MB / 0.5837 GB, free: 136.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005918/0.9758, allocations: 8.232 MB / 0.5917 GB, free: 126.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01228/0.9881, allocations: 13.4 MB / 0.6048 GB, free: 110.8 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-05/0.9882, allocations: 39.94 kB / 0.6048 GB, free: 110.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.0238/1.012, allocations: 14.78 MB / 0.6192 GB, free: 96.01 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001383/1.012, allocations: 63.28 kB / 0.6193 GB, free: 95.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/1.012, allocations: 140 kB / 0.6194 GB, free: 95.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0068/1.019, allocations: 2.453 MB / 0.6218 GB, free: 93.35 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007101/1.026, allocations: 1.786 MB / 0.6236 GB, free: 91.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01698/1.043, allocations: 15.87 MB / 0.6391 GB, free: 75.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006697/1.05, allocations: 467.2 kB / 0.6395 GB, free: 74.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001438/1.052, allocations: 0.4919 MB / 0.64 GB, free: 74.35 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.005908/1.058, allocations: 2.397 MB / 0.6423 GB, free: 71.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00181/1.059, allocations: 398.8 kB / 0.6427 GB, free: 71.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01514/1.075, allocations: 9.657 MB / 0.6521 GB, free: 61.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.522e-05/1.075, allocations: 31.94 kB / 0.6522 GB, free: 61.83 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-05/1.075, allocations: 12 kB / 0.6522 GB, free: 61.82 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.302e-05/1.075, allocations: 11.95 kB / 0.6522 GB, free: 61.81 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02884/1.104, allocations: 18.15 MB / 0.6699 GB, free: 43.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.316e-05/1.104, allocations: 0 / 0.6699 GB, free: 43.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003143/1.107, allocations: 0.5889 MB / 0.6705 GB, free: 43.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005812/1.113, allocations: 2.243 MB / 0.6727 GB, free: 40.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007755/1.113, allocations: 127.8 kB / 0.6728 GB, free: 40.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01546/1.129, allocations: 14.59 MB / 0.6871 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.129, allocations: 0 / 0.6871 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0203/1.149, allocations: 15.17 MB / 0.7019 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1992/1.348, allocations: 1.05 MB / 0.7029 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001415/1.35, allocations: 40.56 kB / 0.7029 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00361/1.354, allocations: 221.4 kB / 0.7032 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009396/1.354, allocations: 243.1 kB / 0.7034 GB, free: 150.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004152/1.355, allocations: 151.5 kB / 0.7035 GB, free: 150.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005476/1.36, allocations: 2.785 MB / 0.7062 GB, free: 150.2 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.32e-07/1.36, allocations: 1.312 kB / 0.7062 GB, free: 150.2 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008839/1.369, allocations: 1.435 MB / 0.7077 GB, free: 150.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.001068/1.37, allocations: 191 kB / 0.7078 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01663/1.387, allocations: 10.39 MB / 0.718 GB, free: 147.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.387, allocations: 0 / 0.718 GB, free: 147.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006057/1.393, allocations: 4.626 MB / 0.7225 GB, free: 145.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/1.397, allocations: 475.2 kB / 0.7229 GB, free: 145.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02115/1.418, allocations: 15.7 MB / 0.7383 GB, free: 136.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003336/1.421, allocations: 3.761 MB / 0.742 GB, free: 133.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005593/1.427, allocations: 2.394 MB / 0.7443 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.429, allocations: 0.531 MB / 0.7448 GB, free: 131.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/1.429, allocations: 0 / 0.7448 GB, free: 131.7 MB / 446.1 MB Notification: Performance of Templates: time 0.1155/1.544, allocations: 77.48 MB / 0.8205 GB, free: 55.46 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)