Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2_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.001307/0.001307, allocations: 110.3 kB / 16.51 MB, free: 6.707 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.001504/0.001504, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.81/1.81, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.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.001302/0.001302, allocations: 47.94 kB / 279.3 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1134, allocations: 46.62 MB / 326 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2731/0.3865, allocations: 70.16 MB / 396.1 MB, free: 8.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03307/0.4196, allocations: 14.05 MB / 410.2 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02064/0.4404, allocations: 306.8 kB / 410.5 MB, free: 4.332 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007524/0.448, allocations: 4.23 MB / 414.7 MB, free: 2.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006193/0.4542, allocations: 2.126 MB / 416.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002122/0.4563, allocations: 0.8551 MB / 417.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01116/0.4675, allocations: 8.534 MB / 426.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00654/0.4741, allocations: 5.177 MB / 431.4 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003497/0.4776, allocations: 1.949 MB / 433.3 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004376/0.482, allocations: 3.131 MB / 436.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008621/0.4829, allocations: 344 kB / 436.8 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002751/0.4856, allocations: 1.274 MB / 438.1 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002474/0.4881, allocations: 2.523 MB / 440.6 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003411/0.4915, allocations: 2.86 MB / 443.5 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0115/0.503, allocations: 9.186 MB / 452.6 MB, free: 2.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/0.5031, allocations: 4 kB / 452.7 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.5031, allocations: 3.938 kB / 452.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003311/0.5034, allocations: 0 / 452.7 MB, free: 2.719 MB / 350.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.01721/0.5207, allocations: 6.336 MB / 459 MB, free: 12.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.866e-05/0.5208, allocations: 12.03 kB / 459 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01184/0.5326, allocations: 2.609 MB / 461.6 MB, free: 9.785 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009897/0.5425, allocations: 3.977 MB / 465.6 MB, free: 5.793 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002858/0.5429, allocations: 314 kB / 465.9 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001598/0.5445, allocations: 448.5 kB / 466.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/0.5663, allocations: 12.24 MB / 478.6 MB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001612/0.5665, allocations: 55.59 kB / 478.6 MB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005198/0.5671, allocations: 193.4 kB / 478.8 MB, free: 8.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003488/0.5706, allocations: 2.203 MB / 481 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02118/0.5918, allocations: 10.54 MB / 491.6 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0644/0.6562, allocations: 47.57 MB / 0.5265 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/0.6677, allocations: 4.6 MB / 0.531 GB, free: 5.805 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003654/0.6713, allocations: 2.643 MB / 0.5336 GB, free: 3.152 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2986/0.9699, allocations: 10.43 MB / 0.5438 GB, free: 106.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.817e-05/0.97, allocations: 52.91 kB / 0.5438 GB, free: 106.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=192): time 4.879e-06/0.97, allocations: 0.9062 kB / 0.5438 GB, free: 106.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=218): time 0.05577/1.026, allocations: 20.99 MB / 0.5643 GB, free: 101.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001185/1.026, allocations: 203.8 kB / 0.5645 GB, free: 101.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008097/1.034, allocations: 4.823 MB / 0.5692 GB, free: 99.95 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008041/1.035, allocations: 61.39 kB / 0.5693 GB, free: 99.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003353/1.038, allocations: 3.716 MB / 0.5729 GB, free: 97.05 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.04, allocations: 0.8341 MB / 0.5737 GB, free: 96.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/1.042, allocations: 1.393 MB / 0.5751 GB, free: 95.78 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.414e-05/1.042, allocations: 301.1 kB / 0.5754 GB, free: 95.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003187/1.045, allocations: 2.585 MB / 0.5779 GB, free: 93.26 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004456/1.049, allocations: 6.557 MB / 0.5843 GB, free: 84.88 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008954/1.058, allocations: 9.799 MB / 0.5939 GB, free: 73.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001086/1.059, allocations: 40 kB / 0.5939 GB, free: 73.66 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01744/1.076, allocations: 10.26 MB / 0.6039 GB, free: 64.24 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.497e-05/1.076, allocations: 65.53 kB / 0.604 GB, free: 64.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.076, allocations: 140.9 kB / 0.6041 GB, free: 64.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004008/1.08, allocations: 1.622 MB / 0.6057 GB, free: 62.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005304/1.086, allocations: 1.56 MB / 0.6072 GB, free: 60.98 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/1.097, allocations: 9.56 MB / 0.6166 GB, free: 51.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007062/1.105, allocations: 381.8 kB / 0.6169 GB, free: 50.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001608/1.106, allocations: 408 kB / 0.6173 GB, free: 50.46 MB / 446.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.005867/1.112, allocations: 2.571 MB / 0.6198 GB, free: 48.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/1.113, allocations: 422.6 kB / 0.6202 GB, free: 47.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008676/1.122, allocations: 4.619 MB / 0.6247 GB, free: 42.98 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.99e-05/1.122, allocations: 24 kB / 0.6248 GB, free: 42.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/1.122, allocations: 8 kB / 0.6248 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.86e-05/1.122, allocations: 9.062 kB / 0.6248 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0206/1.143, allocations: 10.5 MB / 0.635 GB, free: 32.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/1.143, allocations: 0 / 0.635 GB, free: 32.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/1.145, allocations: 344.4 kB / 0.6354 GB, free: 32.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003822/1.148, allocations: 1.363 MB / 0.6367 GB, free: 30.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003279/1.149, allocations: 39.98 kB / 0.6367 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00958/1.158, allocations: 8.748 MB / 0.6453 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.158, allocations: 0 / 0.6453 GB, free: 21.75 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/1.17, allocations: 7.563 MB / 0.6526 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00257/1.172, allocations: 0.7827 MB / 0.6534 GB, free: 13.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/1.174, allocations: 35.98 kB / 0.6534 GB, free: 13.34 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00265/1.176, allocations: 125.9 kB / 0.6536 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005085/1.177, allocations: 133.8 kB / 0.6537 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001746/1.177, allocations: 59.98 kB / 0.6538 GB, free: 13.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006083/1.183, allocations: 3.039 MB / 0.6567 GB, free: 9.996 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/1.183, allocations: 0 / 0.6567 GB, free: 9.996 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007383/1.191, allocations: 1.266 MB / 0.658 GB, free: 8.734 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.0006955/1.191, allocations: 176.2 kB / 0.6581 GB, free: 8.578 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01067/1.202, allocations: 6.365 MB / 0.6643 GB, free: 2.59 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.202, allocations: 0 / 0.6643 GB, free: 2.59 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003448/1.205, allocations: 2.202 MB / 0.6665 GB, free: 408 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00541/1.211, allocations: 0.524 MB / 0.667 GB, free: 15.88 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02612/1.237, allocations: 14.38 MB / 0.681 GB, free: 1.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004881/1.242, allocations: 3.997 MB / 0.685 GB, free: 13.48 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.006132/1.248, allocations: 2.087 MB / 0.687 GB, free: 11.39 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009446/1.249, allocations: 287.3 kB / 0.6873 GB, free: 11.11 MB / 478.1 MB Notification: Performance of SimCode: time 9.31e-07/1.249, allocations: 0 / 0.6873 GB, free: 11.11 MB / 478.1 MB Notification: Performance of Templates: time 0.2715/1.521, allocations: 45.65 MB / 0.7318 GB, free: 187.1 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)