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.0009032/0.0009032, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008848/0.0008846, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.3217/0.3217, allocations: 38.03 MB / 308.4 MB, free: 10.45 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.0005569/0.000557, allocations: 16 kB / 376.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 57.52 MB / 434 MB, free: 5.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.2623/0.3732, allocations: 74.62 MB / 0.4967 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03353/0.4068, allocations: 15.23 MB / 0.5115 GB, free: 13.88 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01663/0.4235, allocations: 354.8 kB / 0.5119 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01347/0.437, allocations: 3.956 MB / 0.5157 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03811/0.4751, allocations: 11.54 MB / 0.527 GB, free: 7.535 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005031/0.4802, allocations: 0.795 MB / 0.5278 GB, free: 7.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.04737/0.5276, allocations: 37.5 MB / 0.5644 GB, free: 6.773 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01296/0.5406, allocations: 7.861 MB / 0.5721 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006007/0.5466, allocations: 2.432 MB / 0.5745 GB, free: 12.42 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00649/0.5532, allocations: 3.793 MB / 0.5782 GB, free: 8.617 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00178/0.555, allocations: 292 kB / 0.5784 GB, free: 8.332 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003526/0.5585, allocations: 1.01 MB / 0.5794 GB, free: 7.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004579/0.5631, allocations: 3.319 MB / 0.5827 GB, free: 3.992 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002832/0.566, allocations: 1.641 MB / 0.5843 GB, free: 2.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01224/0.5782, allocations: 10.84 MB / 0.5948 GB, free: 7.477 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5783, allocations: 4 kB / 0.5949 GB, free: 7.473 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.5783, allocations: 0 / 0.5949 GB, free: 7.473 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006248/0.5789, allocations: 0 / 0.5949 GB, free: 7.473 MB / 462.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.01804/0.597, allocations: 7.451 MB / 0.6021 GB, free: 15.93 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.597, allocations: 12.03 kB / 0.6021 GB, free: 15.92 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0197/0.6167, allocations: 5.604 MB / 0.6076 GB, free: 10.3 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01154/0.6283, allocations: 5.006 MB / 0.6125 GB, free: 5.238 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004752/0.6288, allocations: 459.5 kB / 0.6129 GB, free: 4.789 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002538/0.6314, allocations: 0.5816 MB / 0.6135 GB, free: 4.207 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4668/1.098, allocations: 20.51 MB / 0.6335 GB, free: 136.9 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/1.099, allocations: 74.2 kB / 0.6336 GB, free: 136.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001591/1.1, allocations: 285 kB / 0.6339 GB, free: 136.9 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006087/1.106, allocations: 4.347 MB / 0.6381 GB, free: 136.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03504/1.141, allocations: 18.19 MB / 0.6559 GB, free: 132.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1112/1.253, allocations: 75.6 MB / 0.7297 GB, free: 79.68 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0155/1.268, allocations: 8.175 MB / 0.7377 GB, free: 71.27 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006781/1.275, allocations: 5.351 MB / 0.7429 GB, free: 65.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000441/1.275, allocations: 66.23 kB / 0.743 GB, free: 65.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.843e-05/1.275, allocations: 81.12 kB / 0.7431 GB, free: 65.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=450): time 7.824e-06/1.276, allocations: 0 / 0.7431 GB, free: 65.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=497): time 0.09512/1.371, allocations: 42.91 MB / 0.785 GB, free: 22.79 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.501e-05/1.371, allocations: 227 kB / 0.7852 GB, free: 22.52 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/1.381, allocations: 6.478 MB / 0.7915 GB, free: 16.04 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001042/1.382, allocations: 95.03 kB / 0.7916 GB, free: 15.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003373/1.385, allocations: 5.647 MB / 0.7971 GB, free: 10.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002349/1.388, allocations: 1.804 MB / 0.7989 GB, free: 8.508 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/1.389, allocations: 229.3 kB / 0.7991 GB, free: 8.285 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0009737/1.39, allocations: 0.8019 MB / 0.7999 GB, free: 7.477 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00759/1.398, allocations: 5.164 MB / 0.8049 GB, free: 2.309 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01499/1.413, allocations: 11.35 MB / 0.816 GB, free: 3.973 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.245/1.658, allocations: 7.594 MB / 0.8234 GB, free: 137.5 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002335/1.658, allocations: 59.72 kB / 0.8235 GB, free: 137.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1524) (initialization): time 0.03741/1.695, allocations: 18.27 MB / 0.8413 GB, free: 132.9 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002365/1.696, allocations: 96.06 kB / 0.8414 GB, free: 132.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003807/1.696, allocations: 215.1 kB / 0.8416 GB, free: 132.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005393/1.701, allocations: 2.377 MB / 0.8439 GB, free: 132.5 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01037/1.712, allocations: 2.649 MB / 0.8465 GB, free: 132.2 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01988/1.732, allocations: 16.12 MB / 0.8623 GB, free: 122.7 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009326/1.741, allocations: 0.6907 MB / 0.863 GB, free: 122.5 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002614/1.744, allocations: 0.637 MB / 0.8636 GB, free: 122.4 MB / 0.4982 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(3,77.8%) 40,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009571/1.753, allocations: 4.193 MB / 0.8677 GB, free: 120.6 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001958/1.755, allocations: 0.6057 MB / 0.8683 GB, free: 120.6 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02088/1.776, allocations: 10.57 MB / 0.8786 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001795/1.776, allocations: 94.41 kB / 0.8787 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.221e-05/1.777, allocations: 13.3 kB / 0.8787 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.941e-05/1.777, allocations: 20.75 kB / 0.8787 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04043/1.817, allocations: 22.63 MB / 0.9008 GB, free: 103 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.454e-05/1.817, allocations: 19.98 kB / 0.9008 GB, free: 103 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003504/1.821, allocations: 0.7854 MB / 0.9016 GB, free: 102.3 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004901/1.826, allocations: 2.027 MB / 0.9036 GB, free: 100.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007528/1.826, allocations: 95.73 kB / 0.9037 GB, free: 100.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01443/1.841, allocations: 15.02 MB / 0.9183 GB, free: 85.53 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/1.841, allocations: 15.94 kB / 0.9183 GB, free: 85.51 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02282/1.864, allocations: 16.65 MB / 0.9346 GB, free: 68.68 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004247/1.868, allocations: 1.426 MB / 0.936 GB, free: 67.23 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001686/1.87, allocations: 80 kB / 0.9361 GB, free: 67.15 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003614/1.873, allocations: 334.2 kB / 0.9364 GB, free: 66.83 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000833/1.874, allocations: 294.1 kB / 0.9367 GB, free: 66.54 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004319/1.875, allocations: 128 kB / 0.9368 GB, free: 66.41 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.005969/1.881, allocations: 4.012 MB / 0.9407 GB, free: 62.41 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.71e-07/1.881, allocations: 0 / 0.9407 GB, free: 62.41 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01092/1.892, allocations: 2.103 MB / 0.9428 GB, free: 60.31 MB / 0.4982 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 37,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001385/1.893, allocations: 246.4 kB / 0.943 GB, free: 60.07 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01768/1.911, allocations: 12.65 MB / 0.9554 GB, free: 47.41 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.521e-05/1.911, allocations: 4 kB / 0.9554 GB, free: 47.41 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.007438/1.918, allocations: 5.111 MB / 0.9604 GB, free: 42.25 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006576/1.925, allocations: 0.7616 MB / 0.9611 GB, free: 41.51 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0374/1.962, allocations: 24.35 MB / 0.9849 GB, free: 16.99 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009818/1.972, allocations: 6.09 MB / 0.9908 GB, free: 10.86 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.009634/1.982, allocations: 4.094 MB / 0.9948 GB, free: 6.758 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00207/1.984, allocations: 443.4 kB / 0.9952 GB, free: 6.324 MB / 0.4982 GB Notification: Performance of SimCode: time 1.833e-06/1.984, allocations: 0 / 0.9952 GB, free: 6.324 MB / 0.4982 GB Notification: Performance of Templates: time 0.3505/2.334, allocations: 72.05 MB / 1.066 GB, free: 126.8 MB / 0.5138 GB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: