Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001003/0.001002, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.419/1.419, allocations: 170.7 MB / 178.7 MB, free: 15.66 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001496/0.001496, allocations: 107.4 kB / 218 MB, free: 8.41 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.435e-05/1.429e-05, allocations: 4 kB / 262.2 MB, free: 26.41 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07437/0.07441, allocations: 38.77 MB / 301 MB, free: 3.641 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2945/0.3689, allocations: 85.9 MB / 386.9 MB, free: 14.71 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.3692, allocations: 82.83 kB / 387 MB, free: 14.67 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4761/0.8454, allocations: 103.7 MB / 490.7 MB, free: 67.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.8454, allocations: 0 / 490.7 MB, free: 67.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003911/0.8458, allocations: 110.8 kB / 490.8 MB, free: 67.27 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01914/0.865, allocations: 5.251 MB / 496 MB, free: 65.15 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.865, allocations: 10.59 kB / 496 MB, free: 65.15 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0269/0.8919, allocations: 6.897 MB / 0.4912 GB, free: 64.79 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01822/0.9102, allocations: 6.793 MB / 0.4978 GB, free: 64.02 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003512/0.9106, allocations: 177.3 kB / 0.498 GB, free: 64.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002863/0.9135, allocations: 322 kB / 0.4983 GB, free: 64.01 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01494/0.9284, allocations: 7.219 MB / 0.5053 GB, free: 63.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02706/0.9555, allocations: 11.14 MB / 0.5162 GB, free: 59.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004861/0.9561, allocations: 74.75 kB / 0.5163 GB, free: 59.31 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/0.9587, allocations: 34.34 kB / 0.5163 GB, free: 59.31 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001747/0.9604, allocations: 1.126 MB / 0.5174 GB, free: 59.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05877/1.019, allocations: 55.33 MB / 0.5714 GB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003994/1.023, allocations: 3.396 MB / 0.5747 GB, free: 7.73 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00243/1.026, allocations: 2.175 MB / 0.5769 GB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004094/1.026, allocations: 346.2 kB / 0.5772 GB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.726e-05/1.026, allocations: 55.81 kB / 0.5773 GB, free: 5.301 MB / 346.7 MB Notification: Performance of pre-optimization done (n=200): time 5.64e-06/1.026, allocations: 0 / 0.5773 GB, free: 5.301 MB / 346.7 MB Notification: Performance of matching and sorting (n=227): time 0.04493/1.071, allocations: 19.69 MB / 0.5965 GB, free: 3.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/1.071, allocations: 201.9 kB / 0.5967 GB, free: 2.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2297/1.301, allocations: 3.66 MB / 0.6003 GB, free: 77.36 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005736/1.302, allocations: 29.72 kB / 0.6003 GB, free: 77.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003542/1.305, allocations: 3.815 MB / 0.604 GB, free: 76.26 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001422/1.307, allocations: 0.8384 MB / 0.6048 GB, free: 75.76 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005748/1.307, allocations: 1.219 kB / 0.6048 GB, free: 75.76 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004661/1.308, allocations: 0.5906 MB / 0.6054 GB, free: 75.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004179/1.312, allocations: 2.154 MB / 0.6075 GB, free: 75.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005781/1.318, allocations: 6.214 MB / 0.6136 GB, free: 70.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006247/1.324, allocations: 3.647 MB / 0.6171 GB, free: 70.13 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001433/1.324, allocations: 38.88 kB / 0.6172 GB, free: 70.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=893) (initialization): time 0.01489/1.339, allocations: 8.189 MB / 0.6252 GB, free: 69.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/1.339, allocations: 70.66 kB / 0.6252 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001386/1.339, allocations: 145.1 kB / 0.6254 GB, free: 69.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002347/1.342, allocations: 0.9516 MB / 0.6263 GB, free: 69.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004921/1.347, allocations: 1.567 MB / 0.6278 GB, free: 69.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007486/1.354, allocations: 7.267 MB / 0.6349 GB, free: 66.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005907/1.36, allocations: 232.6 kB / 0.6352 GB, free: 66.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001488/1.362, allocations: 419.5 kB / 0.6356 GB, free: 66.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * Number of states: 0 () * Number of discrete variables: 42 (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.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 (831): * Single equations (assignments): 826 * 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%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00225/1.364, allocations: 475.2 kB / 0.636 GB, free: 66.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/1.365, allocations: 406.6 kB / 0.6364 GB, free: 66.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007723/1.373, allocations: 3.441 MB / 0.6398 GB, free: 65.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.332e-05/1.373, allocations: 25.34 kB / 0.6398 GB, free: 65.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.1e-05/1.373, allocations: 7.25 kB / 0.6398 GB, free: 65.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.451e-05/1.373, allocations: 12.97 kB / 0.6398 GB, free: 65.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/1.394, allocations: 8.481 MB / 0.6481 GB, free: 62.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/1.394, allocations: 3.938 kB / 0.6481 GB, free: 62.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/1.396, allocations: 362.2 kB / 0.6484 GB, free: 62.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002039/1.398, allocations: 0.6696 MB / 0.6491 GB, free: 62.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/1.398, allocations: 14.94 kB / 0.6491 GB, free: 62.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006463/1.404, allocations: 6.206 MB / 0.6552 GB, free: 58.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.525e-06/1.405, allocations: 3.781 kB / 0.6552 GB, free: 58.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0086/1.413, allocations: 6.255 MB / 0.6613 GB, free: 55.56 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002011/1.415, allocations: 0.7184 MB / 0.662 GB, free: 55.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00114/1.416, allocations: 3.25 kB / 0.662 GB, free: 55.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00214/1.419, allocations: 83 kB / 0.6621 GB, free: 55.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003706/1.419, allocations: 140.4 kB / 0.6622 GB, free: 55.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/1.419, allocations: 60.88 kB / 0.6622 GB, free: 55.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005718/1.425, allocations: 2.49 MB / 0.6647 GB, free: 54.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.425, allocations: 0 / 0.6647 GB, free: 54.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00833/1.433, allocations: 1.026 MB / 0.6657 GB, free: 54.15 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (178): * Single equations (assignments): 173 * 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.0007695/1.434, allocations: 148.9 kB / 0.6658 GB, free: 54.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01097/1.445, allocations: 5.422 MB / 0.6711 GB, free: 51.99 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.594e-06/1.445, allocations: 0 / 0.6711 GB, free: 51.99 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00311/1.448, allocations: 1.924 MB / 0.673 GB, free: 51.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003683/1.452, allocations: 435.7 kB / 0.6734 GB, free: 50.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02208/1.474, allocations: 9.225 MB / 0.6824 GB, free: 43.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007505/1.481, allocations: 4.109 MB / 0.6864 GB, free: 40.03 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006581/1.488, allocations: 2.186 MB / 0.6886 GB, free: 38.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001368/1.489, allocations: 269.8 kB / 0.6888 GB, free: 38.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.623e-06/1.489, allocations: 0 / 0.6888 GB, free: 38.39 MB / 362.7 MB Notification: Performance of Templates: time 0.07418/1.564, allocations: 36.39 MB / 0.7244 GB, free: 8.301 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)