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.001011/0.001011, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007426/0.007426, allocations: 170.6 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.633/1.633, allocations: 205.4 MB / 222.5 MB, free: 5.562 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.0005459/0.0005459, allocations: 12 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2673, allocations: 47.59 MB / 327 MB, free: 1.535 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.06532/0.3326, allocations: 68.47 MB / 395.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0349/0.3676, allocations: 13.98 MB / 409.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01484/0.3824, allocations: 303.2 kB / 409.8 MB, free: 448 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.3847, allocations: 0.517 MB / 410.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007211/0.392, allocations: 2.137 MB / 412.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002552/0.3946, allocations: 0.8504 MB / 413.3 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01175/0.4063, allocations: 8.527 MB / 421.8 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01278/0.4191, allocations: 7.429 MB / 429.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004111/0.4233, allocations: 1.587 MB / 430.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005064/0.4284, allocations: 2.674 MB / 433.5 MB, free: 8.578 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008575/0.4293, allocations: 192 kB / 433.7 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002717/0.432, allocations: 1.127 MB / 434.8 MB, free: 7.262 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002249/0.4343, allocations: 2.302 MB / 437.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003155/0.4374, allocations: 2.61 MB / 439.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.4492, allocations: 8.899 MB / 448.6 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.4492, allocations: 0 / 448.6 MB, free: 9.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4492, allocations: 0 / 448.6 MB, free: 9.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003004/0.4495, allocations: 0 / 448.6 MB, free: 9.387 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.01107/0.4606, allocations: 5.204 MB / 453.8 MB, free: 4.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.108e-05/0.4607, allocations: 12.03 kB / 453.8 MB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01223/0.4729, allocations: 2.665 MB / 456.5 MB, free: 1.422 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2421/0.7151, allocations: 3.961 MB / 460.5 MB, free: 113.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004738/0.7156, allocations: 316 kB / 460.8 MB, free: 113.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002121/0.7177, allocations: 449.1 kB / 461.2 MB, free: 113.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0228/0.7405, allocations: 12.26 MB / 473.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/0.7408, allocations: 56.72 kB / 473.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005744/0.7413, allocations: 197.4 kB / 473.7 MB, free: 105.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003069/0.7444, allocations: 2.205 MB / 475.9 MB, free: 103.1 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01847/0.7629, allocations: 10.57 MB / 486.5 MB, free: 92.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05675/0.8197, allocations: 47.59 MB / 0.5216 GB, free: 43.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01068/0.8304, allocations: 4.606 MB / 0.5261 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003435/0.8339, allocations: 2.651 MB / 0.5287 GB, free: 36.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01471/0.8487, allocations: 10.42 MB / 0.5388 GB, free: 26.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.912e-05/0.8488, allocations: 51.88 kB / 0.5389 GB, free: 25.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=192): time 6.061e-06/0.8488, allocations: 0 / 0.5389 GB, free: 25.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.05004/0.8988, allocations: 21.02 MB / 0.5594 GB, free: 4.836 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001011/0.899, allocations: 205.2 kB / 0.5596 GB, free: 4.594 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007169/0.9062, allocations: 4.82 MB / 0.5643 GB, free: 15.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006435/0.9068, allocations: 53.7 kB / 0.5644 GB, free: 15.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003484/0.9103, allocations: 3.726 MB / 0.568 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001599/0.912, allocations: 0.8292 MB / 0.5688 GB, free: 11.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009689/0.9129, allocations: 0.5872 MB / 0.5694 GB, free: 10.5 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.9131, allocations: 301.1 kB / 0.5697 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004429/0.9175, allocations: 2.594 MB / 0.5722 GB, free: 7.605 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007951/0.9255, allocations: 6.554 MB / 0.5786 GB, free: 15.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.014/0.9395, allocations: 9.82 MB / 0.5882 GB, free: 3.316 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000152/0.9398, allocations: 44 kB / 0.5882 GB, free: 3.273 MB / 414.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02339/0.9632, allocations: 10.28 MB / 0.5983 GB, free: 8.98 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.9634, allocations: 68 kB / 0.5983 GB, free: 8.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002169/0.9636, allocations: 136.1 kB / 0.5985 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004831/0.9684, allocations: 1.619 MB / 0.6001 GB, free: 7.156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005721/0.9742, allocations: 1.571 MB / 0.6016 GB, free: 5.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2486/1.223, allocations: 9.548 MB / 0.6109 GB, free: 138.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00565/1.229, allocations: 389.9 kB / 0.6113 GB, free: 138.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.23, allocations: 413.2 kB / 0.6117 GB, free: 138.5 MB / 430.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004835/1.235, allocations: 2.572 MB / 0.6142 GB, free: 137.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008698/1.235, allocations: 420.8 kB / 0.6146 GB, free: 137.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008149/1.244, allocations: 4.642 MB / 0.6191 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.744e-05/1.244, allocations: 25.34 kB / 0.6191 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/1.244, allocations: 7.875 kB / 0.6192 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.831e-05/1.244, allocations: 7.406 kB / 0.6192 GB, free: 135.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01976/1.264, allocations: 10.5 MB / 0.6294 GB, free: 132.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.556e-05/1.264, allocations: 0 / 0.6294 GB, free: 132.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/1.265, allocations: 347.6 kB / 0.6298 GB, free: 132.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003861/1.269, allocations: 1.366 MB / 0.6311 GB, free: 132 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002614/1.27, allocations: 38.28 kB / 0.6311 GB, free: 131.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009594/1.279, allocations: 8.737 MB / 0.6397 GB, free: 125.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.279, allocations: 0 / 0.6397 GB, free: 125.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/1.29, allocations: 7.595 MB / 0.6471 GB, free: 118.5 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.292, allocations: 0.785 MB / 0.6478 GB, free: 117.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005591/1.293, allocations: 32 kB / 0.6479 GB, free: 117.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/1.294, allocations: 142.6 kB / 0.648 GB, free: 117.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/1.295, allocations: 136.7 kB / 0.6481 GB, free: 117.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001339/1.295, allocations: 56.36 kB / 0.6482 GB, free: 117.5 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003859/1.299, allocations: 3.045 MB / 0.6512 GB, free: 114.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/1.299, allocations: 0 / 0.6512 GB, free: 114.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005739/1.304, allocations: 1.257 MB / 0.6524 GB, free: 113.2 MB / 430.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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004884/1.305, allocations: 176.8 kB / 0.6526 GB, free: 113 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008938/1.314, allocations: 6.393 MB / 0.6588 GB, free: 106.7 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/1.314, allocations: 3.938 kB / 0.6588 GB, free: 106.7 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002936/1.317, allocations: 2.191 MB / 0.6609 GB, free: 104.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/1.321, allocations: 0.5244 MB / 0.6615 GB, free: 103.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02085/1.342, allocations: 14.48 MB / 0.6756 GB, free: 89.53 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00372/1.346, allocations: 3.999 MB / 0.6795 GB, free: 85.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004632/1.35, allocations: 2.083 MB / 0.6815 GB, free: 83.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007787/1.351, allocations: 291.4 kB / 0.6818 GB, free: 83.12 MB / 430.1 MB Notification: Performance of SimCode: time 8.81e-07/1.351, allocations: 0 / 0.6818 GB, free: 83.12 MB / 430.1 MB Notification: Performance of Templates: time 0.07527/1.426, allocations: 44.92 MB / 0.7257 GB, free: 38.22 MB / 430.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)