Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.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.Rotational.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00268/0.002685, allocations: 363.5 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.402/4.402, allocations: 388.9 MB / 405.6 MB, free: 10.24 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.0037/0.0037, allocations: 236.8 kB / 451 MB, free: 145.1 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.6047/0.6047, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007045/0.0007047, allocations: 8 kB / 0.6265 GB, free: 96.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.1363, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.609, allocations: 96.37 MB / 0.7742 GB, free: 5.199 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/0.6094, allocations: 71.41 kB / 0.7743 GB, free: 5.164 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3738/0.9832, allocations: 63.45 MB / 0.8362 GB, free: 13.69 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.9832, allocations: 0 / 0.8362 GB, free: 13.69 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002868/0.9835, allocations: 71.98 kB / 0.8363 GB, free: 13.62 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01541/0.999, allocations: 3.115 MB / 0.8393 GB, free: 10.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/0.999, allocations: 8.031 kB / 0.8393 GB, free: 10.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003243/1.002, allocations: 415.8 kB / 0.8397 GB, free: 10.03 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00512/1.007, allocations: 1.306 MB / 0.841 GB, free: 8.672 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001636/1.009, allocations: 0.5845 MB / 0.8416 GB, free: 8.023 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001609/1.011, allocations: 311.6 kB / 0.8419 GB, free: 7.719 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/1.026, allocations: 3.391 MB / 0.8452 GB, free: 4.215 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003538/1.027, allocations: 39.7 kB / 0.8452 GB, free: 4.176 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/1.028, allocations: 116 kB / 0.8453 GB, free: 4.062 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/1.028, allocations: 72 kB / 0.8454 GB, free: 3.992 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01516/1.043, allocations: 3.491 MB / 0.8488 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03301/1.076, allocations: 9.793 MB / 0.8584 GB, free: 6.473 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/1.088, allocations: 3.138 MB / 0.8614 GB, free: 3.156 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007536/1.095, allocations: 1.746 MB / 0.8631 GB, free: 1.359 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008517/1.096, allocations: 235.3 kB / 0.8634 GB, free: 1.094 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001146/1.096, allocations: 96.36 kB / 0.8635 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of pre-optimization done (n=366): time 8.526e-06/1.096, allocations: 0 / 0.8635 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of matching and sorting (n=429): time 0.08881/1.185, allocations: 21.39 MB / 0.8844 GB, free: 10.39 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0005375/1.186, allocations: 0.6082 MB / 0.8849 GB, free: 9.648 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005755/1.192, allocations: 1.51 MB / 0.8864 GB, free: 8.137 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001601/1.193, allocations: 125.7 kB / 0.8865 GB, free: 8.008 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001672/1.195, allocations: 0.9002 MB / 0.8874 GB, free: 7.094 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003855/1.199, allocations: 1.44 MB / 0.8888 GB, free: 5.633 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001452/1.2, allocations: 84 kB / 0.8889 GB, free: 5.551 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0007002/1.201, allocations: 467 kB / 0.8894 GB, free: 5.086 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008977/1.21, allocations: 1.433 MB / 0.8907 GB, free: 3.645 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007829/1.218, allocations: 2.184 MB / 0.8929 GB, free: 1.172 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.365/1.583, allocations: 1.444 MB / 0.8943 GB, free: 124.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-05/1.583, allocations: 5.406 kB / 0.8943 GB, free: 124.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.02025/1.603, allocations: 4.823 MB / 0.899 GB, free: 124.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.433e-05/1.603, allocations: 15.81 kB / 0.899 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.911e-05/1.604, allocations: 21.55 kB / 0.899 GB, free: 124.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007444/1.611, allocations: 1.779 MB / 0.9008 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006449/1.618, allocations: 0.8098 MB / 0.9016 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03991/1.657, allocations: 16.32 MB / 0.9175 GB, free: 114.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007925/1.665, allocations: 379.2 kB / 0.9179 GB, free: 114.8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001653/1.667, allocations: 184.8 kB / 0.918 GB, free: 114.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free,bearingFriction1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {1 6,1 12,1 6,1 6,2 22,2 22,2 25,2 24} Notification: Performance of prepare postOptimizeDAE: time 0.00428/1.672, allocations: 0.6141 MB / 0.9186 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002671/1.674, allocations: 290.1 kB / 0.9189 GB, free: 114.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0098/1.684, allocations: 1.586 MB / 0.9205 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001254/1.684, allocations: 44.19 kB / 0.9205 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-05/1.684, allocations: 5.531 kB / 0.9205 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001951/1.685, allocations: 25.81 kB / 0.9205 GB, free: 114.5 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04067/1.725, allocations: 10.43 MB / 0.9307 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.612e-05/1.725, allocations: 11.41 kB / 0.9307 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006477/1.732, allocations: 0.7352 MB / 0.9315 GB, free: 110.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00648/1.738, allocations: 1.642 MB / 0.9331 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001152/1.74, allocations: 136.1 kB / 0.9332 GB, free: 110.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02652/1.766, allocations: 15.8 MB / 0.9486 GB, free: 97.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.435e-05/1.766, allocations: 17.25 kB / 0.9486 GB, free: 97.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02571/1.792, allocations: 7.842 MB / 0.9563 GB, free: 93.12 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002963/1.795, allocations: 0.7042 MB / 0.957 GB, free: 92.71 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001221/1.796, allocations: 109.8 kB / 0.9571 GB, free: 92.65 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006137/1.802, allocations: 354.7 kB / 0.9574 GB, free: 92.59 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002661/1.805, allocations: 0.6065 MB / 0.958 GB, free: 92.48 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008444/1.806, allocations: 167.1 kB / 0.9582 GB, free: 92.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002737/1.809, allocations: 1.006 MB / 0.9592 GB, free: 92.08 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.809, allocations: 7.188 kB / 0.9592 GB, free: 92.08 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008076/1.817, allocations: 0.9886 MB / 0.9601 GB, free: 91.94 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 293 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001784/1.819, allocations: 309.9 kB / 0.9604 GB, free: 91.74 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01682/1.836, allocations: 5.053 MB / 0.9654 GB, free: 89.43 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.645e-05/1.836, allocations: 0 / 0.9654 GB, free: 89.43 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01403/1.85, allocations: 3.971 MB / 0.9692 GB, free: 87.45 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008135/1.858, allocations: 452.1 kB / 0.9697 GB, free: 87.25 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02385/1.882, allocations: 9.329 MB / 0.9788 GB, free: 79.52 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002453/1.884, allocations: 1.898 MB / 0.9806 GB, free: 78.02 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003466/1.888, allocations: 448.8 kB / 0.9811 GB, free: 77.68 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001815/1.89, allocations: 231.6 kB / 0.9813 GB, free: 77.48 MB / 474.7 MB Notification: Performance of SimCode: time 1.693e-06/1.89, allocations: 0 / 0.9813 GB, free: 77.48 MB / 474.7 MB Notification: Performance of Templates: time 0.1285/2.018, allocations: 51.85 MB / 1.032 GB, free: 31.45 MB / 474.7 MB