Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) 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(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint") translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009311/0.00931, allocations: 100.4 kB / 15.73 MB, free: 6.031 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.00173/0.001729, allocations: 193.2 kB / 16.67 MB, free: 5.965 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.8/1.8, allocations: 205.1 MB / 222.5 MB, free: 4.547 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4157/0.4157, allocations: 38 MB / 307.9 MB, free: 9.918 MB / 254.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: ModelicaTest requested package Modelica of version 3.2.1. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 76.5 kB / 433 MB, free: 5.395 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3932, allocations: 56.47 MB / 489.5 MB, free: 19.95 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.01911/0.4123, allocations: 19.37 MB / 0.4969 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01396/0.4263, allocations: 5.432 MB / 0.5022 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006742/0.4331, allocations: 121.4 kB / 0.5023 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01108/0.4443, allocations: 4.805 MB / 0.507 GB, free: 15.79 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01084/0.4552, allocations: 3.19 MB / 0.5101 GB, free: 13.5 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003016/0.4582, allocations: 0.8991 MB / 0.511 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01524/0.4735, allocations: 8.224 MB / 0.5191 GB, free: 8.395 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01163/0.4852, allocations: 6.512 MB / 0.5254 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007295/0.4925, allocations: 3.021 MB / 0.5284 GB, free: 15.8 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008181/0.5007, allocations: 4.096 MB / 0.5324 GB, free: 11.69 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003065/0.5038, allocations: 0.6445 MB / 0.533 GB, free: 11.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00523/0.5091, allocations: 1.471 MB / 0.5344 GB, free: 9.574 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006206/0.5153, allocations: 3.803 MB / 0.5381 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01008/0.5254, allocations: 4.412 MB / 0.5425 GB, free: 1.324 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02171/0.5471, allocations: 14.02 MB / 0.5561 GB, free: 3.254 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.5472, allocations: 0 / 0.5561 GB, free: 3.254 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.5472, allocations: 4 kB / 0.5562 GB, free: 3.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006679/0.5479, allocations: 0 / 0.5562 GB, free: 3.25 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03173/0.5796, allocations: 9.042 MB / 0.565 GB, free: 10.12 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.315e-05/0.5797, allocations: 11.89 kB / 0.565 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02364/0.6034, allocations: 5.46 MB / 0.5703 GB, free: 4.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01502/0.6184, allocations: 5.156 MB / 0.5754 GB, free: 15.41 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005574/0.619, allocations: 451.8 kB / 0.5758 GB, free: 14.97 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003433/0.6225, allocations: 0.5974 MB / 0.5764 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04995/0.6724, allocations: 20.54 MB / 0.5964 GB, free: 8.77 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006199/0.6731, allocations: 71.44 kB / 0.5965 GB, free: 8.699 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00373/0.6769, allocations: 279.7 kB / 0.5968 GB, free: 8.426 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00855/0.6854, allocations: 4.353 MB / 0.601 GB, free: 4.066 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04311/0.7286, allocations: 18.24 MB / 0.6188 GB, free: 1.801 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7007/1.429, allocations: 75.17 MB / 0.6922 GB, free: 67.53 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01814/1.448, allocations: 8.162 MB / 0.7002 GB, free: 64.07 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007481/1.455, allocations: 5.353 MB / 0.7054 GB, free: 61.88 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003151/1.455, allocations: 73.16 kB / 0.7055 GB, free: 61.87 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.124e-05/1.455, allocations: 74.75 kB / 0.7056 GB, free: 61.8 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=450): time 7.133e-06/1.456, allocations: 0 / 0.7056 GB, free: 61.8 MB / 0.4982 GB Notification: Performance of matching and sorting (n=497): time 0.09857/1.554, allocations: 42.94 MB / 0.7475 GB, free: 29.93 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.725e-05/1.554, allocations: 227 kB / 0.7477 GB, free: 29.66 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008439/1.563, allocations: 6.517 MB / 0.7541 GB, free: 23.14 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001248/1.564, allocations: 97.06 kB / 0.7542 GB, free: 23.05 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.002712/1.567, allocations: 5.649 MB / 0.7597 GB, free: 17.4 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.002771/1.569, allocations: 1.805 MB / 0.7615 GB, free: 15.61 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003036/1.572, allocations: 2.313 MB / 0.7637 GB, free: 13.29 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 4.071e-05/1.573, allocations: 301.1 kB / 0.764 GB, free: 12.99 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006333/1.579, allocations: 5.199 MB / 0.7691 GB, free: 7.789 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0139/1.593, allocations: 11.38 MB / 0.7802 GB, free: 9.422 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02689/1.62, allocations: 17.94 MB / 0.7977 GB, free: 4.465 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002076/1.62, allocations: 60 kB / 0.7978 GB, free: 4.406 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1524) (initialization): time 0.03971/1.66, allocations: 18.34 MB / 0.8157 GB, free: 2.039 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003461/1.66, allocations: 97.12 kB / 0.8158 GB, free: 1.945 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005616/1.661, allocations: 215.9 kB / 0.816 GB, free: 1.734 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007326/1.668, allocations: 2.36 MB / 0.8183 GB, free: 15.36 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0105/1.679, allocations: 2.64 MB / 0.8209 GB, free: 12.71 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02313/1.702, allocations: 17.43 MB / 0.8379 GB, free: 10.74 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01034/1.712, allocations: 0.685 MB / 0.8386 GB, free: 10.05 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002592/1.715, allocations: 0.6367 MB / 0.8392 GB, free: 9.418 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 51 (fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],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 (1400): * Single equations (assignments): 1387 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (3,40,77.8%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01148/1.726, allocations: 4.19 MB / 0.8433 GB, free: 5.219 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002675/1.729, allocations: 0.6054 MB / 0.8439 GB, free: 4.605 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02504/1.754, allocations: 10.59 MB / 0.8542 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001495/1.754, allocations: 84.27 kB / 0.8543 GB, free: 9.883 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.922e-05/1.754, allocations: 19.94 kB / 0.8543 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001199/1.754, allocations: 19.92 kB / 0.8543 GB, free: 9.844 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3739/2.128, allocations: 22.58 MB / 0.8764 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.628e-05/2.128, allocations: 11.47 kB / 0.8764 GB, free: 192.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004439/2.133, allocations: 0.788 MB / 0.8772 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006548/2.139, allocations: 2.027 MB / 0.8791 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001199/2.141, allocations: 92.39 kB / 0.8792 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01881/2.159, allocations: 16.19 MB / 0.895 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.418e-05/2.16, allocations: 16.44 kB / 0.8951 GB, free: 182.2 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02645/2.186, allocations: 16.68 MB / 0.9114 GB, free: 175.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006324/2.192, allocations: 1.417 MB / 0.9127 GB, free: 175.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002072/2.195, allocations: 89.61 kB / 0.9128 GB, free: 175.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004241/2.199, allocations: 323.5 kB / 0.9131 GB, free: 175.4 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000947/2.2, allocations: 299 kB / 0.9134 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003415/2.2, allocations: 134.3 kB / 0.9135 GB, free: 175.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00709/2.207, allocations: 4.056 MB / 0.9175 GB, free: 174 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.6e-07/2.207, allocations: 0 / 0.9175 GB, free: 174 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01214/2.219, allocations: 2.101 MB / 0.9196 GB, free: 173.7 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * 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 (381): * Single equations (assignments): 368 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,37,77.8%), (1,2,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001323/2.221, allocations: 247.5 kB / 0.9198 GB, free: 173.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01742/2.238, allocations: 12.77 MB / 0.9323 GB, free: 162.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.625e-05/2.238, allocations: 0 / 0.9323 GB, free: 162.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007251/2.245, allocations: 5.105 MB / 0.9372 GB, free: 157.3 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006676/2.252, allocations: 0.7952 MB / 0.938 GB, free: 156.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03681/2.289, allocations: 20.72 MB / 0.9583 GB, free: 135.8 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00972/2.299, allocations: 6.097 MB / 0.9642 GB, free: 129.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.01066/2.31, allocations: 4.094 MB / 0.9682 GB, free: 125.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002807/2.312, allocations: 453.7 kB / 0.9686 GB, free: 125.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/2.312, allocations: 0 / 0.9686 GB, free: 125.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.1296/2.442, allocations: 72.76 MB / 1.04 GB, free: 52.53 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.pipe 2>&1)