Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.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.Parts.Rotor1D.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.Parts.Rotor1D.GearConstraint") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004284/0.00429, allocations: 346.3 kB / 15.94 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.517/3.517, allocations: 341.5 MB / 358.2 MB, free: 28.6 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003469/0.003469, allocations: 207.9 kB / 397.8 MB, free: 6.008 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.527/0.527, allocations: 76.11 MB / 0.5014 GB, free: 0.7969 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000508/0.0005082, allocations: 12 kB / 0.5592 GB, free: 60.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08549/0.08603, allocations: 48.7 MB / 0.6067 GB, free: 11.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4639/0.55, allocations: 95.25 MB / 0.6998 GB, free: 8.672 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003271/0.5504, allocations: 90.27 kB / 0.6998 GB, free: 8.621 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5116/1.062, allocations: 105.5 MB / 0.8029 GB, free: 5.758 MB / 426.7 MB Notification: Performance of FrontEnd: time 5.911e-06/1.062, allocations: 0 / 0.8029 GB, free: 5.758 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004193/1.062, allocations: 111.9 kB / 0.803 GB, free: 5.648 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.3249/1.387, allocations: 5.617 MB / 0.8085 GB, free: 81.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/1.387, allocations: 8.344 kB / 0.8085 GB, free: 81.42 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.043/1.43, allocations: 5.251 MB / 0.8136 GB, free: 81.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01999/1.451, allocations: 5.648 MB / 0.8191 GB, free: 80.76 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/1.451, allocations: 409.3 kB / 0.8195 GB, free: 80.75 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003087/1.454, allocations: 0.537 MB / 0.82 GB, free: 80.74 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03671/1.491, allocations: 12.32 MB / 0.8321 GB, free: 77.66 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003672/1.492, allocations: 74.64 kB / 0.8321 GB, free: 77.65 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002346/1.494, allocations: 259.5 kB / 0.8324 GB, free: 77.65 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002577/1.497, allocations: 1.122 MB / 0.8335 GB, free: 77.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02872/1.525, allocations: 9.857 MB / 0.8431 GB, free: 77.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08073/1.606, allocations: 56.41 MB / 0.8982 GB, free: 38.03 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0167/1.623, allocations: 4.14 MB / 0.9022 GB, free: 36.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004934/1.628, allocations: 2.311 MB / 0.9045 GB, free: 35.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02247/1.65, allocations: 9.412 MB / 0.9137 GB, free: 30.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.138e-05/1.651, allocations: 61.91 kB / 0.9138 GB, free: 30.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=191): time 6.672e-06/1.651, allocations: 3.75 kB / 0.9138 GB, free: 30.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=218): time 0.0911/1.742, allocations: 19.6 MB / 0.9329 GB, free: 17.04 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.023e-05/1.742, allocations: 212.4 kB / 0.9331 GB, free: 16.79 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01091/1.753, allocations: 4.764 MB / 0.9378 GB, free: 12.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005188/1.753, allocations: 58.48 kB / 0.9378 GB, free: 12.74 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003352/1.757, allocations: 3.76 MB / 0.9415 GB, free: 9.375 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001226/1.758, allocations: 0.8295 MB / 0.9423 GB, free: 8.645 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007219/1.759, allocations: 132.8 kB / 0.9424 GB, free: 8.516 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003818/1.759, allocations: 0.5833 MB / 0.943 GB, free: 8.008 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005545/1.765, allocations: 2.241 MB / 0.9452 GB, free: 6.121 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00848/1.773, allocations: 6.206 MB / 0.9512 GB, free: 14.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009317/1.783, allocations: 3.666 MB / 0.9548 GB, free: 11.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001269/1.783, allocations: 40 kB / 0.9549 GB, free: 11.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=857) (initialization): time 0.02728/1.81, allocations: 8.927 MB / 0.9636 GB, free: 3.312 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001404/1.81, allocations: 68 kB / 0.9636 GB, free: 3.246 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002503/1.81, allocations: 136 kB / 0.9638 GB, free: 3.113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004689/1.815, allocations: 0.9396 MB / 0.9647 GB, free: 2.379 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009909/1.825, allocations: 1.5 MB / 0.9661 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01593/1.841, allocations: 7.436 MB / 0.9734 GB, free: 9.934 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007344/1.849, allocations: 355.4 kB / 0.9738 GB, free: 9.586 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00164/1.85, allocations: 401.4 kB / 0.9741 GB, free: 9.195 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 635 * Number of states: 0 () * Number of discrete variables: 42 (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 (795): * Single equations (assignments): 790 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007093/1.857, allocations: 2.578 MB / 0.9767 GB, free: 6.609 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00125/1.859, allocations: 426.5 kB / 0.9771 GB, free: 6.188 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/1.87, allocations: 3.584 MB / 0.9806 GB, free: 2.586 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.153e-05/1.87, allocations: 24.78 kB / 0.9806 GB, free: 2.562 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/1.87, allocations: 4 kB / 0.9806 GB, free: 2.559 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/1.87, allocations: 19.89 kB / 0.9806 GB, free: 2.543 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.373/2.243, allocations: 9.259 MB / 0.9896 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.057e-05/2.243, allocations: 2.125 kB / 0.9896 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004996/2.248, allocations: 340.8 kB / 0.99 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006107/2.255, allocations: 0.6945 MB / 0.9907 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006274/2.255, allocations: 37.75 kB / 0.9907 GB, free: 101.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/2.271, allocations: 6.565 MB / 0.9971 GB, free: 98.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.772e-06/2.271, allocations: 5.422 kB / 0.9971 GB, free: 98.96 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/2.287, allocations: 6.221 MB / 1.003 GB, free: 98.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002821/2.29, allocations: 0.7409 MB / 1.004 GB, free: 98.39 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001375/2.292, allocations: 34.47 kB / 1.004 GB, free: 98.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003852/2.295, allocations: 115.1 kB / 1.004 GB, free: 98.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008465/2.296, allocations: 124.9 kB / 1.004 GB, free: 98.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002534/2.297, allocations: 60.03 kB / 1.004 GB, free: 98.39 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008291/2.305, allocations: 3.004 MB / 1.007 GB, free: 98.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.423e-06/2.305, allocations: 0 / 1.007 GB, free: 98.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008413/2.313, allocations: 1.179 MB / 1.008 GB, free: 98.21 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (169): * Single equations (assignments): 164 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009176/2.314, allocations: 181.8 kB / 1.008 GB, free: 98.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01418/2.329, allocations: 5.73 MB / 1.014 GB, free: 97.84 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/2.329, allocations: 0 / 1.014 GB, free: 97.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005412/2.334, allocations: 1.981 MB / 1.016 GB, free: 97.58 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00672/2.341, allocations: 0.5642 MB / 1.017 GB, free: 97.55 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03362/2.375, allocations: 13.43 MB / 1.03 GB, free: 92.36 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009936/2.385, allocations: 4.112 MB / 1.034 GB, free: 91.54 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.009967/2.395, allocations: 2.101 MB / 1.036 GB, free: 91.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001786/2.396, allocations: 287.5 kB / 1.036 GB, free: 91.49 MB / 458.7 MB Notification: Performance of SimCode: time 3.046e-06/2.396, allocations: 0 / 1.036 GB, free: 91.49 MB / 458.7 MB Notification: Performance of Templates: time 0.123/2.519, allocations: 41.07 MB / 1.076 GB, free: 79.86 MB / 458.7 MB