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.001579/0.001579, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002485/0.002485, allocations: 198.2 kB / 16.14 MB, free: 6.707 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.637/1.637, allocations: 205.1 MB / 222 MB, free: 4.738 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.001347/0.001347, allocations: 39.94 kB / 278 MB, free: 12.79 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.2697, allocations: 46.64 MB / 324.7 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.06082/0.3306, allocations: 70.16 MB / 394.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0385/0.3691, allocations: 14.05 MB / 408.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01763/0.3869, allocations: 303.2 kB / 409.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008042/0.3949, allocations: 4.231 MB / 413.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006573/0.4016, allocations: 2.125 MB / 415.5 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002297/0.4039, allocations: 0.8504 MB / 416.4 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.4146, allocations: 8.538 MB / 424.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006356/0.421, allocations: 5.178 MB / 430.1 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003387/0.4244, allocations: 1.943 MB / 432.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004618/0.429, allocations: 3.131 MB / 435.2 MB, free: 5.215 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009016/0.4299, allocations: 340 kB / 435.5 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002828/0.4328, allocations: 1.276 MB / 436.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002389/0.4352, allocations: 2.533 MB / 439.3 MB, free: 1.066 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004311/0.4395, allocations: 2.866 MB / 442.2 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01126/0.4508, allocations: 9.182 MB / 451.4 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.568e-06/0.4508, allocations: 0 / 451.4 MB, free: 4.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4509, allocations: 0 / 451.4 MB, free: 4.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004568/0.4513, allocations: 0 / 451.4 MB, free: 4.973 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.2265/0.6779, allocations: 6.34 MB / 457.7 MB, free: 115.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.365e-05/0.6779, allocations: 9.062 kB / 457.7 MB, free: 115.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01187/0.6898, allocations: 2.618 MB / 460.3 MB, free: 114.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008613/0.6985, allocations: 3.967 MB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002194/0.6987, allocations: 316.2 kB / 464.6 MB, free: 111.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001574/0.7003, allocations: 444.5 kB / 465.1 MB, free: 111.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01806/0.7184, allocations: 12.25 MB / 477.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000151/0.7185, allocations: 51.5 kB / 477.4 MB, free: 100.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004921/0.719, allocations: 199.8 kB / 477.5 MB, free: 100.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002784/0.7218, allocations: 2.21 MB / 479.8 MB, free: 97.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01783/0.7397, allocations: 10.53 MB / 490.3 MB, free: 87.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0555/0.7952, allocations: 47.57 MB / 0.5252 GB, free: 38.42 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01042/0.8057, allocations: 4.598 MB / 0.5297 GB, free: 33.67 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003037/0.8087, allocations: 2.643 MB / 0.5323 GB, free: 31.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.8238, allocations: 10.44 MB / 0.5425 GB, free: 20.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.098e-05/0.8239, allocations: 54.53 kB / 0.5426 GB, free: 20.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=192): time 3.917e-06/0.8239, allocations: 4 kB / 0.5426 GB, free: 20.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.0559/0.8798, allocations: 20.98 MB / 0.5631 GB, free: 15.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.8799, allocations: 201.2 kB / 0.5633 GB, free: 15.03 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/0.8901, allocations: 4.82 MB / 0.568 GB, free: 10.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006526/0.8908, allocations: 57.7 kB / 0.568 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003265/0.8941, allocations: 3.723 MB / 0.5717 GB, free: 6.367 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001442/0.8955, allocations: 0.8253 MB / 0.5725 GB, free: 5.531 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003732/0.8993, allocations: 1.4 MB / 0.5738 GB, free: 4.121 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.8994, allocations: 309.1 kB / 0.5741 GB, free: 3.816 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004722/0.9041, allocations: 2.582 MB / 0.5766 GB, free: 1.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00767/0.9118, allocations: 6.557 MB / 0.583 GB, free: 8.711 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01739/0.9292, allocations: 9.806 MB / 0.5926 GB, free: 12.95 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003874/0.9297, allocations: 40 kB / 0.5927 GB, free: 12.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02633/0.9561, allocations: 10.25 MB / 0.6027 GB, free: 2.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003605/0.9565, allocations: 71.98 kB / 0.6027 GB, free: 2.582 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002982/0.9568, allocations: 139.9 kB / 0.6029 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005115/0.9619, allocations: 1.62 MB / 0.6044 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2094/1.171, allocations: 1.555 MB / 0.606 GB, free: 142.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01235/1.184, allocations: 9.548 MB / 0.6153 GB, free: 138.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005973/1.19, allocations: 383.1 kB / 0.6157 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.191, allocations: 412.2 kB / 0.6161 GB, free: 138.3 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.004499/1.196, allocations: 2.576 MB / 0.6186 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009647/1.197, allocations: 427 kB / 0.619 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007843/1.205, allocations: 4.616 MB / 0.6235 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.562e-05/1.205, allocations: 26.09 kB / 0.6235 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/1.205, allocations: 8.375 kB / 0.6235 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.488e-05/1.205, allocations: 11.3 kB / 0.6235 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01727/1.222, allocations: 10.48 MB / 0.6338 GB, free: 131.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.752e-05/1.222, allocations: 9.078 kB / 0.6338 GB, free: 131.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001608/1.224, allocations: 343.5 kB / 0.6341 GB, free: 131 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003775/1.227, allocations: 1.367 MB / 0.6354 GB, free: 129.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002667/1.228, allocations: 36 kB / 0.6355 GB, free: 129.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009354/1.237, allocations: 8.733 MB / 0.644 GB, free: 120.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.237, allocations: 0 / 0.644 GB, free: 120.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01173/1.249, allocations: 7.57 MB / 0.6514 GB, free: 113.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002232/1.251, allocations: 0.7775 MB / 0.6521 GB, free: 112.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.253, allocations: 33.31 kB / 0.6522 GB, free: 112.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002668/1.255, allocations: 135.8 kB / 0.6523 GB, free: 112.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004941/1.256, allocations: 136.6 kB / 0.6524 GB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/1.256, allocations: 58.11 kB / 0.6525 GB, free: 112.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006034/1.262, allocations: 3.045 MB / 0.6555 GB, free: 109.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.91e-07/1.262, allocations: 0 / 0.6555 GB, free: 109.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007808/1.27, allocations: 1.26 MB / 0.6567 GB, free: 108.1 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.0005797/1.27, allocations: 171.4 kB / 0.6569 GB, free: 107.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00979/1.28, allocations: 6.393 MB / 0.6631 GB, free: 101.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/1.28, allocations: 0 / 0.6631 GB, free: 101.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003222/1.284, allocations: 2.186 MB / 0.6652 GB, free: 99.36 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/1.288, allocations: 0.5183 MB / 0.6657 GB, free: 98.85 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/1.311, allocations: 14.39 MB / 0.6798 GB, free: 84.53 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008607/1.32, allocations: 3.999 MB / 0.6837 GB, free: 80.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006692/1.327, allocations: 2.083 MB / 0.6857 GB, free: 78.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/1.328, allocations: 287.4 kB / 0.686 GB, free: 78.12 MB / 430.1 MB Notification: Performance of SimCode: time 2.034e-06/1.328, allocations: 0 / 0.686 GB, free: 78.12 MB / 430.1 MB Notification: Performance of Templates: time 0.07568/1.404, allocations: 45.64 MB / 0.7306 GB, free: 32.49 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)