Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.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.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009469/0.0009469, allocations: 91.84 kB / 15.06 MB, free: 1.098 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.001195/0.001195, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004572/0.0004574, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2991, allocations: 47.58 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.06403/0.3631, allocations: 63.67 MB / 390.1 MB, free: 3.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04026/0.4035, allocations: 13.41 MB / 403.6 MB, free: 6.211 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01814/0.4217, allocations: 303.2 kB / 403.9 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01367/0.4354, allocations: 3.297 MB / 407.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02953/0.465, allocations: 9.739 MB / 416.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004738/0.4698, allocations: 0.8035 MB / 417.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.04932/0.5191, allocations: 34.97 MB / 452.7 MB, free: 5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2564/0.7756, allocations: 6.626 MB / 459.3 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004322/0.7799, allocations: 1.72 MB / 461 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004854/0.7848, allocations: 2.645 MB / 463.7 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.7859, allocations: 192.2 kB / 463.8 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.7883, allocations: 0.9724 MB / 464.8 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002336/0.7906, allocations: 2.261 MB / 467.1 MB, free: 34.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001382/0.792, allocations: 1.087 MB / 468.2 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009074/0.8011, allocations: 7.412 MB / 475.6 MB, free: 33.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.8011, allocations: 3.125 kB / 475.6 MB, free: 33.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.8011, allocations: 0 / 475.6 MB, free: 33.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003639/0.8015, allocations: 0 / 475.6 MB, free: 33.84 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: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01192/0.8134, allocations: 5.266 MB / 480.8 MB, free: 31.5 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.8135, allocations: 15.84 kB / 480.9 MB, free: 31.5 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01098/0.8245, allocations: 2.664 MB / 483.5 MB, free: 30.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009585/0.8341, allocations: 3.906 MB / 487.4 MB, free: 29.11 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003542/0.8345, allocations: 310.8 kB / 487.7 MB, free: 29.1 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002001/0.8365, allocations: 446.6 kB / 488.2 MB, free: 29.09 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.8592, allocations: 12.22 MB / 0.4887 GB, free: 25.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001427/0.8594, allocations: 55.86 kB / 0.4887 GB, free: 25.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004802/0.8598, allocations: 197.3 kB / 0.4889 GB, free: 25.13 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002968/0.8628, allocations: 2.208 MB / 0.4911 GB, free: 23.67 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01933/0.8822, allocations: 10.51 MB / 0.5013 GB, free: 16.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06997/0.9522, allocations: 47.58 MB / 0.5478 GB, free: 8.758 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.9641, allocations: 4.589 MB / 0.5523 GB, free: 5.125 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004244/0.9684, allocations: 2.632 MB / 0.5548 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02216/0.9906, allocations: 10.44 MB / 0.565 GB, free: 10.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.515e-05/0.9908, allocations: 59.05 kB / 0.5651 GB, free: 10.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=192): time 5.952e-06/0.9908, allocations: 4 kB / 0.5651 GB, free: 10.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=218): time 0.05872/1.05, allocations: 20.98 MB / 0.5856 GB, free: 5.484 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001289/1.05, allocations: 201.2 kB / 0.5858 GB, free: 5.246 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009465/1.059, allocations: 4.802 MB / 0.5905 GB, free: 456 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005686/1.06, allocations: 60.8 kB / 0.5905 GB, free: 392 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003344/1.063, allocations: 3.723 MB / 0.5942 GB, free: 12.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001516/1.065, allocations: 0.8322 MB / 0.595 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008684/1.066, allocations: 136 kB / 0.5951 GB, free: 11.73 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0006722/1.066, allocations: 0.5992 MB / 0.5957 GB, free: 11.13 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004873/1.071, allocations: 2.56 MB / 0.5982 GB, free: 8.566 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008534/1.08, allocations: 6.533 MB / 0.6046 GB, free: 148 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007869/1.088, allocations: 3.991 MB / 0.6085 GB, free: 12.28 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002029/1.088, allocations: 40 kB / 0.6085 GB, free: 12.24 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02613/1.114, allocations: 10.22 MB / 0.6185 GB, free: 2.859 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002055/1.114, allocations: 64 kB / 0.6185 GB, free: 2.797 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002759/1.114, allocations: 140 kB / 0.6187 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004517/1.119, allocations: 1.63 MB / 0.6203 GB, free: 1.023 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2266/1.346, allocations: 1.563 MB / 0.6218 GB, free: 185.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01278/1.358, allocations: 9.543 MB / 0.6311 GB, free: 181.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005713/1.364, allocations: 386.9 kB / 0.6315 GB, free: 181.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008574/1.365, allocations: 409.5 kB / 0.6319 GB, free: 181.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[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],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (834): * Single equations (assignments): 829 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(3,77.8%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005037/1.37, allocations: 2.582 MB / 0.6344 GB, free: 180.4 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.371, allocations: 426.1 kB / 0.6348 GB, free: 180.4 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008294/1.38, allocations: 4.622 MB / 0.6393 GB, free: 178.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.014e-05/1.38, allocations: 23 kB / 0.6393 GB, free: 178.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/1.38, allocations: 10.48 kB / 0.6393 GB, free: 178.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/1.38, allocations: 9 kB / 0.6393 GB, free: 178.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02075/1.401, allocations: 10.49 MB / 0.6496 GB, free: 175.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/1.401, allocations: 3.281 kB / 0.6496 GB, free: 175.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001592/1.402, allocations: 350.3 kB / 0.6499 GB, free: 175.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003633/1.406, allocations: 1.362 MB / 0.6513 GB, free: 174.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002381/1.406, allocations: 39.3 kB / 0.6513 GB, free: 174.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009417/1.416, allocations: 8.731 MB / 0.6598 GB, free: 168.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/1.416, allocations: 7.656 kB / 0.6598 GB, free: 168.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01092/1.427, allocations: 7.553 MB / 0.6672 GB, free: 162.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001986/1.429, allocations: 0.7843 MB / 0.668 GB, free: 161.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/1.43, allocations: 40.91 kB / 0.668 GB, free: 161.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002217/1.432, allocations: 135.5 kB / 0.6681 GB, free: 161.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/1.432, allocations: 136.8 kB / 0.6683 GB, free: 161.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001755/1.433, allocations: 60.61 kB / 0.6683 GB, free: 161.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005549/1.438, allocations: 3.013 MB / 0.6713 GB, free: 158.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.438, allocations: 3.875 kB / 0.6713 GB, free: 158.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007408/1.446, allocations: 1.265 MB / 0.6725 GB, free: 157.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.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 (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007311/1.446, allocations: 167 kB / 0.6727 GB, free: 157 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01086/1.457, allocations: 6.356 MB / 0.6789 GB, free: 150.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.457, allocations: 4 kB / 0.6789 GB, free: 150.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003839/1.461, allocations: 2.2 MB / 0.681 GB, free: 148.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0054/1.466, allocations: 0.5233 MB / 0.6815 GB, free: 148.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/1.492, allocations: 13.87 MB / 0.6951 GB, free: 134.4 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008253/1.5, allocations: 4.003 MB / 0.699 GB, free: 130.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006437/1.507, allocations: 2.091 MB / 0.701 GB, free: 128.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/1.508, allocations: 283.4 kB / 0.7013 GB, free: 128 MB / 478.1 MB Notification: Performance of SimCode: time 1.202e-06/1.508, allocations: 0 / 0.7013 GB, free: 128 MB / 478.1 MB Notification: Performance of Templates: time 0.08177/1.59, allocations: 44 MB / 0.7443 GB, free: 84.04 MB / 478.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)