Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004094/0.0041, allocations: 346.2 kB / 15.93 MB, free: 6.223 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.581/3.581, allocations: 341.5 MB / 358.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003589/0.003589, allocations: 218.1 kB / 397.9 MB, free: 4.887 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.4917/0.4917, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004786/0.0004789, allocations: 12 kB / 0.5592 GB, free: 53.44 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08754/0.08805, allocations: 48.71 MB / 0.6067 GB, free: 4.617 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4876/0.5757, allocations: 96.84 MB / 0.7013 GB, free: 15.8 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.576, allocations: 83.95 kB / 0.7014 GB, free: 15.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9759/1.552, allocations: 162.1 MB / 0.8597 GB, free: 50.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.827e-06/1.552, allocations: 0 / 0.8597 GB, free: 50.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006312/1.553, allocations: 160 kB / 0.8598 GB, free: 50.7 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3108 * Number of variables: 3108 Notification: Performance of Generate backend data structure: time 0.04403/1.597, allocations: 7.891 MB / 0.8675 GB, free: 42.72 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.888e-05/1.597, allocations: 12.02 kB / 0.8675 GB, free: 42.71 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08593/1.683, allocations: 8.408 MB / 0.8758 GB, free: 34.27 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02924/1.712, allocations: 7.211 MB / 0.8828 GB, free: 26.97 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009827/1.713, allocations: 0.6217 MB / 0.8834 GB, free: 26.35 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005731/1.719, allocations: 0.8238 MB / 0.8842 GB, free: 25.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05764/1.776, allocations: 20.41 MB / 0.9041 GB, free: 3.645 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005971/1.777, allocations: 87.22 kB / 0.9042 GB, free: 3.559 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005129/1.782, allocations: 399.8 kB / 0.9046 GB, free: 3.168 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004261/1.787, allocations: 2.093 MB / 0.9067 GB, free: 1.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3805/2.167, allocations: 17.9 MB / 0.9241 GB, free: 64.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1477/2.315, allocations: 84.87 MB / 1.007 GB, free: 18.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0269/2.342, allocations: 7.967 MB / 1.015 GB, free: 15.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01074/2.353, allocations: 5.144 MB / 1.02 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000353/2.353, allocations: 67.66 kB / 1.02 GB, free: 12.96 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.295e-05/2.353, allocations: 76.28 kB / 1.02 GB, free: 12.89 MB / 426.7 MB Notification: Performance of pre-optimization done (n=450): time 9.808e-06/2.353, allocations: 0 / 1.02 GB, free: 12.89 MB / 426.7 MB Notification: Performance of matching and sorting (n=501): time 0.1976/2.551, allocations: 43.48 MB / 1.062 GB, free: 8.422 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001748/2.551, allocations: 231.8 kB / 1.063 GB, free: 8.156 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01723/2.568, allocations: 6.432 MB / 1.069 GB, free: 2.785 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001188/2.569, allocations: 97.91 kB / 1.069 GB, free: 2.688 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0107/2.58, allocations: 5.675 MB / 1.075 GB, free: 13.62 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.005216/2.586, allocations: 1.815 MB / 1.076 GB, free: 12.01 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002756/2.588, allocations: 222.3 kB / 1.077 GB, free: 11.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001934/2.59, allocations: 0.8005 MB / 1.077 GB, free: 11.13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02157/2.612, allocations: 4.919 MB / 1.082 GB, free: 6.934 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4345/3.046, allocations: 11.07 MB / 1.093 GB, free: 92.81 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01909/3.066, allocations: 7.342 MB / 1.1 GB, free: 92.76 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000345/3.066, allocations: 60.28 kB / 1.1 GB, free: 92.76 MB / 458.7 MB Notification: Performance of matching and sorting (n=1486) (initialization): time 0.05073/3.117, allocations: 17.12 MB / 1.117 GB, free: 91.62 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002627/3.117, allocations: 101.7 kB / 1.117 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004969/3.118, allocations: 216.3 kB / 1.117 GB, free: 91.62 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008252/3.126, allocations: 1.696 MB / 1.119 GB, free: 91.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01894/3.145, allocations: 2.598 MB / 1.121 GB, free: 91.37 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02487/3.17, allocations: 14.03 MB / 1.135 GB, free: 85.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01285/3.183, allocations: 0.6655 MB / 1.136 GB, free: 85.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002913/3.186, allocations: 0.6263 MB / 1.136 GB, free: 85.74 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * Number of states: 0 () * Number of discrete variables: 48 (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.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 (1362): * Single equations (assignments): 1349 * 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,(1,100.0%) 42,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01259/3.198, allocations: 4.198 MB / 1.14 GB, free: 84 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/3.2, allocations: 0.611 MB / 1.141 GB, free: 84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02993/3.23, allocations: 9.711 MB / 1.151 GB, free: 80.35 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002676/3.23, allocations: 91.7 kB / 1.151 GB, free: 80.34 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00011/3.231, allocations: 9.688 kB / 1.151 GB, free: 80.34 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001468/3.231, allocations: 20.02 kB / 1.151 GB, free: 80.34 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06979/3.301, allocations: 21.69 MB / 1.172 GB, free: 72.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.299e-05/3.301, allocations: 7.375 kB / 1.172 GB, free: 72.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007729/3.308, allocations: 0.7974 MB / 1.173 GB, free: 72.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006779/3.315, allocations: 1.354 MB / 1.174 GB, free: 72.06 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001133/3.316, allocations: 88.28 kB / 1.174 GB, free: 72.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02108/3.338, allocations: 12.92 MB / 1.187 GB, free: 61.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.467e-05/3.338, allocations: 19.89 kB / 1.187 GB, free: 61.08 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03598/3.374, allocations: 15.52 MB / 1.202 GB, free: 47.36 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004959/3.379, allocations: 1.388 MB / 1.203 GB, free: 46.07 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002111/3.381, allocations: 82.03 kB / 1.203 GB, free: 45.99 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006458/3.387, allocations: 307.3 kB / 1.204 GB, free: 45.8 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001753/3.389, allocations: 305 kB / 1.204 GB, free: 45.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007747/3.39, allocations: 129.9 kB / 1.204 GB, free: 45.48 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01088/3.401, allocations: 3.992 MB / 1.208 GB, free: 42.22 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.51e-07/3.401, allocations: 0 / 1.208 GB, free: 42.22 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.02108/3.422, allocations: 2.037 MB / 1.21 GB, free: 40.19 MB / 458.7 MB 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 (385): * Single equations (assignments): 372 * 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%) 39,(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.00214/3.424, allocations: 254.5 kB / 1.21 GB, free: 39.96 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.04363/3.468, allocations: 12.16 MB / 1.222 GB, free: 29.14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.123e-05/3.468, allocations: 0 / 1.222 GB, free: 29.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01851/3.486, allocations: 4.942 MB / 1.227 GB, free: 24.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009454/3.496, allocations: 0.8025 MB / 1.228 GB, free: 24 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06321/3.559, allocations: 24.01 MB / 1.251 GB, free: 1.855 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3873/3.947, allocations: 6.458 MB / 1.257 GB, free: 99.22 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.02107/3.968, allocations: 4.109 MB / 1.261 GB, free: 99.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003917/3.972, allocations: 449.5 kB / 1.262 GB, free: 99.15 MB / 474.7 MB Notification: Performance of SimCode: time 1.913e-06/3.972, allocations: 3.188 kB / 1.262 GB, free: 99.15 MB / 474.7 MB Notification: Performance of Templates: time 0.2301/4.202, allocations: 69.59 MB / 1.33 GB, free: 86.66 MB / 474.7 MB