Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.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.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.1_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002698/0.002704, allocations: 349 kB / 15.94 MB, free: 6.219 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 4.262/4.262, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003752/0.003752, allocations: 222.1 kB / 397.9 MB, free: 4.977 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.5142/0.5142, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006424/0.0006427, allocations: 12 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1344, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.419/0.5535, allocations: 90.08 MB / 0.6947 GB, free: 22.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.5539, allocations: 71.97 kB / 0.6948 GB, free: 22.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3142/0.8681, allocations: 63.49 MB / 0.7568 GB, free: 7.453 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.8681, allocations: 4 kB / 0.7568 GB, free: 7.449 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002448/0.8684, allocations: 63.98 kB / 0.7568 GB, free: 7.387 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01549/0.8839, allocations: 3.154 MB / 0.7599 GB, free: 4.168 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.884, allocations: 12.03 kB / 0.7599 GB, free: 4.156 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003404/0.8874, allocations: 407.9 kB / 0.7603 GB, free: 3.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005191/0.8926, allocations: 1.318 MB / 0.7616 GB, free: 2.383 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001605/0.8943, allocations: 0.5806 MB / 0.7622 GB, free: 1.738 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001624/0.896, allocations: 311.6 kB / 0.7625 GB, free: 1.434 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3054/1.201, allocations: 3.414 MB / 0.7658 GB, free: 92.63 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003586/1.202, allocations: 41.2 kB / 0.7658 GB, free: 92.63 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006985/1.203, allocations: 116.9 kB / 0.7659 GB, free: 92.63 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.657e-05/1.203, allocations: 68.28 kB / 0.766 GB, free: 92.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01512/1.218, allocations: 3.555 MB / 0.7695 GB, free: 92.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02807/1.246, allocations: 9.628 MB / 0.7789 GB, free: 90.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/1.256, allocations: 3.133 MB / 0.7819 GB, free: 89.56 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007027/1.263, allocations: 1.757 MB / 0.7837 GB, free: 89.44 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004543/1.264, allocations: 54.91 kB / 0.7837 GB, free: 89.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.105e-05/1.264, allocations: 92.66 kB / 0.7838 GB, free: 89.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=359): time 7.333e-06/1.264, allocations: 0 / 0.7838 GB, free: 89.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=421): time 0.06653/1.33, allocations: 21.06 MB / 0.8044 GB, free: 78.15 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000299/1.331, allocations: 0.5635 MB / 0.8049 GB, free: 77.52 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006151/1.337, allocations: 1.571 MB / 0.8065 GB, free: 76.95 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001681/1.339, allocations: 120.5 kB / 0.8066 GB, free: 76.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00158/1.34, allocations: 0.9195 MB / 0.8075 GB, free: 76.22 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003636/1.344, allocations: 1.416 MB / 0.8089 GB, free: 75.14 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001688/1.346, allocations: 87.17 kB / 0.8089 GB, free: 75.07 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005387/1.346, allocations: 471.9 kB / 0.8094 GB, free: 74.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009511/1.356, allocations: 1.476 MB / 0.8108 GB, free: 74.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01047/1.367, allocations: 2.229 MB / 0.813 GB, free: 72.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008973/1.376, allocations: 1.503 MB / 0.8145 GB, free: 72.25 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.099e-05/1.376, allocations: 5.5 kB / 0.8145 GB, free: 72.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.03108/1.407, allocations: 5.165 MB / 0.8195 GB, free: 70.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.961e-05/1.407, allocations: 11.75 kB / 0.8195 GB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.951e-05/1.407, allocations: 20.38 kB / 0.8196 GB, free: 70.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0113/1.418, allocations: 2.01 MB / 0.8215 GB, free: 69.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0096/1.428, allocations: 0.8171 MB / 0.8223 GB, free: 69.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03113/1.459, allocations: 16.44 MB / 0.8384 GB, free: 56.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005662/1.465, allocations: 379.9 kB / 0.8387 GB, free: 56.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001246/1.466, allocations: 191.2 kB / 0.8389 GB, free: 56.34 MB / 410.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 (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,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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.003381/1.47, allocations: 0.6073 MB / 0.8395 GB, free: 55.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001951/1.472, allocations: 292.3 kB / 0.8398 GB, free: 55.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002354/1.474, allocations: 0.6528 MB / 0.8404 GB, free: 55.39 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.642e-05/1.474, allocations: 47.42 kB / 0.8405 GB, free: 55.39 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.347e-05/1.474, allocations: 3.281 kB / 0.8405 GB, free: 55.39 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001043/1.474, allocations: 26.72 kB / 0.8405 GB, free: 55.39 MB / 410.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.03491/1.509, allocations: 10.56 MB / 0.8508 GB, free: 48.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.551e-05/1.509, allocations: 8 kB / 0.8508 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006631/1.516, allocations: 0.7341 MB / 0.8515 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006723/1.523, allocations: 1.863 MB / 0.8534 GB, free: 45.91 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001111/1.524, allocations: 135 kB / 0.8535 GB, free: 45.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02532/1.549, allocations: 15.93 MB / 0.869 GB, free: 29.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.291e-05/1.549, allocations: 17.14 kB / 0.8691 GB, free: 29.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02605/1.575, allocations: 7.918 MB / 0.8768 GB, free: 22.57 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002935/1.578, allocations: 0.7094 MB / 0.8775 GB, free: 21.98 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001647/1.58, allocations: 111.9 kB / 0.8776 GB, free: 21.87 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005907/1.586, allocations: 346.8 kB / 0.8779 GB, free: 21.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002552/1.589, allocations: 0.6032 MB / 0.8785 GB, free: 21.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001091/1.59, allocations: 173.4 kB / 0.8787 GB, free: 21.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002769/1.593, allocations: 1.033 MB / 0.8797 GB, free: 20.29 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.783e-06/1.593, allocations: 0 / 0.8797 GB, free: 20.29 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007298/1.6, allocations: 1.022 MB / 0.8807 GB, free: 19.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (299): * Single equations (assignments): 289 * 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.001583/1.602, allocations: 347.3 kB / 0.881 GB, free: 18.98 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01596/1.618, allocations: 4.997 MB / 0.8859 GB, free: 14.42 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.992e-05/1.618, allocations: 0 / 0.8859 GB, free: 14.42 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01389/1.632, allocations: 3.867 MB / 0.8897 GB, free: 10.83 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007757/1.639, allocations: 454.2 kB / 0.8901 GB, free: 10.46 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02354/1.663, allocations: 9.315 MB / 0.8992 GB, free: 1.996 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/1.665, allocations: 1.893 MB / 0.9011 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003603/1.669, allocations: 456.1 kB / 0.9015 GB, free: 148 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/1.671, allocations: 246 kB / 0.9017 GB, free: 15.91 MB / 426.7 MB Notification: Performance of SimCode: time 1.724e-06/1.671, allocations: 0 / 0.9017 GB, free: 15.91 MB / 426.7 MB Notification: Performance of Templates: time 0.4489/2.12, allocations: 51.73 MB / 0.9522 GB, free: 109.2 MB / 442.7 MB