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.005961/0.005961, allocations: 100.6 kB / 15.73 MB, free: 6.012 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.00126/0.00126, allocations: 185.8 kB / 16.67 MB, free: 5.934 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.569/1.569, allocations: 205.1 MB / 222.6 MB, free: 4.48 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.001147/0.001147, allocations: 45.47 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.112, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01516/0.1272, allocations: 14.23 MB / 387.4 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01066/0.1379, allocations: 4.638 MB / 392 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003233/0.1412, allocations: 99.69 kB / 392.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008033/0.1493, allocations: 4.213 MB / 396.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006905/0.1562, allocations: 2.272 MB / 398.6 MB, free: 7.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.1589, allocations: 0.9281 MB / 399.5 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01036/0.1693, allocations: 5.902 MB / 405.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009882/0.1792, allocations: 5.305 MB / 410.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00523/0.1845, allocations: 2.204 MB / 413 MB, free: 9.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005455/0.19, allocations: 2.936 MB / 415.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00206/0.1921, allocations: 496 kB / 416.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00375/0.1959, allocations: 1.362 MB / 417.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003747/0.1996, allocations: 2.642 MB / 420.4 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005635/0.2053, allocations: 2.999 MB / 423.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01356/0.2189, allocations: 9.6 MB / 433 MB, free: 5.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.2189, allocations: 0 / 433 MB, free: 5.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.219, allocations: 0 / 433 MB, free: 5.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004398/0.2194, allocations: 0 / 433 MB, free: 5.246 MB / 366.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.0195/0.2389, allocations: 6.508 MB / 439.5 MB, free: 14.65 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.239, allocations: 12.02 kB / 439.5 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0137/0.2527, allocations: 2.649 MB / 442.1 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009996/0.2627, allocations: 4.052 MB / 446.2 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003498/0.2631, allocations: 316.5 kB / 446.5 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001962/0.2651, allocations: 444.6 kB / 446.9 MB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.225/0.4901, allocations: 12.24 MB / 459.2 MB, free: 62.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/0.4904, allocations: 50.31 kB / 459.2 MB, free: 62.44 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006152/0.491, allocations: 193 kB / 459.4 MB, free: 62.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004506/0.4955, allocations: 2.208 MB / 461.6 MB, free: 61.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02414/0.5197, allocations: 10.53 MB / 472.2 MB, free: 58.02 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07249/0.5922, allocations: 47.44 MB / 0.5074 GB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.6023, allocations: 4.603 MB / 0.5119 GB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002855/0.6052, allocations: 2.639 MB / 0.5145 GB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01503/0.6203, allocations: 10.47 MB / 0.5247 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.293e-05/0.6204, allocations: 59.8 kB / 0.5248 GB, free: 11.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 5.53e-06/0.6204, allocations: 0 / 0.5248 GB, free: 11.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.05802/0.6784, allocations: 21.26 MB / 0.5455 GB, free: 6.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/0.6786, allocations: 201.2 kB / 0.5457 GB, free: 6.293 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008644/0.6872, allocations: 4.833 MB / 0.5505 GB, free: 1.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005959/0.6878, allocations: 61.7 kB / 0.5505 GB, free: 1.477 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003142/0.691, allocations: 3.866 MB / 0.5543 GB, free: 13.59 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001339/0.6923, allocations: 0.8683 MB / 0.5551 GB, free: 12.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/0.6943, allocations: 1.405 MB / 0.5565 GB, free: 11.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.6945, allocations: 305.1 kB / 0.5568 GB, free: 11 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003795/0.6983, allocations: 2.586 MB / 0.5593 GB, free: 8.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007081/0.7054, allocations: 6.55 MB / 0.5657 GB, free: 15.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01281/0.7182, allocations: 9.817 MB / 0.5753 GB, free: 4.133 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.7184, allocations: 40 kB / 0.5753 GB, free: 4.094 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02179/0.7402, allocations: 10.27 MB / 0.5854 GB, free: 9.809 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.7403, allocations: 64.94 kB / 0.5854 GB, free: 9.746 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001864/0.7405, allocations: 143.9 kB / 0.5856 GB, free: 9.605 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004661/0.7452, allocations: 1.619 MB / 0.5872 GB, free: 7.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005766/0.751, allocations: 1.567 MB / 0.5887 GB, free: 6.41 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01373/0.7647, allocations: 10.26 MB / 0.5987 GB, free: 11.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006411/0.7712, allocations: 383.6 kB / 0.5991 GB, free: 11.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001467/0.7727, allocations: 404 kB / 0.5995 GB, free: 11.09 MB / 478.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.005433/0.7781, allocations: 2.569 MB / 0.602 GB, free: 8.504 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001294/0.7794, allocations: 441 kB / 0.6024 GB, free: 8.07 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009042/0.7885, allocations: 4.637 MB / 0.6069 GB, free: 3.41 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.483e-05/0.7885, allocations: 20 kB / 0.6069 GB, free: 3.391 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.7886, allocations: 8 kB / 0.6069 GB, free: 3.383 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.808e-05/0.7886, allocations: 16.05 kB / 0.607 GB, free: 3.367 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/0.8108, allocations: 10.45 MB / 0.6172 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.512e-05/0.8108, allocations: 0 / 0.6172 GB, free: 8.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001711/0.8126, allocations: 347.5 kB / 0.6175 GB, free: 8.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004026/0.8166, allocations: 1.361 MB / 0.6188 GB, free: 7.133 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002671/0.8169, allocations: 36 kB / 0.6189 GB, free: 7.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3107/1.128, allocations: 9.38 MB / 0.628 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.128, allocations: 2.469 kB / 0.628 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01485/1.142, allocations: 7.574 MB / 0.6354 GB, free: 154.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003187/1.146, allocations: 0.8109 MB / 0.6362 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001897/1.148, allocations: 32.75 kB / 0.6362 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003044/1.151, allocations: 126.5 kB / 0.6364 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000552/1.151, allocations: 132.4 kB / 0.6365 GB, free: 154.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/1.151, allocations: 59.45 kB / 0.6365 GB, free: 154.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007397/1.159, allocations: 3.042 MB / 0.6395 GB, free: 153.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.495e-06/1.159, allocations: 2.359 kB / 0.6395 GB, free: 153.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01004/1.169, allocations: 1.265 MB / 0.6407 GB, free: 153 MB / 494.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.0008282/1.17, allocations: 172.7 kB / 0.6409 GB, free: 152.9 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01177/1.182, allocations: 6.408 MB / 0.6472 GB, free: 150.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.182, allocations: 0 / 0.6472 GB, free: 150.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003526/1.185, allocations: 2.202 MB / 0.6493 GB, free: 149.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003705/1.189, allocations: 0.5604 MB / 0.6499 GB, free: 149.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/1.206, allocations: 11.9 MB / 0.6615 GB, free: 143.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003598/1.21, allocations: 3.996 MB / 0.6654 GB, free: 140.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004329/1.214, allocations: 2.086 MB / 0.6674 GB, free: 139.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007981/1.215, allocations: 287.8 kB / 0.6677 GB, free: 139.3 MB / 494.1 MB Notification: Performance of SimCode: time 1.312e-06/1.215, allocations: 0 / 0.6677 GB, free: 139.3 MB / 494.1 MB Notification: Performance of Templates: time 0.06939/1.285, allocations: 43.95 MB / 0.7106 GB, free: 95.43 MB / 494.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)