Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.GearConstraint.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.MultiBody.Joints.GearConstraint") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.004355/0.004362, allocations: 363.1 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.168/4.168, allocations: 388.9 MB / 405.6 MB, free: 9.582 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003718/0.003718, allocations: 221.7 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5214/0.5214, allocations: 80.01 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.000507, allocations: 16 kB / 0.6265 GB, free: 96.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09635/0.09689, allocations: 54.87 MB / 0.6801 GB, free: 41.66 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4761/0.5731, allocations: 104.1 MB / 0.7817 GB, free: 13.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/0.5734, allocations: 85.39 kB / 0.7818 GB, free: 13.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012/1.585, allocations: 162.1 MB / 0.9401 GB, free: 87.1 MB / 474.7 MB Notification: Performance of FrontEnd: time 5.921e-06/1.585, allocations: 6.094 kB / 0.9401 GB, free: 87.1 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004975/1.586, allocations: 160.9 kB / 0.9402 GB, free: 87.09 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3109 * Number of variables: 3109 Notification: Performance of Generate backend data structure: time 0.03434/1.62, allocations: 7.874 MB / 0.9479 GB, free: 83.75 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/1.62, allocations: 9.031 kB / 0.9479 GB, free: 83.75 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0642/1.684, allocations: 8.404 MB / 0.9561 GB, free: 83.15 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0239/1.708, allocations: 7.224 MB / 0.9632 GB, free: 82.06 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008643/1.709, allocations: 0.6198 MB / 0.9638 GB, free: 82.04 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005455/1.715, allocations: 0.8192 MB / 0.9646 GB, free: 82.04 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05967/1.775, allocations: 20.42 MB / 0.9846 GB, free: 74.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005826/1.775, allocations: 91.55 kB / 0.9846 GB, free: 74.35 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004724/1.78, allocations: 394.9 kB / 0.985 GB, free: 74.13 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004503/1.784, allocations: 2.101 MB / 0.9871 GB, free: 73.73 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0492/1.834, allocations: 17.91 MB / 1.005 GB, free: 59 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5747/2.408, allocations: 84.94 MB / 1.088 GB, free: 44.23 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04328/2.452, allocations: 7.978 MB / 1.095 GB, free: 42.98 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01154/2.463, allocations: 5.135 MB / 1.1 GB, free: 42.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004196/2.464, allocations: 66.31 kB / 1.1 GB, free: 42.92 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.192e-05/2.464, allocations: 82.44 kB / 1.1 GB, free: 42.88 MB / 490.7 MB Notification: Performance of pre-optimization done (n=450): time 9.838e-06/2.464, allocations: 0 / 1.1 GB, free: 42.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=501): time 0.2439/2.708, allocations: 43.47 MB / 1.143 GB, free: 37.57 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/2.708, allocations: 226.3 kB / 1.143 GB, free: 37.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01502/2.723, allocations: 6.432 MB / 1.149 GB, free: 36.27 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001195/2.724, allocations: 96.94 kB / 1.149 GB, free: 36.18 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005255/2.73, allocations: 5.681 MB / 1.155 GB, free: 32.01 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003153/2.733, allocations: 1.815 MB / 1.157 GB, free: 30.67 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001652/2.735, allocations: 225.8 kB / 1.157 GB, free: 30.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0009697/2.736, allocations: 0.7917 MB / 1.158 GB, free: 29.99 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01229/2.748, allocations: 4.918 MB / 1.163 GB, free: 28.36 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01614/2.764, allocations: 11.08 MB / 1.173 GB, free: 18.61 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01638/2.781, allocations: 7.347 MB / 1.181 GB, free: 16.09 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002099/2.781, allocations: 61.59 kB / 1.181 GB, free: 16.09 MB / 490.7 MB Notification: Performance of matching and sorting (n=1487) (initialization): time 0.04591/2.827, allocations: 17.14 MB / 1.197 GB, free: 5.984 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001496/2.827, allocations: 100.7 kB / 1.197 GB, free: 5.887 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003491/2.827, allocations: 212 kB / 1.198 GB, free: 5.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007308/2.835, allocations: 1.698 MB / 1.199 GB, free: 4.375 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01889/2.854, allocations: 2.601 MB / 1.202 GB, free: 2.141 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03472/2.888, allocations: 14.04 MB / 1.216 GB, free: 5.035 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01277/2.901, allocations: 0.6666 MB / 1.216 GB, free: 4.484 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00315/2.904, allocations: 0.6344 MB / 1.217 GB, free: 3.867 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 976 * 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 (1363): * Single equations (assignments): 1350 * 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.01388/2.918, allocations: 4.188 MB / 1.221 GB, free: 240 kB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002038/2.92, allocations: 0.6133 MB / 1.222 GB, free: 15.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03162/2.952, allocations: 9.712 MB / 1.231 GB, free: 7.48 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002331/2.952, allocations: 92.17 kB / 1.231 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.669e-05/2.952, allocations: 12 kB / 1.231 GB, free: 7.387 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001009/2.952, allocations: 18.14 kB / 1.231 GB, free: 7.387 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09138/3.044, allocations: 21.71 MB / 1.252 GB, free: 5.324 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-05/3.044, allocations: 12 kB / 1.252 GB, free: 5.312 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008164/3.052, allocations: 0.794 MB / 1.253 GB, free: 4.684 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007274/3.059, allocations: 1.349 MB / 1.254 GB, free: 3.723 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00129/3.061, allocations: 89.48 kB / 1.255 GB, free: 3.641 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02534/3.086, allocations: 12.92 MB / 1.267 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.931e-05/3.086, allocations: 15.94 kB / 1.267 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04428/3.13, allocations: 15.67 MB / 1.282 GB, free: 8.922 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005636/3.136, allocations: 1.383 MB / 1.284 GB, free: 7.512 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002086/3.138, allocations: 87.27 kB / 1.284 GB, free: 7.43 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006363/3.145, allocations: 311.6 kB / 1.284 GB, free: 7.125 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001574/3.146, allocations: 301.1 kB / 1.284 GB, free: 6.832 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006282/3.147, allocations: 128 kB / 1.285 GB, free: 6.707 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01191/3.159, allocations: 3.986 MB / 1.289 GB, free: 2.73 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.333e-06/3.159, allocations: 0 / 1.289 GB, free: 2.73 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01544/3.174, allocations: 2.04 MB / 1.291 GB, free: 0.6992 MB / 0.5574 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 (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.001755/3.176, allocations: 256.8 kB / 1.291 GB, free: 464 kB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.4189/3.595, allocations: 12.15 MB / 1.303 GB, free: 163.5 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.519e-05/3.595, allocations: 1.031 kB / 1.303 GB, free: 163.5 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.0134/3.609, allocations: 4.945 MB / 1.307 GB, free: 163.1 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009684/3.618, allocations: 0.7935 MB / 1.308 GB, free: 163 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06219/3.681, allocations: 24.02 MB / 1.332 GB, free: 154.4 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01765/3.698, allocations: 6.268 MB / 1.338 GB, free: 153.5 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.02025/3.719, allocations: 4.111 MB / 1.342 GB, free: 153.3 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003892/3.723, allocations: 456.7 kB / 1.342 GB, free: 153.3 MB / 0.5574 GB Notification: Performance of SimCode: time 1.443e-06/3.723, allocations: 0 / 1.342 GB, free: 153.3 MB / 0.5574 GB Notification: Performance of Templates: time 0.2082/3.931, allocations: 69.61 MB / 1.41 GB, free: 121.9 MB / 0.5574 GB