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.001334/0.001334, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001141/0.001141, allocations: 192 kB / 18 MB, free: 5.098 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.484/1.484, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001239/0.001239, allocations: 47.94 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.09192, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2268/0.3187, allocations: 14.23 MB / 388.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.3337, allocations: 4.645 MB / 393.4 MB, free: 2.125 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005186/0.339, allocations: 92.38 kB / 393.4 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008921/0.3479, allocations: 4.22 MB / 397.7 MB, free: 148 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008922/0.3569, allocations: 2.264 MB / 399.9 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002809/0.3597, allocations: 0.9292 MB / 400.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.3716, allocations: 5.901 MB / 406.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009076/0.3807, allocations: 5.304 MB / 412.1 MB, free: 8.625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006627/0.3874, allocations: 2.2 MB / 414.3 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006495/0.3939, allocations: 2.935 MB / 417.2 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002449/0.3964, allocations: 500 kB / 417.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005963/0.4024, allocations: 1.366 MB / 419.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004668/0.4071, allocations: 2.634 MB / 421.7 MB, free: 224 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006733/0.4138, allocations: 3.003 MB / 424.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01644/0.4303, allocations: 9.604 MB / 434.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4304, allocations: 0 / 434.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.4304, allocations: 0 / 434.3 MB, free: 3.559 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004436/0.4308, allocations: 4 kB / 434.3 MB, free: 3.555 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.02046/0.4513, allocations: 6.504 MB / 440.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.807e-05/0.4514, allocations: 12.03 kB / 440.8 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01346/0.4649, allocations: 2.645 MB / 443.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/0.4758, allocations: 4.052 MB / 447.5 MB, free: 6.188 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003623/0.4762, allocations: 316.4 kB / 447.8 MB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002685/0.4789, allocations: 452 kB / 448.3 MB, free: 5.434 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02551/0.5044, allocations: 12.23 MB / 460.5 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002198/0.5047, allocations: 59.53 kB / 460.6 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008294/0.5055, allocations: 195.8 kB / 460.7 MB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003634/0.5092, allocations: 2.203 MB / 463 MB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02073/0.5299, allocations: 10.54 MB / 473.5 MB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06423/0.5942, allocations: 47.44 MB / 0.5087 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01139/0.6056, allocations: 4.602 MB / 0.5132 GB, free: 5.844 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003601/0.6092, allocations: 2.648 MB / 0.5158 GB, free: 3.188 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01777/0.627, allocations: 10.46 MB / 0.526 GB, free: 8.559 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/0.6271, allocations: 55.86 kB / 0.5261 GB, free: 8.496 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 4.699e-06/0.6272, allocations: 0 / 0.5261 GB, free: 8.496 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.05576/0.6829, allocations: 21.27 MB / 0.5468 GB, free: 3.152 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.6831, allocations: 201.2 kB / 0.547 GB, free: 2.91 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2442/0.9273, allocations: 4.829 MB / 0.5517 GB, free: 148.4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006/0.928, allocations: 57.83 kB / 0.5518 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003028/0.931, allocations: 3.87 MB / 0.5556 GB, free: 146.9 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001263/0.9323, allocations: 0.8631 MB / 0.5564 GB, free: 146.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002293/0.9346, allocations: 1.406 MB / 0.5578 GB, free: 145.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.558e-05/0.9347, allocations: 310.2 kB / 0.5581 GB, free: 145.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004971/0.9396, allocations: 2.58 MB / 0.5606 GB, free: 144.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006479/0.9462, allocations: 6.558 MB / 0.567 GB, free: 138.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0114/0.9576, allocations: 9.812 MB / 0.5766 GB, free: 130.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002212/0.9578, allocations: 38.88 kB / 0.5766 GB, free: 130.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02103/0.9789, allocations: 10.28 MB / 0.5867 GB, free: 126.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.979, allocations: 62.72 kB / 0.5867 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001957/0.9792, allocations: 138.8 kB / 0.5869 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004167/0.9834, allocations: 1.617 MB / 0.5884 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005242/0.9887, allocations: 1.563 MB / 0.59 GB, free: 126 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.9993, allocations: 10.27 MB / 0.6 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005775/1.005, allocations: 389.9 kB / 0.6004 GB, free: 119.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009704/1.006, allocations: 403.5 kB / 0.6008 GB, free: 119 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.004151/1.01, allocations: 2.572 MB / 0.6033 GB, free: 116.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.011, allocations: 448.8 kB / 0.6037 GB, free: 116.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00746/1.019, allocations: 4.615 MB / 0.6082 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.901e-05/1.019, allocations: 27.59 kB / 0.6082 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.383e-05/1.019, allocations: 8 kB / 0.6082 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.616e-05/1.019, allocations: 11.95 kB / 0.6082 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/1.035, allocations: 10.44 MB / 0.6184 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/1.035, allocations: 4 kB / 0.6184 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.036, allocations: 347.5 kB / 0.6188 GB, free: 101.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003728/1.04, allocations: 1.352 MB / 0.6201 GB, free: 99.87 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/1.04, allocations: 43.92 kB / 0.6201 GB, free: 99.82 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00923/1.05, allocations: 9.4 MB / 0.6293 GB, free: 90.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.05, allocations: 0 / 0.6293 GB, free: 90.16 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/1.06, allocations: 7.585 MB / 0.6367 GB, free: 82.54 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/1.062, allocations: 0.8064 MB / 0.6375 GB, free: 81.71 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008577/1.063, allocations: 35.94 kB / 0.6375 GB, free: 81.68 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/1.065, allocations: 131.8 kB / 0.6377 GB, free: 81.55 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004596/1.065, allocations: 125.8 kB / 0.6378 GB, free: 81.43 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001529/1.066, allocations: 67.81 kB / 0.6379 GB, free: 81.36 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004131/1.07, allocations: 3.037 MB / 0.6408 GB, free: 78.33 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.07, allocations: 4 kB / 0.6408 GB, free: 78.33 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005787/1.076, allocations: 1.266 MB / 0.6421 GB, free: 77.06 MB / 478.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.0004174/1.076, allocations: 167.3 kB / 0.6422 GB, free: 76.89 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008729/1.085, allocations: 6.402 MB / 0.6485 GB, free: 70.5 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.085, allocations: 4 kB / 0.6485 GB, free: 70.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/1.088, allocations: 2.19 MB / 0.6506 GB, free: 68.29 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003562/1.091, allocations: 0.5573 MB / 0.6512 GB, free: 67.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01702/1.108, allocations: 11.91 MB / 0.6628 GB, free: 55.81 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003713/1.112, allocations: 4.002 MB / 0.6667 GB, free: 51.77 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004261/1.116, allocations: 2.087 MB / 0.6687 GB, free: 49.68 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007929/1.117, allocations: 283.4 kB / 0.669 GB, free: 49.4 MB / 478.1 MB Notification: Performance of SimCode: time 8.01e-07/1.117, allocations: 4 kB / 0.669 GB, free: 49.4 MB / 478.1 MB Notification: Performance of Templates: time 0.07207/1.189, allocations: 43.93 MB / 0.7119 GB, free: 5.512 MB / 478.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)