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.001688/0.001687, 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.002545/0.002545, allocations: 193.5 kB / 16.14 MB, free: 6.703 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.767/1.767, allocations: 205.1 MB / 222 MB, free: 4.961 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.3907/0.3907, allocations: 37.97 MB / 307.3 MB, free: 9.855 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.001655/0.001655, allocations: 66.41 kB / 374.6 MB, free: 15.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1573, allocations: 56.46 MB / 431 MB, free: 7.082 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.GearConstraint): time 0.3368/0.4942, allocations: 82.26 MB / 0.5012 GB, free: 2.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.04191/0.5361, allocations: 15.93 MB / 0.5168 GB, free: 8.309 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02221/0.5584, allocations: 358.3 kB / 0.5171 GB, free: 8.254 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01032/0.5688, allocations: 4.77 MB / 0.5218 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01222/0.581, allocations: 3.025 MB / 0.5248 GB, free: 4.746 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003392/0.5844, allocations: 0.8259 MB / 0.5256 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01978/0.6042, allocations: 11.91 MB / 0.5372 GB, free: 56 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01024/0.6145, allocations: 6.367 MB / 0.5434 GB, free: 10.05 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007223/0.6218, allocations: 2.643 MB / 0.546 GB, free: 7.395 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008082/0.6299, allocations: 4.346 MB / 0.5502 GB, free: 3.035 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002445/0.6324, allocations: 452 kB / 0.5507 GB, free: 2.594 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00448/0.6369, allocations: 1.334 MB / 0.552 GB, free: 1.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004701/0.6416, allocations: 3.631 MB / 0.5555 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007886/0.6495, allocations: 4.228 MB / 0.5596 GB, free: 9.363 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01978/0.6693, allocations: 13.34 MB / 0.5727 GB, free: 11.98 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.247e-05/0.6694, allocations: 4 kB / 0.5727 GB, free: 11.98 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.6694, allocations: 0 / 0.5727 GB, free: 11.98 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008922/0.6703, allocations: 0 / 0.5727 GB, free: 11.98 MB / 446.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.02955/0.6999, allocations: 9.042 MB / 0.5815 GB, free: 2.852 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.448e-05/0.7, allocations: 11.97 kB / 0.5815 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02116/0.7211, allocations: 5.46 MB / 0.5868 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01429/0.7355, allocations: 5.082 MB / 0.5918 GB, free: 8.219 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005016/0.736, allocations: 451.9 kB / 0.5922 GB, free: 7.777 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00391/0.7399, allocations: 0.5937 MB / 0.5928 GB, free: 7.184 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04239/0.7823, allocations: 20.53 MB / 0.6129 GB, free: 1.586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002625/0.7826, allocations: 79.3 kB / 0.6129 GB, free: 1.508 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001288/0.7839, allocations: 279.7 kB / 0.6132 GB, free: 1.234 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00687/0.7908, allocations: 4.345 MB / 0.6175 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.571/1.362, allocations: 18.24 MB / 0.6353 GB, free: 136 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1153/1.477, allocations: 75.57 MB / 0.7091 GB, free: 87.32 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01715/1.494, allocations: 8.182 MB / 0.7171 GB, free: 83.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006698/1.501, allocations: 5.347 MB / 0.7223 GB, free: 81.22 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000269/1.501, allocations: 65.19 kB / 0.7223 GB, free: 81.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.29e-05/1.501, allocations: 84.25 kB / 0.7224 GB, free: 81.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=450): time 6.512e-06/1.501, allocations: 4 kB / 0.7224 GB, free: 81.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=497): time 0.08987/1.591, allocations: 42.93 MB / 0.7644 GB, free: 41.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.716e-05/1.591, allocations: 227 kB / 0.7646 GB, free: 41.44 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008171/1.6, allocations: 6.513 MB / 0.7709 GB, free: 34.93 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001034/1.601, allocations: 93.7 kB / 0.771 GB, free: 34.83 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002539/1.603, allocations: 5.638 MB / 0.7765 GB, free: 29.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002057/1.605, allocations: 1.811 MB / 0.7783 GB, free: 27.38 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002694/1.608, allocations: 2.313 MB / 0.7806 GB, free: 25.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.29e-05/1.608, allocations: 313 kB / 0.7809 GB, free: 24.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006051/1.614, allocations: 5.203 MB / 0.7859 GB, free: 19.54 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008106/1.622, allocations: 11.38 MB / 0.7971 GB, free: 5.18 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02149/1.644, allocations: 17.94 MB / 0.8146 GB, free: 228 kB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001919/1.644, allocations: 60 kB / 0.8146 GB, free: 168 kB / 0.4982 GB Notification: Performance of matching and sorting (n=1524) (initialization): time 0.3093/1.953, allocations: 18.35 MB / 0.8326 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001842/1.954, allocations: 94.94 kB / 0.8326 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003332/1.954, allocations: 215.1 kB / 0.8328 GB, free: 152.3 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01179/1.966, allocations: 2.343 MB / 0.8351 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01532/1.981, allocations: 2.642 MB / 0.8377 GB, free: 152.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02179/2.003, allocations: 16.14 MB / 0.8535 GB, free: 144.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009744/2.013, allocations: 0.6813 MB / 0.8541 GB, free: 144.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002257/2.015, allocations: 0.6341 MB / 0.8548 GB, free: 144.7 MB / 0.5138 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.007654/2.023, allocations: 4.193 MB / 0.8589 GB, free: 143.1 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001572/2.024, allocations: 0.6141 MB / 0.8595 GB, free: 143.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01807/2.042, allocations: 10.59 MB / 0.8698 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000176/2.043, allocations: 88.39 kB / 0.8699 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.562e-05/2.043, allocations: 9.625 kB / 0.8699 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.449e-05/2.043, allocations: 21.3 kB / 0.8699 GB, free: 139.3 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04985/2.093, allocations: 22.67 MB / 0.8921 GB, free: 131.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.045e-05/2.093, allocations: 14.47 kB / 0.8921 GB, free: 131.4 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/2.097, allocations: 0.779 MB / 0.8928 GB, free: 131.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005277/2.102, allocations: 2.03 MB / 0.8948 GB, free: 130.9 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001034/2.103, allocations: 86.28 kB / 0.8949 GB, free: 130.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/2.118, allocations: 15.02 MB / 0.9096 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.949e-06/2.118, allocations: 15.94 kB / 0.9096 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02453/2.142, allocations: 16.69 MB / 0.9259 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004073/2.146, allocations: 1.416 MB / 0.9273 GB, free: 103 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001733/2.148, allocations: 85.09 kB / 0.9273 GB, free: 102.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003989/2.152, allocations: 327.1 kB / 0.9277 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001016/2.153, allocations: 298 kB / 0.9279 GB, free: 102.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003209/2.154, allocations: 128 kB / 0.9281 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006267/2.16, allocations: 4.057 MB / 0.932 GB, free: 98.11 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2e-07/2.16, allocations: 0 / 0.932 GB, free: 98.11 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01182/2.172, allocations: 2.118 MB / 0.9341 GB, free: 96 MB / 0.5138 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.001151/2.173, allocations: 238.7 kB / 0.9343 GB, free: 95.76 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01843/2.191, allocations: 12.69 MB / 0.9467 GB, free: 83.07 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/2.191, allocations: 4.5 kB / 0.9467 GB, free: 83.06 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.007436/2.199, allocations: 5.124 MB / 0.9517 GB, free: 77.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/2.205, allocations: 0.7537 MB / 0.9525 GB, free: 77.17 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03845/2.243, allocations: 25.14 MB / 0.977 GB, free: 51.86 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009363/2.253, allocations: 6.094 MB / 0.983 GB, free: 45.73 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01088/2.264, allocations: 4.11 MB / 0.987 GB, free: 41.61 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002912/2.266, allocations: 447.4 kB / 0.9874 GB, free: 41.17 MB / 0.5138 GB Notification: Performance of SimCode: time 1.523e-06/2.267, allocations: 0 / 0.9874 GB, free: 41.17 MB / 0.5138 GB Notification: Performance of Templates: time 0.3788/2.645, allocations: 75.1 MB / 1.061 GB, free: 138 MB / 0.5138 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)