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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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/Modelica 3.1.0+maint.om/package.mo): time 0.7932/0.7932, allocations: 110.8 MB / 123.3 MB, free: 10.74 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001756/0.001756, allocations: 147.5 kB / 149.1 MB, free: 0.957 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.771e-05/2.773e-05, allocations: 5.172 kB / 180.2 MB, free: 17.56 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04812/0.04816, allocations: 25.18 MB / 205.4 MB, free: 8.426 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2063/0.2545, allocations: 50.95 MB / 256.3 MB, free: 16.66 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001852/0.2547, allocations: 71.81 kB / 256.4 MB, free: 16.66 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.781/1.036, allocations: 196.4 MB / 452.8 MB, free: 20.25 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.984e-06/1.036, allocations: 0 / 452.8 MB, free: 20.25 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0003704/1.036, allocations: 142.4 kB / 453 MB, free: 20.25 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2379 * Number of variables: 2379 Notification: Performance of Generate backend data structure: time 0.03416/1.07, allocations: 8.708 MB / 461.7 MB, free: 17.54 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/1.07, allocations: 9.875 kB / 461.7 MB, free: 17.54 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1273/1.198, allocations: 27.55 MB / 489.2 MB, free: 14.52 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02514/1.223, allocations: 8.693 MB / 497.9 MB, free: 8.828 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000798/1.224, allocations: 0.5209 MB / 498.5 MB, free: 8.535 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006512/1.23, allocations: 0.6626 MB / 499.1 MB, free: 8.098 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06105/1.291, allocations: 20.68 MB / 0.5076 GB, free: 4.785 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005012/1.292, allocations: 57.73 kB / 0.5077 GB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006059/1.298, allocations: 308.1 kB / 0.508 GB, free: 4.492 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2289/1.527, allocations: 9.473 MB / 0.5172 GB, free: 32.04 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04115/1.568, allocations: 20.96 MB / 0.5377 GB, free: 31.98 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6636/2.232, allocations: 133.9 MB / 0.6684 GB, free: 23.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01273/2.245, allocations: 6.432 MB / 0.6747 GB, free: 20.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00559/2.25, allocations: 4.061 MB / 0.6787 GB, free: 18.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1091/2.359, allocations: 31.63 MB / 0.7096 GB, free: 6.777 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.605e-05/2.36, allocations: 60.56 kB / 0.7096 GB, free: 6.711 MB / 282.7 MB Notification: Performance of pre-optimization done (n=286): time 7.955e-06/2.36, allocations: 0 / 0.7096 GB, free: 6.711 MB / 282.7 MB Notification: Performance of matching and sorting (n=312): time 0.243/2.603, allocations: 21.61 MB / 0.7307 GB, free: 57.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/2.603, allocations: 238.5 kB / 0.731 GB, free: 57.12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009344/2.612, allocations: 5.315 MB / 0.7362 GB, free: 56.68 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00102/2.613, allocations: 71.22 kB / 0.7362 GB, free: 56.65 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002966/2.616, allocations: 4.616 MB / 0.7407 GB, free: 54.2 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00186/2.618, allocations: 1.159 MB / 0.7419 GB, free: 53.53 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007196/2.619, allocations: 171 kB / 0.742 GB, free: 53.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003967/2.619, allocations: 0.6629 MB / 0.7427 GB, free: 53.2 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005901/2.625, allocations: 4.035 MB / 0.7466 GB, free: 53.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009616/2.635, allocations: 8.974 MB / 0.7554 GB, free: 46.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008667/2.643, allocations: 5.143 MB / 0.7604 GB, free: 44.95 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000227/2.644, allocations: 47.62 kB / 0.7604 GB, free: 44.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.02711/2.671, allocations: 12.98 MB / 0.7731 GB, free: 40.65 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000248/2.671, allocations: 79.16 kB / 0.7732 GB, free: 40.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000385/2.671, allocations: 177.2 kB / 0.7734 GB, free: 40.65 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002655/2.674, allocations: 0.9682 MB / 0.7743 GB, free: 40.48 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007392/2.681, allocations: 2.006 MB / 0.7763 GB, free: 40.25 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008099/2.69, allocations: 7.399 MB / 0.7835 GB, free: 35.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01657/2.706, allocations: 2.086 MB / 0.7855 GB, free: 35.42 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0029/2.709, allocations: 0.7253 MB / 0.7862 GB, free: 34.77 MB / 282.7 MB Warning: Assuming fixed start value for the following 2 variables: gearConstraint.actuatedRevolute_b.w:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real gearConstraint.actuatedRevolute_b.phi:VARIABLE(start = 0.0 unit = "rad" stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 795 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1031): * Single equations (assignments): 1014 * Array equations: 15 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003976/2.713, allocations: 0.7517 MB / 0.787 GB, free: 34.04 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002329/2.715, allocations: 0.5109 MB / 0.7875 GB, free: 33.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009369/2.725, allocations: 4.591 MB / 0.792 GB, free: 29.71 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01451/2.739, allocations: 3.17 MB / 0.795 GB, free: 27.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-05/2.739, allocations: 8 kB / 0.7951 GB, free: 27.97 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.822e-05/2.74, allocations: 18.88 kB / 0.7951 GB, free: 27.96 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.275/3.015, allocations: 22.96 MB / 0.8175 GB, free: 52.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.143e-05/3.015, allocations: 1.156 kB / 0.8175 GB, free: 52.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/3.017, allocations: 467.5 kB / 0.8179 GB, free: 52.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/3.019, allocations: 0.6788 MB / 0.8186 GB, free: 52.49 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001009/3.021, allocations: 143.4 kB / 0.8187 GB, free: 52.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007333/3.028, allocations: 6.47 MB / 0.8251 GB, free: 49.91 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/3.028, allocations: 2.219 kB / 0.8251 GB, free: 49.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01835/3.046, allocations: 11.39 MB / 0.8362 GB, free: 49.09 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004238/3.051, allocations: 1.312 MB / 0.8375 GB, free: 49 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001814/3.052, allocations: 48.11 kB / 0.8375 GB, free: 49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01127/3.064, allocations: 1.727 MB / 0.8392 GB, free: 49 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009735/3.065, allocations: 173.6 kB / 0.8394 GB, free: 48.99 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006483/3.065, allocations: 288.6 kB / 0.8396 GB, free: 48.99 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.008612/3.074, allocations: 3.741 MB / 0.8433 GB, free: 48.79 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.61e-07/3.074, allocations: 0 / 0.8433 GB, free: 48.79 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.01089/3.085, allocations: 1.61 MB / 0.8449 GB, free: 48.79 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 222 * Array equations: 15 * 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.0009033/3.086, allocations: 195.4 kB / 0.8451 GB, free: 48.7 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.01533/3.101, allocations: 9.561 MB / 0.8544 GB, free: 47.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/3.101, allocations: 0 / 0.8544 GB, free: 47.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005263/3.107, allocations: 3.563 MB / 0.8579 GB, free: 45.66 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00388/3.11, allocations: 0.5573 MB / 0.8584 GB, free: 45.4 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02519/3.136, allocations: 12.83 MB / 0.8709 GB, free: 40.84 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006072/3.142, allocations: 4.997 MB / 0.8758 GB, free: 37.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0113/3.153, allocations: 3.336 MB / 0.8791 GB, free: 35.39 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00349/3.157, allocations: 0.7307 MB / 0.8798 GB, free: 34.83 MB / 282.7 MB Notification: Performance of SimCode: time 1.653e-06/3.157, allocations: 0 / 0.8798 GB, free: 34.83 MB / 282.7 MB Notification: Performance of Templates: time 0.3087/3.465, allocations: 75.87 MB / 0.9539 GB, free: 47.24 MB / 282.7 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)