Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.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.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002749/0.002755, allocations: 362.9 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.462/4.462, allocations: 388.9 MB / 405.6 MB, free: 10.25 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.003696/0.003695, allocations: 232 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.6041/0.6041, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004476/0.0004477, allocations: 8 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5245/0.6253, allocations: 99.62 MB / 0.7774 GB, free: 1.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/0.6257, allocations: 69.97 kB / 0.7774 GB, free: 1.836 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2299/0.8555, allocations: 47.76 MB / 0.8241 GB, free: 9.625 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.607e-06/0.8556, allocations: 0 / 0.8241 GB, free: 9.625 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001903/0.8558, allocations: 48 kB / 0.8241 GB, free: 9.578 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01222/0.868, allocations: 2.534 MB / 0.8266 GB, free: 7.129 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.8681, allocations: 8.031 kB / 0.8266 GB, free: 7.121 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002119/0.8702, allocations: 296.8 kB / 0.8269 GB, free: 6.828 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00357/0.8739, allocations: 0.9911 MB / 0.8278 GB, free: 5.977 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001548/0.8755, allocations: 458.9 kB / 0.8283 GB, free: 5.555 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001321/0.8768, allocations: 242.2 kB / 0.8285 GB, free: 5.395 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01229/0.8891, allocations: 2.597 MB / 0.8311 GB, free: 2.777 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002967/0.8895, allocations: 31.7 kB / 0.8311 GB, free: 2.746 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006855/0.8902, allocations: 88 kB / 0.8312 GB, free: 2.66 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.065e-05/0.8903, allocations: 55.95 kB / 0.8312 GB, free: 2.605 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.9035, allocations: 2.668 MB / 0.8338 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02355/0.9271, allocations: 6.768 MB / 0.8404 GB, free: 9.066 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009434/0.9366, allocations: 2.517 MB / 0.8429 GB, free: 6.422 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006485/0.9431, allocations: 1.445 MB / 0.8443 GB, free: 4.965 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006007/0.9438, allocations: 127.5 kB / 0.8444 GB, free: 4.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.187e-05/0.9439, allocations: 72.92 kB / 0.8445 GB, free: 4.742 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.402e-06/0.9439, allocations: 0 / 0.8445 GB, free: 4.742 MB / 426.7 MB Notification: Performance of matching and sorting (n=338): time 0.06018/1.004, allocations: 14.56 MB / 0.8587 GB, free: 5.629 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002475/1.004, allocations: 333.3 kB / 0.859 GB, free: 5.234 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/1.007, allocations: 1.061 MB / 0.8601 GB, free: 4.164 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009662/1.008, allocations: 93.7 kB / 0.8602 GB, free: 4.066 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009446/1.009, allocations: 0.6753 MB / 0.8608 GB, free: 3.383 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00224/1.011, allocations: 1.136 MB / 0.8619 GB, free: 2.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006943/1.012, allocations: 63.98 kB / 0.862 GB, free: 2.168 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003723/1.012, allocations: 424.7 kB / 0.8624 GB, free: 1.746 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005274/1.018, allocations: 1.096 MB / 0.8635 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00607/1.024, allocations: 1.521 MB / 0.8649 GB, free: 15.01 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00532/1.029, allocations: 1.13 MB / 0.8661 GB, free: 13.88 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.933e-05/1.029, allocations: 4 kB / 0.8661 GB, free: 13.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01621/1.046, allocations: 3.489 MB / 0.8695 GB, free: 10.36 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.891e-05/1.046, allocations: 8.094 kB / 0.8695 GB, free: 10.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.051e-05/1.046, allocations: 23.98 kB / 0.8695 GB, free: 10.33 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004621/1.05, allocations: 1.045 MB / 0.8705 GB, free: 9.27 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006334/1.057, allocations: 0.7529 MB / 0.8712 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.016/1.073, allocations: 7.417 MB / 0.8785 GB, free: 0.7539 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004507/1.077, allocations: 295.8 kB / 0.8788 GB, free: 476 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009559/1.078, allocations: 128 kB / 0.8789 GB, free: 348 kB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 38 (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,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (338): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.002548/1.081, allocations: 481.1 kB / 0.8794 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001048/1.082, allocations: 217.4 kB / 0.8796 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01096/1.093, allocations: 2.511 MB / 0.882 GB, free: 13.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-05/1.093, allocations: 36 kB / 0.882 GB, free: 13.06 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.66e-05/1.093, allocations: 7.891 kB / 0.8821 GB, free: 13.05 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.181e-05/1.093, allocations: 23.94 kB / 0.8821 GB, free: 13.03 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.03023/1.124, allocations: 7.793 MB / 0.8897 GB, free: 5.051 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.919e-05/1.124, allocations: 12.16 kB / 0.8897 GB, free: 5.039 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006864/1.131, allocations: 0.7373 MB / 0.8904 GB, free: 4.301 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004568/1.135, allocations: 1.036 MB / 0.8914 GB, free: 3.242 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009864/1.136, allocations: 103.9 kB / 0.8915 GB, free: 3.141 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4165/1.553, allocations: 10.06 MB / 0.9014 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.223e-05/1.553, allocations: 11.81 kB / 0.9014 GB, free: 124.7 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06515/1.618, allocations: 6.005 MB / 0.9072 GB, free: 123.5 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003072/1.621, allocations: 0.5314 MB / 0.9078 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001644/1.623, allocations: 87.11 kB / 0.9078 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006641/1.63, allocations: 296.9 kB / 0.9081 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00303/1.633, allocations: 456.6 kB / 0.9086 GB, free: 123.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001242/1.634, allocations: 126 kB / 0.9087 GB, free: 123.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002992/1.637, allocations: 0.7197 MB / 0.9094 GB, free: 123.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.52e-07/1.637, allocations: 1.531 kB / 0.9094 GB, free: 123.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007751/1.645, allocations: 0.735 MB / 0.9101 GB, free: 123.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 37 * Number of states: 31 (inertia17.phi,inertia17.w,elastoBacklash2.phi_rel,elastoBacklash2.w_rel,inertia14.phi,inertia14.w,constantSpeed.phi,position.phi,position.w,speed.phi,speed.w,inertia13.phi,inertia13.w,accelerate.phi,accelerate.w,gear2_1.phi_rel,gear2_1.w_rel,relativeStates.phi_rel,relativeStates.w_rel,inertia2.phi,inertia2.w,damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,clutch.phi_rel,clutch.w_rel,inertia6.phi,inertia6.w) * Number of discrete variables: 24 (gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,lossyGear.mode,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startBackward,clutch.startForward,gear2_1.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 263 * 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: 7 * 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%) 2} * Non-linear torn systems: 5 {2 21,1 5,1 6,2 23,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001738/1.647, allocations: 272.8 kB / 0.9104 GB, free: 123.2 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01826/1.665, allocations: 3.515 MB / 0.9138 GB, free: 122.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.977e-05/1.665, allocations: 1.375 kB / 0.9138 GB, free: 122.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01587/1.681, allocations: 2.913 MB / 0.9166 GB, free: 122.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008032/1.689, allocations: 366.2 kB / 0.917 GB, free: 122.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0253/1.714, allocations: 7.596 MB / 0.9244 GB, free: 118.8 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001929/1.716, allocations: 1.597 MB / 0.926 GB, free: 118 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.002783/1.719, allocations: 309.9 kB / 0.9263 GB, free: 118 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001443/1.721, allocations: 182.9 kB / 0.9264 GB, free: 118 MB / 474.7 MB Notification: Performance of SimCode: time 1.633e-06/1.721, allocations: 0 / 0.9264 GB, free: 118 MB / 474.7 MB Notification: Performance of Templates: time 0.09224/1.813, allocations: 36.32 MB / 0.9619 GB, free: 105.8 MB / 474.7 MB