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.00176/0.001761, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002562/0.002563, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.544/1.544, allocations: 205.1 MB / 222.4 MB, free: 4.582 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.001637/0.001637, allocations: 59.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3017, allocations: 46.63 MB / 325.3 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01674/0.3185, allocations: 14.22 MB / 339.5 MB, free: 5.645 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01184/0.3304, allocations: 4.651 MB / 344.2 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003326/0.3338, allocations: 91.75 kB / 344.3 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007374/0.3412, allocations: 4.225 MB / 348.5 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006819/0.3481, allocations: 2.268 MB / 350.8 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00253/0.3506, allocations: 0.9282 MB / 351.7 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009419/0.36, allocations: 5.89 MB / 357.6 MB, free: 3.539 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008672/0.3687, allocations: 5.313 MB / 362.9 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004859/0.3736, allocations: 2.196 MB / 365.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005459/0.3791, allocations: 2.936 MB / 368 MB, free: 9.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002109/0.3813, allocations: 492 kB / 368.5 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004233/0.3855, allocations: 1.373 MB / 369.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00472/0.3903, allocations: 2.63 MB / 372.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006125/0.3964, allocations: 3.007 MB / 375.5 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01541/0.4119, allocations: 9.304 MB / 384.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.4119, allocations: 0 / 384.8 MB, free: 8.156 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4119, allocations: 4 kB / 384.8 MB, free: 8.152 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000495/0.4124, allocations: 0 / 384.8 MB, free: 8.152 MB / 318.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.01939/0.4319, allocations: 6.346 MB / 391.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.432, allocations: 12.03 kB / 391.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.4441, allocations: 2.61 MB / 393.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008859/0.4529, allocations: 3.969 MB / 397.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002493/0.4532, allocations: 312.5 kB / 398.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001312/0.4546, allocations: 451.7 kB / 398.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02187/0.4764, allocations: 12.24 MB / 410.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001712/0.4766, allocations: 59.5 kB / 410.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005221/0.4772, allocations: 195.8 kB / 411 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003706/0.4809, allocations: 2.203 MB / 413.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0219/0.5028, allocations: 10.54 MB / 423.7 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2877/0.7906, allocations: 47.55 MB / 471.3 MB, free: 79.24 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/0.8012, allocations: 4.6 MB / 475.9 MB, free: 78.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003293/0.8045, allocations: 2.641 MB / 478.5 MB, free: 77.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01451/0.819, allocations: 10.46 MB / 489 MB, free: 72.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/0.8191, allocations: 54.53 kB / 489 MB, free: 71.98 MB / 382.1 MB Notification: Performance of pre-optimization done (n=192): time 4.769e-06/0.8191, allocations: 3.938 kB / 489.1 MB, free: 71.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.04825/0.8674, allocations: 20.98 MB / 0.4981 GB, free: 53.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/0.8675, allocations: 205.2 kB / 0.4983 GB, free: 53.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005684/0.8732, allocations: 4.824 MB / 0.503 GB, free: 48.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005082/0.8737, allocations: 57.7 kB / 0.503 GB, free: 48.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001581/0.8753, allocations: 3.715 MB / 0.5067 GB, free: 44.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007111/0.8761, allocations: 0.835 MB / 0.5075 GB, free: 43.89 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001368/0.8774, allocations: 1.397 MB / 0.5088 GB, free: 42.49 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.773e-05/0.8775, allocations: 301.1 kB / 0.5091 GB, free: 42.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00277/0.8803, allocations: 2.578 MB / 0.5116 GB, free: 39.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004318/0.8846, allocations: 6.558 MB / 0.5181 GB, free: 31.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008858/0.8935, allocations: 9.802 MB / 0.5276 GB, free: 19.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/0.8936, allocations: 40 kB / 0.5277 GB, free: 19.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.0169/0.9105, allocations: 10.27 MB / 0.5377 GB, free: 9.191 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.711e-05/0.9106, allocations: 64 kB / 0.5377 GB, free: 9.129 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.9108, allocations: 140 kB / 0.5379 GB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003808/0.9146, allocations: 1.624 MB / 0.5395 GB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004684/0.9193, allocations: 1.563 MB / 0.541 GB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01171/0.931, allocations: 10.27 MB / 0.551 GB, free: 11.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006257/0.9373, allocations: 387.4 kB / 0.5514 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001861/0.9392, allocations: 411.9 kB / 0.5518 GB, free: 10.47 MB / 398.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.004865/0.9441, allocations: 2.58 MB / 0.5543 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001016/0.9451, allocations: 418.6 kB / 0.5547 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008576/0.9537, allocations: 4.629 MB / 0.5592 GB, free: 2.812 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/0.9538, allocations: 24 kB / 0.5592 GB, free: 2.789 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.9538, allocations: 11.94 kB / 0.5593 GB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.093e-05/0.9538, allocations: 15.91 kB / 0.5593 GB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01945/0.9733, allocations: 10.48 MB / 0.5695 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.622e-05/0.9733, allocations: 0 / 0.5695 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/0.9751, allocations: 343.5 kB / 0.5698 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004013/0.9791, allocations: 1.375 MB / 0.5712 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002673/0.9794, allocations: 32 kB / 0.5712 GB, free: 6.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01137/0.9907, allocations: 9.39 MB / 0.5804 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.9908, allocations: 0 / 0.5804 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/1.003, allocations: 7.555 MB / 0.5878 GB, free: 5.254 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/1.005, allocations: 0.7767 MB / 0.5885 GB, free: 4.453 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008845/1.006, allocations: 43.92 kB / 0.5886 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/1.008, allocations: 127.8 kB / 0.5887 GB, free: 4.285 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004607/1.009, allocations: 137.8 kB / 0.5888 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001661/1.009, allocations: 55.98 kB / 0.5889 GB, free: 4.094 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005618/1.014, allocations: 3.041 MB / 0.5918 GB, free: 1.059 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.61e-07/1.014, allocations: 0 / 0.5918 GB, free: 1.059 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008504/1.023, allocations: 1.26 MB / 0.5931 GB, free: 15.8 MB / 446.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.0007257/1.024, allocations: 183.9 kB / 0.5932 GB, free: 15.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01438/1.038, allocations: 7.778 MB / 0.6008 GB, free: 7.863 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.038, allocations: 0 / 0.6008 GB, free: 7.863 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003497/1.042, allocations: 2.208 MB / 0.603 GB, free: 5.641 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003355/1.045, allocations: 0.5446 MB / 0.6035 GB, free: 5.102 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2424/1.287, allocations: 11.85 MB / 0.6151 GB, free: 155.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007084/1.295, allocations: 4.002 MB / 0.619 GB, free: 154.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006446/1.301, allocations: 2.085 MB / 0.621 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000776/1.302, allocations: 287.7 kB / 0.6213 GB, free: 154.6 MB / 446.1 MB Notification: Performance of SimCode: time 1.323e-06/1.302, allocations: 0 / 0.6213 GB, free: 154.6 MB / 446.1 MB Notification: Performance of Templates: time 0.07993/1.382, allocations: 47.47 MB / 0.6677 GB, free: 114.1 MB / 446.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)