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.001152/0.001152, 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.001327/0.001327, allocations: 193.4 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.55/1.55, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001173/0.001173, allocations: 55.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.273, allocations: 46.62 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.06144/0.3346, allocations: 66.41 MB / 391.3 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03805/0.3727, allocations: 13.32 MB / 404.6 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01899/0.3918, allocations: 283.3 kB / 404.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008282/0.4001, allocations: 3.947 MB / 408.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007847/0.408, allocations: 1.931 MB / 410.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002681/0.4107, allocations: 0.7529 MB / 411.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009068/0.4198, allocations: 4.732 MB / 416.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01034/0.4301, allocations: 5.405 MB / 421.6 MB, free: 2.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005044/0.4352, allocations: 1.963 MB / 423.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005684/0.441, allocations: 2.98 MB / 426.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002033/0.443, allocations: 456 kB / 427 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004435/0.4475, allocations: 1.346 MB / 428.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004088/0.4516, allocations: 2.369 MB / 430.7 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005791/0.4574, allocations: 2.762 MB / 433.5 MB, free: 7.039 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01225/0.4697, allocations: 8.571 MB / 442.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.158e-05/0.4698, allocations: 0 / 442.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.776e-06/0.4698, allocations: 0 / 442.1 MB, free: 14.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003656/0.4702, allocations: 0 / 442.1 MB, free: 14.44 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.03296/0.5031, allocations: 6.961 MB / 449 MB, free: 7.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.846e-05/0.5032, allocations: 8.031 kB / 449 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01566/0.5189, allocations: 2.533 MB / 451.6 MB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00946/0.5284, allocations: 3.128 MB / 454.7 MB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003438/0.5288, allocations: 299.8 kB / 455 MB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00218/0.531, allocations: 403.8 kB / 455.4 MB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.252/0.7829, allocations: 13.28 MB / 468.7 MB, free: 108.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.7831, allocations: 49.25 kB / 468.7 MB, free: 108.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006861/0.7838, allocations: 187.2 kB / 468.9 MB, free: 108.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003732/0.7876, allocations: 2.204 MB / 471.1 MB, free: 107.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02442/0.812, allocations: 12.69 MB / 483.8 MB, free: 94.79 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05591/0.868, allocations: 49.41 MB / 0.5207 GB, free: 44.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02226/0.8903, allocations: 6.459 MB / 0.527 GB, free: 38.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003957/0.8943, allocations: 3.931 MB / 0.5308 GB, free: 34.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008502/0.8951, allocations: 432.3 kB / 0.5313 GB, free: 33.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.747e-05/0.8952, allocations: 55.88 kB / 0.5313 GB, free: 33.61 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.318e-06/0.8952, allocations: 7.656 kB / 0.5313 GB, free: 33.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.09249/0.9877, allocations: 36.16 MB / 0.5666 GB, free: 13.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.9879, allocations: 205.9 kB / 0.5668 GB, free: 12.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00693/0.9948, allocations: 4.427 MB / 0.5711 GB, free: 8.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001344/0.9962, allocations: 69.69 kB / 0.5712 GB, free: 8.445 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003859/1, allocations: 3.45 MB / 0.5746 GB, free: 4.949 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002483/1.003, allocations: 0.9561 MB / 0.5755 GB, free: 3.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003587/1.006, allocations: 1.599 MB / 0.5771 GB, free: 2.371 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/1.006, allocations: 305.1 kB / 0.5774 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007082/1.013, allocations: 4.339 MB / 0.5816 GB, free: 13.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009094/1.023, allocations: 8.224 MB / 0.5896 GB, free: 3.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01658/1.039, allocations: 13.4 MB / 0.6027 GB, free: 4.285 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001179/1.039, allocations: 40 kB / 0.6028 GB, free: 4.246 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2387/1.278, allocations: 14.77 MB / 0.6172 GB, free: 140.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.376e-05/1.278, allocations: 64.28 kB / 0.6172 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001633/1.278, allocations: 144.6 kB / 0.6174 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006238/1.285, allocations: 2.459 MB / 0.6198 GB, free: 139.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006963/1.292, allocations: 1.788 MB / 0.6215 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/1.311, allocations: 17.05 MB / 0.6382 GB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007594/1.318, allocations: 475.3 kB / 0.6386 GB, free: 129.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001732/1.32, allocations: 0.4917 MB / 0.6391 GB, free: 128.6 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.005245/1.325, allocations: 2.393 MB / 0.6415 GB, free: 126.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/1.327, allocations: 395.7 kB / 0.6418 GB, free: 126.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0136/1.34, allocations: 9.663 MB / 0.6513 GB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.578e-05/1.34, allocations: 28 kB / 0.6513 GB, free: 116.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.731e-05/1.34, allocations: 12 kB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.618e-05/1.34, allocations: 11.95 kB / 0.6513 GB, free: 116.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0276/1.368, allocations: 18.15 MB / 0.669 GB, free: 98.24 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.443e-05/1.368, allocations: 0 / 0.669 GB, free: 98.24 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003328/1.371, allocations: 0.5888 MB / 0.6696 GB, free: 97.65 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005523/1.377, allocations: 2.246 MB / 0.6718 GB, free: 95.4 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008489/1.378, allocations: 127.8 kB / 0.6719 GB, free: 95.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/1.393, allocations: 15.62 MB / 0.6872 GB, free: 79.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/1.393, allocations: 4.031 kB / 0.6872 GB, free: 79.33 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01886/1.412, allocations: 15.17 MB / 0.702 GB, free: 64.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002973/1.415, allocations: 1.062 MB / 0.703 GB, free: 62.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/1.417, allocations: 44 kB / 0.7031 GB, free: 62.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003648/1.42, allocations: 215.7 kB / 0.7033 GB, free: 62.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008361/1.421, allocations: 241.5 kB / 0.7035 GB, free: 62.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003261/1.422, allocations: 155.6 kB / 0.7037 GB, free: 62.35 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004241/1.426, allocations: 2.788 MB / 0.7064 GB, free: 59.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.426, allocations: 4 kB / 0.7064 GB, free: 59.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009046/1.435, allocations: 1.432 MB / 0.7078 GB, free: 58.12 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.001133/1.436, allocations: 191.6 kB / 0.708 GB, free: 57.94 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02096/1.457, allocations: 13.06 MB / 0.7207 GB, free: 44.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.62e-05/1.457, allocations: 0 / 0.7207 GB, free: 44.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006786/1.464, allocations: 4.63 MB / 0.7253 GB, free: 40.22 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004445/1.468, allocations: 0.4995 MB / 0.7257 GB, free: 39.72 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02457/1.493, allocations: 15.69 MB / 0.7411 GB, free: 24.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004256/1.497, allocations: 3.754 MB / 0.7447 GB, free: 20.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006011/1.503, allocations: 2.395 MB / 0.7471 GB, free: 17.83 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00212/1.505, allocations: 0.5378 MB / 0.7476 GB, free: 17.29 MB / 430.1 MB Notification: Performance of SimCode: time 3.216e-06/1.505, allocations: 0 / 0.7476 GB, free: 17.29 MB / 430.1 MB Notification: Performance of Templates: time 0.3428/1.848, allocations: 80.01 MB / 0.8257 GB, free: 90.76 MB / 430.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)