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.665/0.665, allocations: 110.9 MB / 125.9 MB, free: 6.203 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001655/0.001655, allocations: 151.2 kB / 151.9 MB, free: 4.977 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002346/0.0002346, allocations: 8 kB / 184.9 MB, free: 3.906 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1278, allocations: 25.15 MB / 210 MB, free: 29.73 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05941/0.1872, allocations: 51.05 MB / 261.1 MB, free: 14.73 MB / 202.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.1875, allocations: 71.97 kB / 261.2 MB, free: 14.66 MB / 202.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6522/0.8396, allocations: 196.6 MB / 457.7 MB, free: 15.47 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.8397, allocations: 0 / 457.7 MB, free: 15.47 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002971/0.84, allocations: 132 kB / 457.9 MB, free: 15.34 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.02784/0.8678, allocations: 9.198 MB / 467.1 MB, free: 6.062 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.8679, allocations: 8.031 kB / 467.1 MB, free: 6.055 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2355/1.103, allocations: 27.6 MB / 494.7 MB, free: 33.21 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01941/1.123, allocations: 8.722 MB / 0.4916 GB, free: 32.9 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005279/1.123, allocations: 0.5135 MB / 0.4921 GB, free: 32.89 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004268/1.128, allocations: 0.6668 MB / 0.4928 GB, free: 32.88 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08191/1.21, allocations: 30.88 MB / 0.5229 GB, free: 29.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002264/1.21, allocations: 55.64 kB / 0.523 GB, free: 29.29 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001908/1.212, allocations: 303.6 kB / 0.5233 GB, free: 29.11 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.03634/1.248, allocations: 9.483 MB / 0.5325 GB, free: 28.6 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07903/1.327, allocations: 32.19 MB / 0.564 GB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6828/2.01, allocations: 133.9 MB / 0.6947 GB, free: 50.39 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02969/2.04, allocations: 10.32 MB / 0.7048 GB, free: 49.5 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1026/2.142, allocations: 31.62 MB / 0.7357 GB, free: 46.55 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/2.143, allocations: 71.2 kB / 0.7357 GB, free: 46.52 MB / 282.7 MB Notification: Performance of pre-optimization done (n=286): time 6.573e-06/2.143, allocations: 0 / 0.7357 GB, free: 46.52 MB / 282.7 MB Notification: Performance of matching and sorting (n=312): time 0.113/2.256, allocations: 39.71 MB / 0.7745 GB, free: 27.88 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.229e-05/2.256, allocations: 231.6 kB / 0.7747 GB, free: 27.61 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008176/2.264, allocations: 5.391 MB / 0.78 GB, free: 22.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009541/2.265, allocations: 64.67 kB / 0.7801 GB, free: 22.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002361/2.267, allocations: 4.613 MB / 0.7846 GB, free: 17.59 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001398/2.269, allocations: 1.156 MB / 0.7857 GB, free: 16.44 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006446/2.269, allocations: 171.5 kB / 0.7859 GB, free: 16.28 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003051/2.27, allocations: 0.6695 MB / 0.7865 GB, free: 15.6 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1421/2.412, allocations: 7.923 MB / 0.7943 GB, free: 56.16 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02669/2.438, allocations: 12.88 MB / 0.8068 GB, free: 49.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02247/2.461, allocations: 8.366 MB / 0.815 GB, free: 49.77 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001592/2.461, allocations: 50.56 kB / 0.815 GB, free: 49.77 MB / 282.7 MB Notification: Performance of matching and sorting (n=1117) (initialization): time 0.05576/2.517, allocations: 20.15 MB / 0.8347 GB, free: 48.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001201/2.517, allocations: 79.94 kB / 0.8348 GB, free: 48.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001972/2.517, allocations: 172.9 kB / 0.835 GB, free: 48.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/2.52, allocations: 0.9749 MB / 0.8359 GB, free: 48.6 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006169/2.526, allocations: 2.009 MB / 0.8379 GB, free: 48.43 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007229/2.533, allocations: 7.59 MB / 0.8453 GB, free: 44.17 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0144/2.547, allocations: 2.082 MB / 0.8473 GB, free: 44.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002066/2.55, allocations: 0.7327 MB / 0.848 GB, free: 43.95 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" fixed = true stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real gearConstraint.actuatedRevolute_b.phi:VARIABLE(start = 0.0 unit = "rad" fixed = true 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 () * Number of clocked 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.006264/2.556, allocations: 3.164 MB / 0.8511 GB, free: 42.58 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/2.557, allocations: 0.5143 MB / 0.8516 GB, free: 42.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01631/2.573, allocations: 6.388 MB / 0.8579 GB, free: 40.63 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0144/2.588, allocations: 3.169 MB / 0.861 GB, free: 38.88 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.504e-05/2.588, allocations: 8 kB / 0.861 GB, free: 38.87 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/2.588, allocations: 12.38 kB / 0.861 GB, free: 38.87 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07441/2.662, allocations: 24.35 MB / 0.8848 GB, free: 18.33 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.984e-05/2.662, allocations: 3.062 kB / 0.8848 GB, free: 18.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/2.665, allocations: 467.3 kB / 0.8852 GB, free: 17.87 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/2.667, allocations: 0.6799 MB / 0.8859 GB, free: 17.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007034/2.668, allocations: 142 kB / 0.886 GB, free: 17.05 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1309/2.798, allocations: 6.665 MB / 0.8925 GB, free: 47.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/2.799, allocations: 2.844 kB / 0.8925 GB, free: 47.79 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06551/2.864, allocations: 22.28 MB / 0.9143 GB, free: 47 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004288/2.868, allocations: 1.319 MB / 0.9156 GB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001311/2.87, allocations: 54.53 kB / 0.9156 GB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009974/2.88, allocations: 1.719 MB / 0.9173 GB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006802/2.88, allocations: 169.3 kB / 0.9175 GB, free: 46.9 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000555/2.881, allocations: 288.2 kB / 0.9177 GB, free: 46.9 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.006864/2.888, allocations: 3.809 MB / 0.9215 GB, free: 46.72 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.888, allocations: 0.875 kB / 0.9215 GB, free: 46.72 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.008749/2.897, allocations: 1.609 MB / 0.923 GB, free: 46.72 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 () * Number of clocked 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.0006914/2.897, allocations: 207.7 kB / 0.9232 GB, free: 46.64 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.04881/2.946, allocations: 17.31 MB / 0.9401 GB, free: 45.55 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/2.946, allocations: 0 / 0.9401 GB, free: 45.55 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02223/2.968, allocations: 7.416 MB / 0.9474 GB, free: 44.11 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003703/2.972, allocations: 0.5487 MB / 0.9479 GB, free: 43.85 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04568/3.018, allocations: 21.71 MB / 0.9691 GB, free: 27.11 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008106/3.026, allocations: 4.993 MB / 0.974 GB, free: 22.49 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.01058/3.037, allocations: 3.326 MB / 0.9772 GB, free: 19.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003019/3.04, allocations: 0.7409 MB / 0.978 GB, free: 18.43 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/3.04, allocations: 0 / 0.978 GB, free: 18.43 MB / 282.7 MB Notification: Performance of Templates: time 0.2545/3.294, allocations: 75.87 MB / 1.052 GB, free: 32.54 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)