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.748/0.748, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001734/0.001734, allocations: 159.3 kB / 144 MB, free: 4.797 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.385e-05/1.388e-05, allocations: 4 kB / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04625/0.04628, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1841/0.2304, allocations: 50.28 MB / 249.3 MB, free: 43.96 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.2308, allocations: 73.7 kB / 249.4 MB, free: 43.96 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7754/1.006, allocations: 193.4 MB / 442.7 MB, free: 25.8 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.442e-06/1.006, allocations: 0 / 442.7 MB, free: 25.8 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002671/1.006, allocations: 138.2 kB / 442.9 MB, free: 25.8 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.0286/1.035, allocations: 8.706 MB / 451.6 MB, free: 23.14 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/1.035, allocations: 10.28 kB / 451.6 MB, free: 23.14 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1833/1.218, allocations: 27.55 MB / 479.1 MB, free: 21.98 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02292/1.241, allocations: 8.701 MB / 487.8 MB, free: 17.68 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005325/1.242, allocations: 232.7 kB / 488.1 MB, free: 17.46 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00565/1.248, allocations: 399.6 kB / 488.5 MB, free: 17.07 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03078/1.278, allocations: 16.82 MB / 0.4934 GB, free: 3.621 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2044/1.483, allocations: 19.33 MB / 0.5123 GB, free: 30.82 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003083/1.483, allocations: 51.09 kB / 0.5124 GB, free: 30.82 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003263/1.486, allocations: 19.53 kB / 0.5124 GB, free: 30.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04251/1.529, allocations: 9.486 MB / 0.5217 GB, free: 30.81 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6019/2.131, allocations: 132.3 MB / 0.6509 GB, free: 33.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007278/2.138, allocations: 5.684 MB / 0.6564 GB, free: 32.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004342/2.143, allocations: 3.952 MB / 0.6603 GB, free: 32.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004194/2.143, allocations: 366.4 kB / 0.6606 GB, free: 32.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.076e-05/2.143, allocations: 76.91 kB / 0.6607 GB, free: 32.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=340): time 7.494e-06/2.143, allocations: 0 / 0.6607 GB, free: 32.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=375): time 0.05404/2.197, allocations: 36.5 MB / 0.6963 GB, free: 7.414 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/2.197, allocations: 456 kB / 0.6968 GB, free: 6.875 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007413/2.205, allocations: 4.384 MB / 0.7011 GB, free: 3.145 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001215/2.206, allocations: 25.7 kB / 0.7011 GB, free: 3.113 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002786/2.209, allocations: 4.548 MB / 0.7055 GB, free: 15.21 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002454/2.211, allocations: 1.322 MB / 0.7068 GB, free: 14.01 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008864/2.212, allocations: 0 / 0.7068 GB, free: 14.01 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0005698/2.213, allocations: 0.6855 MB / 0.7075 GB, free: 13.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00667/2.219, allocations: 4.162 MB / 0.7115 GB, free: 9.793 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.173/2.392, allocations: 9.116 MB / 0.7205 GB, free: 57.1 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008678/2.401, allocations: 5.286 MB / 0.7256 GB, free: 57.08 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/2.401, allocations: 54.5 kB / 0.7257 GB, free: 57.08 MB / 282.7 MB Notification: Performance of matching and sorting (n=1174) (initialization): time 0.02253/2.424, allocations: 12.5 MB / 0.7379 GB, free: 56.49 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001483/2.424, allocations: 79.78 kB / 0.7379 GB, free: 56.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004519/2.425, allocations: 292 kB / 0.7382 GB, free: 56.48 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002418/2.427, allocations: 0.9992 MB / 0.7392 GB, free: 56.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007/2.434, allocations: 2.137 MB / 0.7413 GB, free: 56.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007431/2.441, allocations: 7.333 MB / 0.7484 GB, free: 53.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01474/2.456, allocations: 1.967 MB / 0.7504 GB, free: 53.65 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002243/2.458, allocations: 0.7452 MB / 0.7511 GB, free: 53.65 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: 800 * 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 (1084): * Single equations (assignments): 1065 * Array equations: 17 * 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.001726/2.46, allocations: 0.5538 MB / 0.7516 GB, free: 53.37 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/2.461, allocations: 484.5 kB / 0.7521 GB, free: 53.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007365/2.469, allocations: 4.951 MB / 0.7569 GB, free: 53.11 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02051/2.489, allocations: 7.409 MB / 0.7642 GB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.621e-05/2.489, allocations: 18.67 kB / 0.7642 GB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.674e-05/2.489, allocations: 15.05 kB / 0.7642 GB, free: 51.6 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06879/2.558, allocations: 24.82 MB / 0.7884 GB, free: 41.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/2.558, allocations: 11.95 kB / 0.7885 GB, free: 41.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/2.561, allocations: 0.5755 MB / 0.789 GB, free: 41.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001902/2.563, allocations: 0.6626 MB / 0.7897 GB, free: 40.55 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005775/2.563, allocations: 121.2 kB / 0.7898 GB, free: 40.48 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006006/2.569, allocations: 6.156 MB / 0.7958 GB, free: 34.79 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.215e-06/2.569, allocations: 11.94 kB / 0.7958 GB, free: 34.78 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/2.584, allocations: 13.38 MB / 0.8089 GB, free: 22.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002947/2.587, allocations: 1.318 MB / 0.8102 GB, free: 21.46 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008312/2.587, allocations: 13.36 kB / 0.8102 GB, free: 21.45 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009806/2.597, allocations: 1.699 MB / 0.8118 GB, free: 20.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005074/2.598, allocations: 233.5 kB / 0.812 GB, free: 19.84 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004785/2.598, allocations: 311.8 kB / 0.8123 GB, free: 19.54 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.004036/2.602, allocations: 2.96 MB / 0.8152 GB, free: 16.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.4e-07/2.602, allocations: 0 / 0.8152 GB, free: 16.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.007891/2.61, allocations: 1.433 MB / 0.8166 GB, free: 15.16 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * 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 (302): * Single equations (assignments): 285 * 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.0006119/2.611, allocations: 172.9 kB / 0.8168 GB, free: 15 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.1736/2.784, allocations: 9.703 MB / 0.8263 GB, free: 56.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/2.784, allocations: 0 / 0.8263 GB, free: 56.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005997/2.79, allocations: 3.841 MB / 0.83 GB, free: 55.88 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004537/2.795, allocations: 0.4925 MB / 0.8305 GB, free: 55.86 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02455/2.82, allocations: 13.2 MB / 0.8434 GB, free: 53.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005131/2.825, allocations: 5.035 MB / 0.8483 GB, free: 52.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.01026/2.835, allocations: 3.426 MB / 0.8517 GB, free: 52.4 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002928/2.838, allocations: 0.742 MB / 0.8524 GB, free: 52.38 MB / 282.7 MB Notification: Performance of SimCode: time 1.232e-06/2.838, allocations: 0 / 0.8524 GB, free: 52.38 MB / 282.7 MB Notification: Performance of Templates: time 0.2849/3.123, allocations: 75.61 MB / 0.9262 GB, free: 56.71 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)